@dxos/assistant-toolkit 0.8.4-main.2c6827d
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/LICENSE +8 -0
- package/README.md +3 -0
- package/dist/lib/browser/index.mjs +2778 -0
- package/dist/lib/browser/index.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -0
- package/dist/lib/node-esm/index.mjs +2779 -0
- package/dist/lib/node-esm/index.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -0
- package/dist/types/src/blueprints/design/design-blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/design/design-blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/design/design-blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/design/design-blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/design/index.d.ts +3 -0
- package/dist/types/src/blueprints/design/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/discord/discord-blueprint.d.ts +18 -0
- package/dist/types/src/blueprints/discord/discord-blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/discord/index.d.ts +3 -0
- package/dist/types/src/blueprints/discord/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/index.d.ts +7 -0
- package/dist/types/src/blueprints/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/linear/index.d.ts +3 -0
- package/dist/types/src/blueprints/linear/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/linear/linear-blueprint.d.ts +18 -0
- package/dist/types/src/blueprints/linear/linear-blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning/index.d.ts +3 -0
- package/dist/types/src/blueprints/planning/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning/planning-blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/planning/planning-blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning/planning-blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/planning/planning-blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/index.d.ts +3 -0
- package/dist/types/src/blueprints/research/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/research-blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/research/research-blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/research-blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/research/research-blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/testing.d.ts +12 -0
- package/dist/types/src/blueprints/testing.d.ts.map +1 -0
- package/dist/types/src/blueprints/websearch/index.d.ts +4 -0
- package/dist/types/src/blueprints/websearch/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/websearch/websearch-blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/websearch/websearch-blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/websearch/websearch-toolkit.d.ts +27 -0
- package/dist/types/src/blueprints/websearch/websearch-toolkit.d.ts.map +1 -0
- package/dist/types/src/crud/graph.d.ts +64 -0
- package/dist/types/src/crud/graph.d.ts.map +1 -0
- package/dist/types/src/crud/graph.test.d.ts +2 -0
- package/dist/types/src/crud/graph.test.d.ts.map +1 -0
- package/dist/types/src/crud/index.d.ts +2 -0
- package/dist/types/src/crud/index.d.ts.map +1 -0
- package/dist/types/src/experimental/feed.test.d.ts +2 -0
- package/dist/types/src/experimental/feed.test.d.ts.map +1 -0
- package/dist/types/src/functions/agent/index.d.ts +5 -0
- package/dist/types/src/functions/agent/index.d.ts.map +1 -0
- package/dist/types/src/functions/agent/prompt.d.ts +9 -0
- package/dist/types/src/functions/agent/prompt.d.ts.map +1 -0
- package/dist/types/src/functions/discord/fetch-messages.d.ts +11 -0
- package/dist/types/src/functions/discord/fetch-messages.d.ts.map +1 -0
- package/dist/types/src/functions/discord/fetch-messages.test.d.ts +2 -0
- package/dist/types/src/functions/discord/fetch-messages.test.d.ts.map +1 -0
- package/dist/types/src/functions/discord/index.d.ts +12 -0
- package/dist/types/src/functions/discord/index.d.ts.map +1 -0
- package/dist/types/src/functions/document/index.d.ts +13 -0
- package/dist/types/src/functions/document/index.d.ts.map +1 -0
- package/dist/types/src/functions/document/read.d.ts +7 -0
- package/dist/types/src/functions/document/read.d.ts.map +1 -0
- package/dist/types/src/functions/document/update.d.ts +6 -0
- package/dist/types/src/functions/document/update.d.ts.map +1 -0
- package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts +173 -0
- package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts.map +1 -0
- package/dist/types/src/functions/entity-extraction/entity-extraction.test.d.ts +2 -0
- package/dist/types/src/functions/entity-extraction/entity-extraction.test.d.ts.map +1 -0
- package/dist/types/src/functions/entity-extraction/index.d.ts +174 -0
- package/dist/types/src/functions/entity-extraction/index.d.ts.map +1 -0
- package/dist/types/src/functions/exa/exa.d.ts +5 -0
- package/dist/types/src/functions/exa/exa.d.ts.map +1 -0
- package/dist/types/src/functions/exa/index.d.ts +3 -0
- package/dist/types/src/functions/exa/index.d.ts.map +1 -0
- package/dist/types/src/functions/exa/mock.d.ts +5 -0
- package/dist/types/src/functions/exa/mock.d.ts.map +1 -0
- package/dist/types/src/functions/github/fetch-prs.d.ts +6 -0
- package/dist/types/src/functions/github/fetch-prs.d.ts.map +1 -0
- package/dist/types/src/functions/index.d.ts +8 -0
- package/dist/types/src/functions/index.d.ts.map +1 -0
- package/dist/types/src/functions/linear/index.d.ts +9 -0
- package/dist/types/src/functions/linear/index.d.ts.map +1 -0
- package/dist/types/src/functions/linear/linear.test.d.ts +2 -0
- package/dist/types/src/functions/linear/linear.test.d.ts.map +1 -0
- package/dist/types/src/functions/linear/sync-issues.d.ts +12 -0
- package/dist/types/src/functions/linear/sync-issues.d.ts.map +1 -0
- package/dist/types/src/functions/research/document-create.d.ts +9 -0
- package/dist/types/src/functions/research/document-create.d.ts.map +1 -0
- package/dist/types/src/functions/research/index.d.ts +21 -0
- package/dist/types/src/functions/research/index.d.ts.map +1 -0
- package/dist/types/src/functions/research/research-graph.d.ts +18 -0
- package/dist/types/src/functions/research/research-graph.d.ts.map +1 -0
- package/dist/types/src/functions/research/research.d.ts +14 -0
- package/dist/types/src/functions/research/research.d.ts.map +1 -0
- package/dist/types/src/functions/research/research.test.d.ts +2 -0
- package/dist/types/src/functions/research/research.test.d.ts.map +1 -0
- package/dist/types/src/functions/research/types.d.ts +6 -0
- package/dist/types/src/functions/research/types.d.ts.map +1 -0
- package/dist/types/src/functions/tasks/index.d.ts +15 -0
- package/dist/types/src/functions/tasks/index.d.ts.map +1 -0
- package/dist/types/src/functions/tasks/read.d.ts +7 -0
- package/dist/types/src/functions/tasks/read.d.ts.map +1 -0
- package/dist/types/src/functions/tasks/task-list.d.ts +74 -0
- package/dist/types/src/functions/tasks/task-list.d.ts.map +1 -0
- package/dist/types/src/functions/tasks/task-list.test.d.ts +2 -0
- package/dist/types/src/functions/tasks/task-list.test.d.ts.map +1 -0
- package/dist/types/src/functions/tasks/update.d.ts +9 -0
- package/dist/types/src/functions/tasks/update.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +7 -0
- package/dist/types/src/index.d.ts.map +1 -0
- package/dist/types/src/plugins.d.ts +19 -0
- package/dist/types/src/plugins.d.ts.map +1 -0
- package/dist/types/src/sync/index.d.ts +2 -0
- package/dist/types/src/sync/index.d.ts.map +1 -0
- package/dist/types/src/sync/sync.d.ts +15 -0
- package/dist/types/src/sync/sync.d.ts.map +1 -0
- package/dist/types/src/testing/data/exa-search-1748337321991.d.ts +38 -0
- package/dist/types/src/testing/data/exa-search-1748337321991.d.ts.map +1 -0
- package/dist/types/src/testing/data/exa-search-1748337331526.d.ts +37 -0
- package/dist/types/src/testing/data/exa-search-1748337331526.d.ts.map +1 -0
- package/dist/types/src/testing/data/exa-search-1748337344119.d.ts +58 -0
- package/dist/types/src/testing/data/exa-search-1748337344119.d.ts.map +1 -0
- package/dist/types/src/testing/data/index.d.ts +3 -0
- package/dist/types/src/testing/data/index.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +2 -0
- package/dist/types/src/testing/index.d.ts.map +1 -0
- package/dist/types/src/toolkits/AssistantToolkit.d.ts +17 -0
- package/dist/types/src/toolkits/AssistantToolkit.d.ts.map +1 -0
- package/dist/types/src/toolkits/AssistantToolkit.test.d.ts +2 -0
- package/dist/types/src/toolkits/AssistantToolkit.test.d.ts.map +1 -0
- package/dist/types/src/toolkits/SystemToolkit.d.ts +67 -0
- package/dist/types/src/toolkits/SystemToolkit.d.ts.map +1 -0
- package/dist/types/src/toolkits/index.d.ts +3 -0
- package/dist/types/src/toolkits/index.d.ts.map +1 -0
- package/dist/types/src/util/graphql.d.ts +22 -0
- package/dist/types/src/util/graphql.d.ts.map +1 -0
- package/dist/types/src/util/index.d.ts +2 -0
- package/dist/types/src/util/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/package.json +69 -0
- package/src/blueprints/design/design-blueprint.test.ts +103 -0
- package/src/blueprints/design/design-blueprint.ts +33 -0
- package/src/blueprints/design/index.ts +7 -0
- package/src/blueprints/discord/discord-blueprint.ts +34 -0
- package/src/blueprints/discord/index.ts +7 -0
- package/src/blueprints/index.ts +10 -0
- package/src/blueprints/linear/index.ts +7 -0
- package/src/blueprints/linear/linear-blueprint.ts +35 -0
- package/src/blueprints/planning/index.ts +7 -0
- package/src/blueprints/planning/planning-blueprint.test.ts +124 -0
- package/src/blueprints/planning/planning-blueprint.ts +98 -0
- package/src/blueprints/research/index.ts +7 -0
- package/src/blueprints/research/research-blueprint.test.ts +7 -0
- package/src/blueprints/research/research-blueprint.ts +53 -0
- package/src/blueprints/testing.ts +34 -0
- package/src/blueprints/websearch/index.ts +8 -0
- package/src/blueprints/websearch/websearch-blueprint.ts +20 -0
- package/src/blueprints/websearch/websearch-toolkit.ts +8 -0
- package/src/crud/graph.test.ts +69 -0
- package/src/crud/graph.ts +388 -0
- package/src/crud/index.ts +5 -0
- package/src/experimental/feed.test.ts +111 -0
- package/src/functions/agent/index.ts +11 -0
- package/src/functions/agent/prompt.ts +114 -0
- package/src/functions/discord/fetch-messages.test.ts +58 -0
- package/src/functions/discord/fetch-messages.ts +252 -0
- package/src/functions/discord/index.ts +9 -0
- package/src/functions/document/index.ts +12 -0
- package/src/functions/document/read.ts +29 -0
- package/src/functions/document/update.ts +30 -0
- package/src/functions/entity-extraction/entity-extraction.conversations.json +1 -0
- package/src/functions/entity-extraction/entity-extraction.test.ts +92 -0
- package/src/functions/entity-extraction/entity-extraction.ts +164 -0
- package/src/functions/entity-extraction/index.ts +9 -0
- package/src/functions/exa/exa.ts +37 -0
- package/src/functions/exa/index.ts +6 -0
- package/src/functions/exa/mock.ts +71 -0
- package/src/functions/github/fetch-prs.ts +30 -0
- package/src/functions/index.ts +11 -0
- package/src/functions/linear/index.ts +9 -0
- package/src/functions/linear/linear.test.ts +83 -0
- package/src/functions/linear/sync-issues.ts +189 -0
- package/src/functions/research/document-create.ts +75 -0
- package/src/functions/research/index.ts +14 -0
- package/src/functions/research/research-graph.ts +47 -0
- package/src/functions/research/research-instructions.tpl +106 -0
- package/src/functions/research/research.conversations.json +1 -0
- package/src/functions/research/research.test.ts +179 -0
- package/src/functions/research/research.ts +190 -0
- package/src/functions/research/types.ts +26 -0
- package/src/functions/tasks/index.ts +11 -0
- package/src/functions/tasks/read.ts +34 -0
- package/src/functions/tasks/task-list.test.ts +99 -0
- package/src/functions/tasks/task-list.ts +165 -0
- package/src/functions/tasks/update.ts +52 -0
- package/src/index.ts +10 -0
- package/src/plugins.tsx +68 -0
- package/src/sync/index.ts +5 -0
- package/src/sync/sync.ts +87 -0
- package/src/testing/data/exa-search-1748337321991.ts +131 -0
- package/src/testing/data/exa-search-1748337331526.ts +144 -0
- package/src/testing/data/exa-search-1748337344119.ts +133 -0
- package/src/testing/data/index.ts +11 -0
- package/src/testing/index.ts +5 -0
- package/src/toolkits/AssistantToolkit.conversations.json +1 -0
- package/src/toolkits/AssistantToolkit.test.ts +88 -0
- package/src/toolkits/AssistantToolkit.ts +47 -0
- package/src/toolkits/SystemToolkit.ts +231 -0
- package/src/toolkits/index.ts +6 -0
- package/src/typedefs.d.ts +8 -0
- package/src/util/graphql.ts +31 -0
- package/src/util/index.ts +5 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hierarchical Task List Manager.
|
|
3
|
+
*
|
|
4
|
+
* A framework for managing hierarchical task lists where each line is a task.
|
|
5
|
+
* Designed to work with language model agents that receive documents with line numbers.
|
|
6
|
+
*/
|
|
7
|
+
export declare class MarkdownTasks {
|
|
8
|
+
private _lineEndings;
|
|
9
|
+
private _content;
|
|
10
|
+
constructor(initialContent?: string);
|
|
11
|
+
/**
|
|
12
|
+
* Get the current document content with line numbers prefixed.
|
|
13
|
+
*/
|
|
14
|
+
getNumberedContent(): string;
|
|
15
|
+
/**
|
|
16
|
+
* Get the raw document content without line numbers.
|
|
17
|
+
*/
|
|
18
|
+
getRawContent(): string;
|
|
19
|
+
/**
|
|
20
|
+
* Insert a new task at the specified line number (1-based).
|
|
21
|
+
* Indentation level determines hierarchy (0, 2, 4, 6 spaces etc.)
|
|
22
|
+
*/
|
|
23
|
+
insertTask(lineNumber: number, taskText: string, completed?: boolean, indent?: number): void;
|
|
24
|
+
/**
|
|
25
|
+
* Delete a task at the specified line number (1-based).
|
|
26
|
+
*/
|
|
27
|
+
deleteTask(lineNumber: number): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Update the text of a task at the specified line number (1-based).
|
|
30
|
+
*/
|
|
31
|
+
updateTaskText(lineNumber: number, newText: string): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Mark a task as complete or incomplete at the specified line number (1-based).
|
|
34
|
+
*/
|
|
35
|
+
toggleTaskCompletion(lineNumber: number, completed?: boolean): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Change the indentation level of a task (for hierarchy).
|
|
38
|
+
*/
|
|
39
|
+
setTaskIndent(lineNumber: number, indent: number): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Get the total number of lines in the document.
|
|
42
|
+
*/
|
|
43
|
+
getLineCount(): number;
|
|
44
|
+
/**
|
|
45
|
+
* Apply multiple operations atomically.
|
|
46
|
+
*/
|
|
47
|
+
applyOperations(operations: TaskOperation[]): void;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Operation types for batch task updates.
|
|
51
|
+
*/
|
|
52
|
+
export type TaskOperation = {
|
|
53
|
+
type: 'insertTask';
|
|
54
|
+
lineNumber: number;
|
|
55
|
+
text: string;
|
|
56
|
+
completed?: boolean;
|
|
57
|
+
indent?: number;
|
|
58
|
+
} | {
|
|
59
|
+
type: 'deleteTask';
|
|
60
|
+
lineNumber: number;
|
|
61
|
+
} | {
|
|
62
|
+
type: 'updateTaskText';
|
|
63
|
+
lineNumber: number;
|
|
64
|
+
text: string;
|
|
65
|
+
} | {
|
|
66
|
+
type: 'toggleTaskCompletion';
|
|
67
|
+
lineNumber: number;
|
|
68
|
+
completed?: boolean;
|
|
69
|
+
} | {
|
|
70
|
+
type: 'setTaskIndent';
|
|
71
|
+
lineNumber: number;
|
|
72
|
+
indent: number;
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=task-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-list.d.ts","sourceRoot":"","sources":["../../../../../src/functions/tasks/task-list.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,QAAQ,CAAW;gBAEf,cAAc,GAAE,MAAW;IAMvC;;OAEG;IACH,kBAAkB,IAAI,MAAM;IAM5B;;OAEG;IACH,aAAa,IAAI,MAAM;IAIvB;;;OAGG;IACH,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,GAAE,OAAe,EAAE,MAAM,GAAE,MAAU,GAAG,IAAI;IAOtG;;OAEG;IACH,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAQvC;;OAEG;IACH,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO;IAe5D;;OAEG;IACH,oBAAoB,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,OAAO;IAkBtE;;OAEG;IACH,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO;IAgB1D;;OAEG;IACH,YAAY,IAAI,MAAM;IAItB;;OAEG;IACH,eAAe,CAAC,UAAU,EAAE,aAAa,EAAE,GAAG,IAAI;CA4BnD;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GACrB;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAC9F;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAC1C;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC5D;IAAE,IAAI,EAAE,sBAAsB,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,GACzE;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-list.test.d.ts","sourceRoot":"","sources":["../../../../../src/functions/tasks/task-list.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
2
|
+
readonly id: string;
|
|
3
|
+
readonly operations?: readonly any[] | undefined;
|
|
4
|
+
}, {
|
|
5
|
+
readonly content: string;
|
|
6
|
+
readonly numberedContent: string;
|
|
7
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=update.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../../src/functions/tasks/update.ts"],"names":[],"mappings":";;;;;;;AAaA,wBAsCG"}
|
|
@@ -0,0 +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,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import { type AnyCapability } from '@dxos/app-framework';
|
|
3
|
+
import { type Obj, Type } from '@dxos/echo';
|
|
4
|
+
export declare const MapSchema: Type.obj<Schema.Struct<{
|
|
5
|
+
coordinates: Schema.Tuple<[Schema.filter<Schema.transform<Schema.SchemaClass<number, number, never>, Schema.filter<Schema.SchemaClass<number, number, never>>>>, Schema.filter<Schema.transform<Schema.SchemaClass<number, number, never>, Schema.filter<Schema.SchemaClass<number, number, never>>>>, Schema.Element<typeof Schema.Number, "?">]>;
|
|
6
|
+
}>>;
|
|
7
|
+
export type MapSchema = Schema.Schema.Type<typeof MapSchema>;
|
|
8
|
+
export type ArtifactsContext = {
|
|
9
|
+
items: Obj.Any[];
|
|
10
|
+
getArtifacts: () => Obj.Any[];
|
|
11
|
+
addArtifact: (artifact: Obj.Any) => void;
|
|
12
|
+
};
|
|
13
|
+
declare global {
|
|
14
|
+
interface ToolContextExtensions {
|
|
15
|
+
artifacts?: ArtifactsContext;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export declare const capabilities: AnyCapability[];
|
|
19
|
+
//# sourceMappingURL=plugins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../src/plugins.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,KAAK,aAAa,EAA4C,MAAM,qBAAqB,CAAC;AACnG,OAAO,EAAE,KAAK,GAAG,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAG5C,eAAO,MAAM,SAAS;;GAOrB,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,GAAG,EAAE,CAAC;IACjB,YAAY,EAAE,MAAM,GAAG,CAAC,GAAG,EAAE,CAAC;IAC9B,WAAW,EAAE,CAAC,QAAQ,EAAE,GAAG,CAAC,GAAG,KAAK,IAAI,CAAC;CAC1C,CAAC;AAEF,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,CAAC,EAAE,gBAAgB,CAAC;KAC9B;CACF;AAKD,eAAO,MAAM,YAAY,EAAE,aAAa,EA6BvC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sync/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Obj } from '@dxos/echo';
|
|
3
|
+
import { DatabaseService } from '@dxos/functions';
|
|
4
|
+
/**
|
|
5
|
+
* Syncs objects to the database.
|
|
6
|
+
* If there's an object with a matching foreign key in the database, it will be updated.
|
|
7
|
+
* Otherwise, a new object will be added.
|
|
8
|
+
* Recursively syncs top-level refs.
|
|
9
|
+
*
|
|
10
|
+
* @param opts.foreignKeyId - The key to use for matching objects.
|
|
11
|
+
*/
|
|
12
|
+
export declare const syncObjects: (objs: Obj.Any[], opts: {
|
|
13
|
+
foreignKeyId: string;
|
|
14
|
+
}) => Effect.Effect<Obj.Any[], never, DatabaseService>;
|
|
15
|
+
//# sourceMappingURL=sync.d.ts.map
|
|
@@ -0,0 +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,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAIlD;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,EAAE,CACxB,IAAI,EAAE,GAAG,CAAC,GAAG,EAAE,EACf,IAAI,EAAE;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,KAC3B,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,eAAe,CAuClD,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
requestId: string;
|
|
3
|
+
autopromptString: string;
|
|
4
|
+
autoDate: string;
|
|
5
|
+
resolvedSearchType: string;
|
|
6
|
+
results: ({
|
|
7
|
+
id: string;
|
|
8
|
+
title: string;
|
|
9
|
+
url: string;
|
|
10
|
+
publishedDate: string;
|
|
11
|
+
author: string;
|
|
12
|
+
score: number;
|
|
13
|
+
text: string;
|
|
14
|
+
image?: undefined;
|
|
15
|
+
favicon?: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
id: string;
|
|
18
|
+
title: string;
|
|
19
|
+
url: string;
|
|
20
|
+
publishedDate: string;
|
|
21
|
+
author: string;
|
|
22
|
+
score: number;
|
|
23
|
+
text: string;
|
|
24
|
+
image: string;
|
|
25
|
+
favicon: string;
|
|
26
|
+
})[];
|
|
27
|
+
costDollars: {
|
|
28
|
+
total: number;
|
|
29
|
+
search: {
|
|
30
|
+
neural: number;
|
|
31
|
+
};
|
|
32
|
+
contents: {
|
|
33
|
+
text: number;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export default _default;
|
|
38
|
+
//# sourceMappingURL=exa-search-1748337321991.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exa-search-1748337321991.d.ts","sourceRoot":"","sources":["../../../../../src/testing/data/exa-search-1748337321991.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBA8HE"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
requestId: string;
|
|
3
|
+
autopromptString: string;
|
|
4
|
+
resolvedSearchType: string;
|
|
5
|
+
results: ({
|
|
6
|
+
id: string;
|
|
7
|
+
title: string;
|
|
8
|
+
url: string;
|
|
9
|
+
publishedDate: string;
|
|
10
|
+
author: string;
|
|
11
|
+
score: number;
|
|
12
|
+
text: string;
|
|
13
|
+
image: string;
|
|
14
|
+
favicon: string;
|
|
15
|
+
} | {
|
|
16
|
+
id: string;
|
|
17
|
+
title: string;
|
|
18
|
+
url: string;
|
|
19
|
+
publishedDate: string;
|
|
20
|
+
author: string;
|
|
21
|
+
text: string;
|
|
22
|
+
image: string;
|
|
23
|
+
favicon: string;
|
|
24
|
+
score?: undefined;
|
|
25
|
+
})[];
|
|
26
|
+
costDollars: {
|
|
27
|
+
total: number;
|
|
28
|
+
search: {
|
|
29
|
+
neural: number;
|
|
30
|
+
};
|
|
31
|
+
contents: {
|
|
32
|
+
text: number;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export default _default;
|
|
37
|
+
//# sourceMappingURL=exa-search-1748337331526.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exa-search-1748337331526.d.ts","sourceRoot":"","sources":["../../../../../src/testing/data/exa-search-1748337331526.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBA2IE"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
requestId: string;
|
|
3
|
+
autopromptString: string;
|
|
4
|
+
autoDate: string;
|
|
5
|
+
resolvedSearchType: string;
|
|
6
|
+
results: ({
|
|
7
|
+
id: string;
|
|
8
|
+
title: string;
|
|
9
|
+
url: string;
|
|
10
|
+
publishedDate: string;
|
|
11
|
+
author: string;
|
|
12
|
+
score: number;
|
|
13
|
+
text: string;
|
|
14
|
+
favicon: string;
|
|
15
|
+
image?: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
id: string;
|
|
18
|
+
title: string;
|
|
19
|
+
url: string;
|
|
20
|
+
publishedDate: string;
|
|
21
|
+
author: string;
|
|
22
|
+
score: number;
|
|
23
|
+
text: string;
|
|
24
|
+
favicon?: undefined;
|
|
25
|
+
image?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
id: string;
|
|
28
|
+
title: string;
|
|
29
|
+
url: string;
|
|
30
|
+
publishedDate: string;
|
|
31
|
+
author: string;
|
|
32
|
+
score: number;
|
|
33
|
+
text: string;
|
|
34
|
+
image: string;
|
|
35
|
+
favicon: string;
|
|
36
|
+
} | {
|
|
37
|
+
id: string;
|
|
38
|
+
title: string;
|
|
39
|
+
url: string;
|
|
40
|
+
author: string;
|
|
41
|
+
text: string;
|
|
42
|
+
image: string;
|
|
43
|
+
favicon: string;
|
|
44
|
+
publishedDate?: undefined;
|
|
45
|
+
score?: undefined;
|
|
46
|
+
})[];
|
|
47
|
+
costDollars: {
|
|
48
|
+
total: number;
|
|
49
|
+
search: {
|
|
50
|
+
neural: number;
|
|
51
|
+
};
|
|
52
|
+
contents: {
|
|
53
|
+
text: number;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export default _default;
|
|
58
|
+
//# sourceMappingURL=exa-search-1748337344119.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exa-search-1748337344119.d.ts","sourceRoot":"","sources":["../../../../../src/testing/data/exa-search-1748337344119.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAgIE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/testing/data/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAM7C,eAAO,MAAM,cAAc,EAAE,cAAc,CAAC,GAAG,CAAC,EAAgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/testing/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as Tool from '@effect/ai/Tool';
|
|
2
|
+
import * as Toolkit from '@effect/ai/Toolkit';
|
|
3
|
+
import * as Schema from 'effect/Schema';
|
|
4
|
+
import { AiContextService } from '@dxos/assistant';
|
|
5
|
+
import { DatabaseService } from '@dxos/functions';
|
|
6
|
+
export declare const AssistantToolkit: Toolkit.Toolkit<{
|
|
7
|
+
readonly "add-to-context": Tool.Tool<"add-to-context", {
|
|
8
|
+
readonly parameters: Schema.Struct<{
|
|
9
|
+
id: Schema.Schema<string, string, never>;
|
|
10
|
+
}>;
|
|
11
|
+
readonly success: typeof Schema.Void;
|
|
12
|
+
readonly failure: typeof Schema.Never;
|
|
13
|
+
}, DatabaseService | AiContextService>;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const tools: "add-to-context"[];
|
|
16
|
+
export declare const layer: () => import("effect/Layer").Layer<Tool.Handler<"add-to-context">, never, never>;
|
|
17
|
+
//# sourceMappingURL=AssistantToolkit.d.ts.map
|
|
@@ -0,0 +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;AAE/D,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGlD,eAAO,MAAM,gBAAgB;;;;;;;;EAc5B,CAAC;AAEF,eAAO,MAAM,KAAK,oBAAsC,CAAC;AAEzD,eAAO,MAAM,KAAK,kFAad,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssistantToolkit.test.d.ts","sourceRoot":"","sources":["../../../../src/toolkits/AssistantToolkit.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as Tool from '@effect/ai/Tool';
|
|
2
|
+
import * as Toolkit from '@effect/ai/Toolkit';
|
|
3
|
+
import type * as Layer from 'effect/Layer';
|
|
4
|
+
import * as Schema from 'effect/Schema';
|
|
5
|
+
import { DatabaseService } from '@dxos/functions';
|
|
6
|
+
export declare const SystemToolkit: Toolkit.Toolkit<{
|
|
7
|
+
readonly "schema-list": Tool.Tool<"schema-list", {
|
|
8
|
+
readonly parameters: Schema.Struct<{
|
|
9
|
+
limit: typeof Schema.Number;
|
|
10
|
+
}>;
|
|
11
|
+
readonly success: typeof Schema.Any;
|
|
12
|
+
readonly failure: typeof Schema.Never;
|
|
13
|
+
}, DatabaseService>;
|
|
14
|
+
readonly "schema-add": Tool.Tool<"schema-add", {
|
|
15
|
+
readonly parameters: Schema.Struct<{
|
|
16
|
+
name: typeof Schema.String;
|
|
17
|
+
typename: typeof Schema.String;
|
|
18
|
+
jsonSchema: typeof Schema.Any;
|
|
19
|
+
}>;
|
|
20
|
+
readonly success: typeof Schema.Any;
|
|
21
|
+
readonly failure: typeof Schema.Never;
|
|
22
|
+
}, DatabaseService>;
|
|
23
|
+
readonly "object-create": Tool.Tool<"object-create", {
|
|
24
|
+
readonly parameters: Schema.Struct<{
|
|
25
|
+
typename: typeof Schema.String;
|
|
26
|
+
data: typeof Schema.Any;
|
|
27
|
+
}>;
|
|
28
|
+
readonly success: typeof Schema.Any;
|
|
29
|
+
readonly failure: typeof Schema.Never;
|
|
30
|
+
}, DatabaseService>;
|
|
31
|
+
readonly "object-remove": Tool.Tool<"object-remove", {
|
|
32
|
+
readonly parameters: Schema.Struct<{
|
|
33
|
+
id: Schema.Schema<string, string, never>;
|
|
34
|
+
}>;
|
|
35
|
+
readonly success: typeof Schema.Any;
|
|
36
|
+
readonly failure: typeof Schema.Never;
|
|
37
|
+
}, DatabaseService>;
|
|
38
|
+
readonly "relation-create": Tool.Tool<"relation-create", {
|
|
39
|
+
readonly parameters: Schema.Struct<{
|
|
40
|
+
typename: typeof Schema.String;
|
|
41
|
+
source: Schema.Schema<string, string, never>;
|
|
42
|
+
target: Schema.Schema<string, string, never>;
|
|
43
|
+
data: Schema.SchemaClass<any, any, never>;
|
|
44
|
+
}>;
|
|
45
|
+
readonly success: typeof Schema.Any;
|
|
46
|
+
readonly failure: typeof Schema.Never;
|
|
47
|
+
}, DatabaseService>;
|
|
48
|
+
readonly "tag-add": Tool.Tool<"tag-add", {
|
|
49
|
+
readonly parameters: Schema.Struct<{
|
|
50
|
+
tagId: Schema.Schema<string, string, never>;
|
|
51
|
+
objectId: Schema.Schema<string, string, never>;
|
|
52
|
+
}>;
|
|
53
|
+
readonly success: typeof Schema.Any;
|
|
54
|
+
readonly failure: typeof Schema.Never;
|
|
55
|
+
}, DatabaseService>;
|
|
56
|
+
readonly "tag-remove": Tool.Tool<"tag-remove", {
|
|
57
|
+
readonly parameters: Schema.Struct<{
|
|
58
|
+
tagId: Schema.Schema<string, string, never>;
|
|
59
|
+
objectId: Schema.Schema<string, string, never>;
|
|
60
|
+
}>;
|
|
61
|
+
readonly success: typeof Schema.Any;
|
|
62
|
+
readonly failure: typeof Schema.Never;
|
|
63
|
+
}, DatabaseService>;
|
|
64
|
+
}>;
|
|
65
|
+
export declare const tools: ("schema-list" | "schema-add" | "object-create" | "object-remove" | "relation-create" | "tag-add" | "tag-remove")[];
|
|
66
|
+
export declare const layer: () => Layer.Layer<Tool.Handler<any>, never, never>;
|
|
67
|
+
//# sourceMappingURL=SystemToolkit.d.ts.map
|
|
@@ -0,0 +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;AAIxC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGlD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoIzB,CAAC;AAEF,eAAO,MAAM,KAAK,qHAAmC,CAAC;AAEtD,eAAO,MAAM,KAAK,QAAO,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,CA8EhE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/toolkits/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,aAAa,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as HttpBody from '@effect/platform/HttpBody';
|
|
2
|
+
/**
|
|
3
|
+
* Template tag literal to get syntax highlighting for the query.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* const query = gql`
|
|
8
|
+
* query Team($teamId: String!) {
|
|
9
|
+
* team(id: $teamId) {
|
|
10
|
+
* id
|
|
11
|
+
* name
|
|
12
|
+
* }
|
|
13
|
+
* }
|
|
14
|
+
* `;
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare const gql: (query: string) => string;
|
|
18
|
+
/**
|
|
19
|
+
* @returns JSON body for the graphql request.
|
|
20
|
+
*/
|
|
21
|
+
export declare const graphqlRequestBody: (query: string, variables?: Record<string, any>) => import("effect/Effect").Effect<HttpBody.Uint8Array, HttpBody.HttpBodyError, never>;
|
|
22
|
+
//# sourceMappingURL=graphql.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../../src/util/graphql.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,QAAQ,MAAM,2BAA2B,CAAC;AAEtD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,GAAG,GAAI,OAAO,MAAM,WAAU,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,OAAO,MAAM,EAAE,YAAW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,uFAIjF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/util/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC"}
|