@dxos/assistant-toolkit 0.8.4-main.ae835ea

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.
Files changed (200) hide show
  1. package/LICENSE +8 -0
  2. package/README.md +3 -0
  3. package/dist/lib/browser/index.mjs +2481 -0
  4. package/dist/lib/browser/index.mjs.map +7 -0
  5. package/dist/lib/browser/meta.json +1 -0
  6. package/dist/lib/node-esm/index.mjs +2483 -0
  7. package/dist/lib/node-esm/index.mjs.map +7 -0
  8. package/dist/lib/node-esm/meta.json +1 -0
  9. package/dist/types/src/blueprints/design/design-blueprint.d.ts +4 -0
  10. package/dist/types/src/blueprints/design/design-blueprint.d.ts.map +1 -0
  11. package/dist/types/src/blueprints/design/design-blueprint.test.d.ts +2 -0
  12. package/dist/types/src/blueprints/design/design-blueprint.test.d.ts.map +1 -0
  13. package/dist/types/src/blueprints/design/index.d.ts +3 -0
  14. package/dist/types/src/blueprints/design/index.d.ts.map +1 -0
  15. package/dist/types/src/blueprints/discord/discord-blueprint.d.ts +18 -0
  16. package/dist/types/src/blueprints/discord/discord-blueprint.d.ts.map +1 -0
  17. package/dist/types/src/blueprints/discord/index.d.ts +3 -0
  18. package/dist/types/src/blueprints/discord/index.d.ts.map +1 -0
  19. package/dist/types/src/blueprints/index.d.ts +7 -0
  20. package/dist/types/src/blueprints/index.d.ts.map +1 -0
  21. package/dist/types/src/blueprints/linear/index.d.ts +3 -0
  22. package/dist/types/src/blueprints/linear/index.d.ts.map +1 -0
  23. package/dist/types/src/blueprints/linear/linear-blueprint.d.ts +18 -0
  24. package/dist/types/src/blueprints/linear/linear-blueprint.d.ts.map +1 -0
  25. package/dist/types/src/blueprints/planning/index.d.ts +3 -0
  26. package/dist/types/src/blueprints/planning/index.d.ts.map +1 -0
  27. package/dist/types/src/blueprints/planning/planning-blueprint.d.ts +4 -0
  28. package/dist/types/src/blueprints/planning/planning-blueprint.d.ts.map +1 -0
  29. package/dist/types/src/blueprints/planning/planning-blueprint.test.d.ts +2 -0
  30. package/dist/types/src/blueprints/planning/planning-blueprint.test.d.ts.map +1 -0
  31. package/dist/types/src/blueprints/research/index.d.ts +3 -0
  32. package/dist/types/src/blueprints/research/index.d.ts.map +1 -0
  33. package/dist/types/src/blueprints/research/research-blueprint.d.ts +4 -0
  34. package/dist/types/src/blueprints/research/research-blueprint.d.ts.map +1 -0
  35. package/dist/types/src/blueprints/research/research-blueprint.test.d.ts +2 -0
  36. package/dist/types/src/blueprints/research/research-blueprint.test.d.ts.map +1 -0
  37. package/dist/types/src/blueprints/testing.d.ts +12 -0
  38. package/dist/types/src/blueprints/testing.d.ts.map +1 -0
  39. package/dist/types/src/blueprints/websearch/index.d.ts +4 -0
  40. package/dist/types/src/blueprints/websearch/index.d.ts.map +1 -0
  41. package/dist/types/src/blueprints/websearch/websearch-blueprint.d.ts +4 -0
  42. package/dist/types/src/blueprints/websearch/websearch-blueprint.d.ts.map +1 -0
  43. package/dist/types/src/blueprints/websearch/websearch-toolkit.d.ts +26 -0
  44. package/dist/types/src/blueprints/websearch/websearch-toolkit.d.ts.map +1 -0
  45. package/dist/types/src/experimental/feed.test.d.ts +2 -0
  46. package/dist/types/src/experimental/feed.test.d.ts.map +1 -0
  47. package/dist/types/src/functions/agent/index.d.ts +5 -0
  48. package/dist/types/src/functions/agent/index.d.ts.map +1 -0
  49. package/dist/types/src/functions/agent/prompt.d.ts +11 -0
  50. package/dist/types/src/functions/agent/prompt.d.ts.map +1 -0
  51. package/dist/types/src/functions/discord/fetch-messages.d.ts +11 -0
  52. package/dist/types/src/functions/discord/fetch-messages.d.ts.map +1 -0
  53. package/dist/types/src/functions/discord/fetch-messages.test.d.ts +2 -0
  54. package/dist/types/src/functions/discord/fetch-messages.test.d.ts.map +1 -0
  55. package/dist/types/src/functions/discord/index.d.ts +12 -0
  56. package/dist/types/src/functions/discord/index.d.ts.map +1 -0
  57. package/dist/types/src/functions/document/index.d.ts +12 -0
  58. package/dist/types/src/functions/document/index.d.ts.map +1 -0
  59. package/dist/types/src/functions/document/read.d.ts +7 -0
  60. package/dist/types/src/functions/document/read.d.ts.map +1 -0
  61. package/dist/types/src/functions/document/update.d.ts +6 -0
  62. package/dist/types/src/functions/document/update.d.ts.map +1 -0
  63. package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts +173 -0
  64. package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts.map +1 -0
  65. package/dist/types/src/functions/entity-extraction/entity-extraction.test.d.ts +2 -0
  66. package/dist/types/src/functions/entity-extraction/entity-extraction.test.d.ts.map +1 -0
  67. package/dist/types/src/functions/entity-extraction/index.d.ts +174 -0
  68. package/dist/types/src/functions/entity-extraction/index.d.ts.map +1 -0
  69. package/dist/types/src/functions/exa/exa.d.ts +5 -0
  70. package/dist/types/src/functions/exa/exa.d.ts.map +1 -0
  71. package/dist/types/src/functions/exa/index.d.ts +3 -0
  72. package/dist/types/src/functions/exa/index.d.ts.map +1 -0
  73. package/dist/types/src/functions/exa/mock.d.ts +5 -0
  74. package/dist/types/src/functions/exa/mock.d.ts.map +1 -0
  75. package/dist/types/src/functions/github/fetch-prs.d.ts +6 -0
  76. package/dist/types/src/functions/github/fetch-prs.d.ts.map +1 -0
  77. package/dist/types/src/functions/index.d.ts +8 -0
  78. package/dist/types/src/functions/index.d.ts.map +1 -0
  79. package/dist/types/src/functions/linear/index.d.ts +9 -0
  80. package/dist/types/src/functions/linear/index.d.ts.map +1 -0
  81. package/dist/types/src/functions/linear/linear.test.d.ts +2 -0
  82. package/dist/types/src/functions/linear/linear.test.d.ts.map +1 -0
  83. package/dist/types/src/functions/linear/sync-issues.d.ts +12 -0
  84. package/dist/types/src/functions/linear/sync-issues.d.ts.map +1 -0
  85. package/dist/types/src/functions/research/create-document.d.ts +7 -0
  86. package/dist/types/src/functions/research/create-document.d.ts.map +1 -0
  87. package/dist/types/src/functions/research/graph.d.ts +64 -0
  88. package/dist/types/src/functions/research/graph.d.ts.map +1 -0
  89. package/dist/types/src/functions/research/graph.test.d.ts +2 -0
  90. package/dist/types/src/functions/research/graph.test.d.ts.map +1 -0
  91. package/dist/types/src/functions/research/index.d.ts +19 -0
  92. package/dist/types/src/functions/research/index.d.ts.map +1 -0
  93. package/dist/types/src/functions/research/research-graph.d.ts +18 -0
  94. package/dist/types/src/functions/research/research-graph.d.ts.map +1 -0
  95. package/dist/types/src/functions/research/research.d.ts +13 -0
  96. package/dist/types/src/functions/research/research.d.ts.map +1 -0
  97. package/dist/types/src/functions/research/research.test.d.ts +2 -0
  98. package/dist/types/src/functions/research/research.test.d.ts.map +1 -0
  99. package/dist/types/src/functions/research/types.d.ts +384 -0
  100. package/dist/types/src/functions/research/types.d.ts.map +1 -0
  101. package/dist/types/src/functions/tasks/index.d.ts +15 -0
  102. package/dist/types/src/functions/tasks/index.d.ts.map +1 -0
  103. package/dist/types/src/functions/tasks/read.d.ts +7 -0
  104. package/dist/types/src/functions/tasks/read.d.ts.map +1 -0
  105. package/dist/types/src/functions/tasks/task-list.d.ts +74 -0
  106. package/dist/types/src/functions/tasks/task-list.d.ts.map +1 -0
  107. package/dist/types/src/functions/tasks/task-list.test.d.ts +2 -0
  108. package/dist/types/src/functions/tasks/task-list.test.d.ts.map +1 -0
  109. package/dist/types/src/functions/tasks/update.d.ts +9 -0
  110. package/dist/types/src/functions/tasks/update.d.ts.map +1 -0
  111. package/dist/types/src/index.d.ts +5 -0
  112. package/dist/types/src/index.d.ts.map +1 -0
  113. package/dist/types/src/plugins.d.ts +19 -0
  114. package/dist/types/src/plugins.d.ts.map +1 -0
  115. package/dist/types/src/sync/index.d.ts +2 -0
  116. package/dist/types/src/sync/index.d.ts.map +1 -0
  117. package/dist/types/src/sync/sync.d.ts +15 -0
  118. package/dist/types/src/sync/sync.d.ts.map +1 -0
  119. package/dist/types/src/testing/data/exa-search-1748337321991.d.ts +38 -0
  120. package/dist/types/src/testing/data/exa-search-1748337321991.d.ts.map +1 -0
  121. package/dist/types/src/testing/data/exa-search-1748337331526.d.ts +37 -0
  122. package/dist/types/src/testing/data/exa-search-1748337331526.d.ts.map +1 -0
  123. package/dist/types/src/testing/data/exa-search-1748337344119.d.ts +58 -0
  124. package/dist/types/src/testing/data/exa-search-1748337344119.d.ts.map +1 -0
  125. package/dist/types/src/testing/data/index.d.ts +3 -0
  126. package/dist/types/src/testing/data/index.d.ts.map +1 -0
  127. package/dist/types/src/testing/index.d.ts +2 -0
  128. package/dist/types/src/testing/index.d.ts.map +1 -0
  129. package/dist/types/src/util/graphql.d.ts +22 -0
  130. package/dist/types/src/util/graphql.d.ts.map +1 -0
  131. package/dist/types/src/util/index.d.ts +2 -0
  132. package/dist/types/src/util/index.d.ts.map +1 -0
  133. package/dist/types/tsconfig.tsbuildinfo +1 -0
  134. package/package.json +67 -0
  135. package/src/blueprints/design/design-blueprint.test.ts +108 -0
  136. package/src/blueprints/design/design-blueprint.ts +33 -0
  137. package/src/blueprints/design/index.ts +7 -0
  138. package/src/blueprints/discord/discord-blueprint.ts +34 -0
  139. package/src/blueprints/discord/index.ts +7 -0
  140. package/src/blueprints/index.ts +10 -0
  141. package/src/blueprints/linear/index.ts +7 -0
  142. package/src/blueprints/linear/linear-blueprint.ts +35 -0
  143. package/src/blueprints/planning/index.ts +7 -0
  144. package/src/blueprints/planning/planning-blueprint.test.ts +129 -0
  145. package/src/blueprints/planning/planning-blueprint.ts +98 -0
  146. package/src/blueprints/research/index.ts +7 -0
  147. package/src/blueprints/research/research-blueprint.test.ts +7 -0
  148. package/src/blueprints/research/research-blueprint.ts +45 -0
  149. package/src/blueprints/testing.ts +34 -0
  150. package/src/blueprints/websearch/index.ts +8 -0
  151. package/src/blueprints/websearch/websearch-blueprint.ts +20 -0
  152. package/src/blueprints/websearch/websearch-toolkit.ts +8 -0
  153. package/src/experimental/feed.test.ts +108 -0
  154. package/src/functions/agent/index.ts +11 -0
  155. package/src/functions/agent/prompt.ts +101 -0
  156. package/src/functions/discord/fetch-messages.test.ts +59 -0
  157. package/src/functions/discord/fetch-messages.ts +251 -0
  158. package/src/functions/discord/index.ts +9 -0
  159. package/src/functions/document/index.ts +11 -0
  160. package/src/functions/document/read.ts +29 -0
  161. package/src/functions/document/update.ts +30 -0
  162. package/src/functions/entity-extraction/entity-extraction.conversations.json +1 -0
  163. package/src/functions/entity-extraction/entity-extraction.test.ts +100 -0
  164. package/src/functions/entity-extraction/entity-extraction.ts +163 -0
  165. package/src/functions/entity-extraction/index.ts +9 -0
  166. package/src/functions/exa/exa.ts +37 -0
  167. package/src/functions/exa/index.ts +6 -0
  168. package/src/functions/exa/mock.ts +71 -0
  169. package/src/functions/github/fetch-prs.ts +30 -0
  170. package/src/functions/index.ts +11 -0
  171. package/src/functions/linear/index.ts +9 -0
  172. package/src/functions/linear/linear.test.ts +86 -0
  173. package/src/functions/linear/sync-issues.ts +189 -0
  174. package/src/functions/research/create-document.ts +69 -0
  175. package/src/functions/research/graph.test.ts +69 -0
  176. package/src/functions/research/graph.ts +388 -0
  177. package/src/functions/research/index.ts +15 -0
  178. package/src/functions/research/instructions-research.tpl +98 -0
  179. package/src/functions/research/research-graph.ts +47 -0
  180. package/src/functions/research/research.conversations.json +10714 -0
  181. package/src/functions/research/research.test.ts +240 -0
  182. package/src/functions/research/research.ts +155 -0
  183. package/src/functions/research/types.ts +24 -0
  184. package/src/functions/tasks/index.ts +11 -0
  185. package/src/functions/tasks/read.ts +34 -0
  186. package/src/functions/tasks/task-list.test.ts +99 -0
  187. package/src/functions/tasks/task-list.ts +165 -0
  188. package/src/functions/tasks/update.ts +52 -0
  189. package/src/index.ts +8 -0
  190. package/src/plugins.tsx +68 -0
  191. package/src/sync/index.ts +5 -0
  192. package/src/sync/sync.ts +87 -0
  193. package/src/testing/data/exa-search-1748337321991.ts +131 -0
  194. package/src/testing/data/exa-search-1748337331526.ts +144 -0
  195. package/src/testing/data/exa-search-1748337344119.ts +133 -0
  196. package/src/testing/data/index.ts +11 -0
  197. package/src/testing/index.ts +5 -0
  198. package/src/typedefs.d.ts +8 -0
  199. package/src/util/graphql.ts +31 -0
  200. package/src/util/index.ts +5 -0
@@ -0,0 +1,384 @@
1
+ import { DataType } from '@dxos/schema';
2
+ /**
3
+ * Data types for research.
4
+ */
5
+ export declare const ResearchDataTypes: (import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
6
+ name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
7
+ owner: import("effect/Schema").Struct<{
8
+ contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").extend<import("effect/Schema").Struct<{
9
+ fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
10
+ preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
11
+ nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
12
+ image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
13
+ organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
14
+ id: string;
15
+ description?: string | undefined;
16
+ name?: string | undefined;
17
+ status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
18
+ image?: string | undefined;
19
+ website?: string | undefined;
20
+ location?: readonly [number, number, (number | undefined)?] | undefined;
21
+ }>, import("@dxos/echo-protocol").EncodedReference, never>>;
22
+ jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
23
+ department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
24
+ notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
25
+ emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
26
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
27
+ value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
28
+ }>>>>;
29
+ identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
30
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
31
+ value: typeof import("effect/Schema").String;
32
+ }>>>>;
33
+ phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
34
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
35
+ value: typeof import("effect/Schema").String;
36
+ }>>>>;
37
+ addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
38
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
39
+ value: import("effect/Schema").Struct<{
40
+ street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
41
+ extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
42
+ locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
43
+ region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
44
+ postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
45
+ postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
46
+ country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
47
+ }>;
48
+ }>>>>;
49
+ urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
50
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
51
+ value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
52
+ }>>>>;
53
+ birthday: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
54
+ fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
55
+ category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
56
+ label: typeof import("effect/Schema").String;
57
+ value: typeof import("effect/Schema").String;
58
+ }>>>>;
59
+ }>, import("effect/Schema").Struct<{
60
+ location: import("effect/Schema").optional<import("effect/Schema").Tuple<[import("effect/Schema").filter<import("effect/Schema").transform<import("effect/Schema").SchemaClass<number, number, never>, import("effect/Schema").filter<import("effect/Schema").SchemaClass<number, number, never>>>>, import("effect/Schema").filter<import("effect/Schema").transform<import("effect/Schema").SchemaClass<number, number, never>, import("effect/Schema").filter<import("effect/Schema").SchemaClass<number, number, never>>>>, import("effect/Schema").Element<typeof import("effect/Schema").Number, "?">]>>;
61
+ }>>>>>;
62
+ identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
63
+ identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
64
+ email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
65
+ name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
66
+ role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant", "tool"]>>;
67
+ }>;
68
+ attendees: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
69
+ contact: import("effect/Schema").optional<import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").extend<import("effect/Schema").Struct<{
70
+ fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
71
+ preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
72
+ nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
73
+ image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
74
+ organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
75
+ id: string;
76
+ description?: string | undefined;
77
+ name?: string | undefined;
78
+ status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
79
+ image?: string | undefined;
80
+ website?: string | undefined;
81
+ location?: readonly [number, number, (number | undefined)?] | undefined;
82
+ }>, import("@dxos/echo-protocol").EncodedReference, never>>;
83
+ jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
84
+ department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
85
+ notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
86
+ emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
87
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
88
+ value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
89
+ }>>>>;
90
+ identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
91
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
92
+ value: typeof import("effect/Schema").String;
93
+ }>>>>;
94
+ phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
95
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
96
+ value: typeof import("effect/Schema").String;
97
+ }>>>>;
98
+ addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
99
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
100
+ value: import("effect/Schema").Struct<{
101
+ street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
102
+ extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
103
+ locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
104
+ region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
105
+ postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
106
+ postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
107
+ country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
108
+ }>;
109
+ }>>>>;
110
+ urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
111
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
112
+ value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
113
+ }>>>>;
114
+ birthday: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
115
+ fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
116
+ category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
117
+ label: typeof import("effect/Schema").String;
118
+ value: typeof import("effect/Schema").String;
119
+ }>>>>;
120
+ }>, import("effect/Schema").Struct<{
121
+ location: import("effect/Schema").optional<import("effect/Schema").Tuple<[import("effect/Schema").filter<import("effect/Schema").transform<import("effect/Schema").SchemaClass<number, number, never>, import("effect/Schema").filter<import("effect/Schema").SchemaClass<number, number, never>>>>, import("effect/Schema").filter<import("effect/Schema").transform<import("effect/Schema").SchemaClass<number, number, never>, import("effect/Schema").filter<import("effect/Schema").SchemaClass<number, number, never>>>>, import("effect/Schema").Element<typeof import("effect/Schema").Number, "?">]>>;
122
+ }>>>>>;
123
+ identityDid: import("effect/Schema").optional<typeof import("effect/Schema").String>;
124
+ identityKey: import("effect/Schema").optional<typeof import("effect/Schema").String>;
125
+ email: import("effect/Schema").optional<typeof import("effect/Schema").String>;
126
+ name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
127
+ role: import("effect/Schema").optional<import("effect/Schema").Literal<["user", "assistant", "tool"]>>;
128
+ }>>>;
129
+ startDate: typeof import("effect/Schema").String;
130
+ endDate: typeof import("effect/Schema").String;
131
+ links: import("effect/Schema").mutable<import("effect/Schema").Array$<import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
132
+ [x: string]: any;
133
+ id: string;
134
+ }, never>>>>;
135
+ }>> | import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
136
+ id: import("@dxos/keys").ObjectIdClass;
137
+ name: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
138
+ description: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
139
+ status: import("effect/Schema").optional<import("effect/Schema").Literal<["prospect", "qualified", "active", "commit", "reject"]>>;
140
+ image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
141
+ website: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
142
+ }>> | import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
143
+ fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
144
+ preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
145
+ nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
146
+ image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
147
+ organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
148
+ id: string;
149
+ description?: string | undefined;
150
+ name?: string | undefined;
151
+ status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
152
+ image?: string | undefined;
153
+ website?: string | undefined;
154
+ location?: readonly [number, number, (number | undefined)?] | undefined;
155
+ }>, import("@dxos/echo-protocol").EncodedReference, never>>;
156
+ jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
157
+ department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
158
+ notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
159
+ emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
160
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
161
+ value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
162
+ }>>>>;
163
+ identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
164
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
165
+ value: typeof import("effect/Schema").String;
166
+ }>>>>;
167
+ phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
168
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
169
+ value: typeof import("effect/Schema").String;
170
+ }>>>>;
171
+ addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
172
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
173
+ value: import("effect/Schema").Struct<{
174
+ street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
175
+ extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
176
+ locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
177
+ region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
178
+ postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
179
+ postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
180
+ country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
181
+ }>;
182
+ }>>>>;
183
+ urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
184
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
185
+ value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
186
+ }>>>>;
187
+ birthday: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
188
+ fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
189
+ category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
190
+ label: typeof import("effect/Schema").String;
191
+ value: typeof import("effect/Schema").String;
192
+ }>>>>;
193
+ }>> | import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
194
+ name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
195
+ description: import("effect/Schema").optional<typeof import("effect/Schema").String>;
196
+ image: import("effect/Schema").optional<import("effect/Schema").refine<string, typeof import("effect/Schema").String>>;
197
+ collections: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Union<[import("@dxos/echo/Type").ref<import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
198
+ name: import("effect/Schema").optional<typeof import("effect/Schema").String>;
199
+ objects: import("effect/Schema").mutable<import("effect/Schema").Array$<import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
200
+ [x: string]: any;
201
+ id: string;
202
+ }, never>>>>;
203
+ }>>>, import("@dxos/echo/Type").ref<import("effect/Schema").Schema<DataType.View, import("@dxos/schema").ViewEncoded, never>>]>>>;
204
+ }>> | import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
205
+ title: import("effect/Schema").SchemaClass<string, string, never>;
206
+ priority: import("effect/Schema").optional<import("effect/Schema").Literal<["none", "low", "medium", "high", "urgent"]>>;
207
+ status: import("effect/Schema").optional<import("effect/Schema").Literal<["todo", "in-progress", "done"]>>;
208
+ assigned: import("effect/Schema").optional<import("effect/Schema").SchemaClass<import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
209
+ fields?: {
210
+ readonly value: string;
211
+ readonly label: string;
212
+ readonly category?: string | undefined;
213
+ }[] | undefined;
214
+ organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
215
+ id: string;
216
+ description?: string | undefined;
217
+ name?: string | undefined;
218
+ status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
219
+ image?: string | undefined;
220
+ website?: string | undefined;
221
+ location?: readonly [number, number, (number | undefined)?] | undefined;
222
+ }> | undefined;
223
+ image?: string | undefined;
224
+ fullName?: string | undefined;
225
+ preferredName?: string | undefined;
226
+ nickname?: string | undefined;
227
+ jobTitle?: string | undefined;
228
+ department?: string | undefined;
229
+ notes?: string | undefined;
230
+ emails?: {
231
+ readonly value: string;
232
+ readonly label?: string | undefined;
233
+ }[] | undefined;
234
+ identities?: {
235
+ readonly value: string;
236
+ readonly label?: string | undefined;
237
+ }[] | undefined;
238
+ phoneNumbers?: {
239
+ readonly value: string;
240
+ readonly label?: string | undefined;
241
+ }[] | undefined;
242
+ addresses?: {
243
+ readonly value: {
244
+ readonly street?: string | undefined;
245
+ readonly extended?: string | undefined;
246
+ readonly locality?: string | undefined;
247
+ readonly region?: string | undefined;
248
+ readonly postalCode?: string | undefined;
249
+ readonly postOfficeBoxNumber?: string | undefined;
250
+ readonly country?: string | undefined;
251
+ };
252
+ readonly label?: string | undefined;
253
+ }[] | undefined;
254
+ urls?: {
255
+ readonly value: string;
256
+ readonly label?: string | undefined;
257
+ }[] | undefined;
258
+ birthday?: string | undefined;
259
+ location?: readonly [number, number, (number | undefined)?] | undefined;
260
+ }>, import("@dxos/echo-protocol").EncodedReference, never>>;
261
+ estimate: import("effect/Schema").optional<import("effect/Schema").SchemaClass<number, number, never>>;
262
+ description: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
263
+ project: import("effect/Schema").optional<import("effect/Schema").SchemaClass<import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
264
+ description?: string | undefined;
265
+ name?: string | undefined;
266
+ image?: string | undefined;
267
+ collections: (import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
268
+ name?: string | undefined;
269
+ objects: import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").Expando>[];
270
+ }> | import("@dxos/echo/internal").Ref<DataType.View>)[];
271
+ }>, import("@dxos/echo-protocol").EncodedReference, never>>;
272
+ }>> | import("@dxos/echo/Type").obj<import("effect/Schema").Struct<{
273
+ content: typeof import("effect/Schema").String;
274
+ }>> | import("@dxos/echo/Type").relation<import("effect/Schema").Struct<{
275
+ id: import("@dxos/keys").ObjectIdClass;
276
+ kind: import("effect/Schema").SchemaClass<string, string, never>;
277
+ }>, import("@dxos/echo/Type").obj<import("effect/Schema").extend<import("effect/Schema").Struct<{
278
+ fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
279
+ preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
280
+ nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
281
+ image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
282
+ organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
283
+ id: string;
284
+ description?: string | undefined;
285
+ name?: string | undefined;
286
+ status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
287
+ image?: string | undefined;
288
+ website?: string | undefined;
289
+ location?: readonly [number, number, (number | undefined)?] | undefined;
290
+ }>, import("@dxos/echo-protocol").EncodedReference, never>>;
291
+ jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
292
+ department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
293
+ notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
294
+ emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
295
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
296
+ value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
297
+ }>>>>;
298
+ identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
299
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
300
+ value: typeof import("effect/Schema").String;
301
+ }>>>>;
302
+ phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
303
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
304
+ value: typeof import("effect/Schema").String;
305
+ }>>>>;
306
+ addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
307
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
308
+ value: import("effect/Schema").Struct<{
309
+ street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
310
+ extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
311
+ locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
312
+ region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
313
+ postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
314
+ postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
315
+ country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
316
+ }>;
317
+ }>>>>;
318
+ urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
319
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
320
+ value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
321
+ }>>>>;
322
+ birthday: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
323
+ fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
324
+ category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
325
+ label: typeof import("effect/Schema").String;
326
+ value: typeof import("effect/Schema").String;
327
+ }>>>>;
328
+ }>, import("effect/Schema").Struct<{
329
+ location: import("effect/Schema").optional<import("effect/Schema").Tuple<[import("effect/Schema").filter<import("effect/Schema").transform<import("effect/Schema").SchemaClass<number, number, never>, import("effect/Schema").filter<import("effect/Schema").SchemaClass<number, number, never>>>>, import("effect/Schema").filter<import("effect/Schema").transform<import("effect/Schema").SchemaClass<number, number, never>, import("effect/Schema").filter<import("effect/Schema").SchemaClass<number, number, never>>>>, import("effect/Schema").Element<typeof import("effect/Schema").Number, "?">]>>;
330
+ }>>>, import("@dxos/echo/Type").obj<import("effect/Schema").extend<import("effect/Schema").Struct<{
331
+ fullName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
332
+ preferredName: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
333
+ nickname: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
334
+ image: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
335
+ organization: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo/internal").Ref<import("@dxos/echo/Type").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
336
+ id: string;
337
+ description?: string | undefined;
338
+ name?: string | undefined;
339
+ status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
340
+ image?: string | undefined;
341
+ website?: string | undefined;
342
+ location?: readonly [number, number, (number | undefined)?] | undefined;
343
+ }>, import("@dxos/echo-protocol").EncodedReference, never>>;
344
+ jobTitle: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
345
+ department: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
346
+ notes: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
347
+ emails: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
348
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
349
+ value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
350
+ }>>>>;
351
+ identities: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
352
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
353
+ value: typeof import("effect/Schema").String;
354
+ }>>>>;
355
+ phoneNumbers: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
356
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
357
+ value: typeof import("effect/Schema").String;
358
+ }>>>>;
359
+ addresses: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
360
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
361
+ value: import("effect/Schema").Struct<{
362
+ street: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
363
+ extended: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
364
+ locality: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
365
+ region: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
366
+ postalCode: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
367
+ postOfficeBoxNumber: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
368
+ country: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
369
+ }>;
370
+ }>>>>;
371
+ urls: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
372
+ label: import("effect/Schema").optional<typeof import("effect/Schema").String>;
373
+ value: import("effect/Schema").refine<string, typeof import("effect/Schema").String>;
374
+ }>>>>;
375
+ birthday: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
376
+ fields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").Struct<{
377
+ category: import("effect/Schema").optional<typeof import("effect/Schema").String>;
378
+ label: typeof import("effect/Schema").String;
379
+ value: typeof import("effect/Schema").String;
380
+ }>>>>;
381
+ }>, import("effect/Schema").Struct<{
382
+ location: import("effect/Schema").optional<import("effect/Schema").Tuple<[import("effect/Schema").filter<import("effect/Schema").transform<import("effect/Schema").SchemaClass<number, number, never>, import("effect/Schema").filter<import("effect/Schema").SchemaClass<number, number, never>>>>, import("effect/Schema").filter<import("effect/Schema").transform<import("effect/Schema").SchemaClass<number, number, never>, import("effect/Schema").filter<import("effect/Schema").SchemaClass<number, number, never>>>>, import("effect/Schema").Element<typeof import("effect/Schema").Number, "?">]>>;
383
+ }>>>>)[];
384
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/functions/research/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;2BAewS,CAAC;oBAA0C,CAAC;sBAA4C,CAAC;qBAA8F,CAAC;uBAA6C,CAAC;wBAA8C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAA2xH,CAAC;oBAA0C,CAAC;sBAA4C,CAAC;qBAA8F,CAAC;uBAA6C,CAAC;wBAA8C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAA/wC,CAAC;YAAkC,CAAC;cAAoC,CAAC;aAAsF,CAAC;eAAqC,CAAC;gBAAsC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA3lH,CAAC;;;6BAAyG,CAAC;;oBAAmE,CAAC;;uBAAoJ,CAAC;gBAAsC,CAAC;kBAAwC,CAAC;iBAA0F,CAAC;mBAAyC,CAAC;oBAA0C,CAAC;;aAAqG,CAAC;gBAAsC,CAAC;qBAA2C,CAAC;gBAAsC,CAAC;gBAAsC,CAAC;kBAAwC,CAAC;aAAmC,CAAC;cAAoC,CAAC;;0BAAkE,CAAC;;kBAAiE,CAAC;;0BAAkE,CAAC;;oBAAmE,CAAC;;0BAAkE,CAAC;;iBAAgE,CAAC;;+BAAiE,CAAC;iCAAuD,CAAC;iCAAuD,CAAC;+BAAqD,CAAC;mCAAyD,CAAC;4CAAkE,CAAC;gCAAsD,CAAC;;0BAA+D,CAAC;;YAA2D,CAAC;;0BAAkE,CAAC;;gBAA+D,CAAC;gBAAsC,CAAC;;;;;mBAA8b,CAAC;YAAkC,CAAC;aAAmC,CAAC;;gBAA+J,CAAC;;;;;;;;;;;;;;;;mBAAs1I,CAAC;YAAkC,CAAC;cAAoC,CAAC;aAAsF,CAAC;eAAqC,CAAC;gBAAsC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAA0/F,CAAC;YAAkC,CAAC;cAAoC,CAAC;aAAsF,CAAC;eAAqC,CAAC;gBAAsC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAD5+U,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare namespace Tasks {
2
+ const read: import("@dxos/functions").FunctionDefinition<{
3
+ readonly id: string;
4
+ }, {
5
+ readonly content: string;
6
+ }>;
7
+ const update: import("@dxos/functions").FunctionDefinition<{
8
+ readonly id: string;
9
+ readonly operations?: readonly any[] | undefined;
10
+ }, {
11
+ readonly content: string;
12
+ readonly numberedContent: string;
13
+ }>;
14
+ }
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/tasks/index.ts"],"names":[],"mappings":"AAOA,yBAAiB,KAAK,CAAC;IACd,MAAM,IAAI;;;;MAAQ,CAAC;IACnB,MAAM,MAAM;;;;;;MAAU,CAAC;CAC/B"}
@@ -0,0 +1,7 @@
1
+ declare const _default: import("@dxos/functions").FunctionDefinition<{
2
+ readonly id: string;
3
+ }, {
4
+ readonly content: string;
5
+ }>;
6
+ export default _default;
7
+ //# sourceMappingURL=read.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../../src/functions/tasks/read.ts"],"names":[],"mappings":";;;;;AAWA,wBAsBG"}
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=task-list.test.d.ts.map
@@ -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
+ }>;
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,5 @@
1
+ export * from './blueprints';
2
+ export * from './functions';
3
+ export * from './plugins';
4
+ export * from './sync';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -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,2 @@
1
+ export * from './sync';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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"}