@dxos/assistant-toolkit 0.8.4-main.dfabb4ec29 → 0.8.4-main.effb148878
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 +102 -5
- package/dist/lib/neutral/{add-artifact-ZUJ5DMSY.mjs → add-artifact-ZKSSMPLY.mjs} +6 -6
- package/dist/lib/neutral/{add-artifact-ZUJ5DMSY.mjs.map → add-artifact-ZKSSMPLY.mjs.map} +3 -3
- package/dist/lib/neutral/{agent-5NIKAYUK.mjs → agent-UIASE5LZ.mjs} +7 -7
- package/dist/lib/neutral/{agent-5NIKAYUK.mjs.map → agent-UIASE5LZ.mjs.map} +2 -2
- package/dist/lib/neutral/chunk-AF5TWFLV.mjs +66 -0
- package/dist/lib/neutral/chunk-AF5TWFLV.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-P4ZMYO4K.mjs → chunk-CMHECL6N.mjs} +21 -33
- package/dist/lib/neutral/chunk-CMHECL6N.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-ZFXLTBZG.mjs → chunk-DC5KITJP.mjs} +3 -2
- package/dist/lib/neutral/chunk-DC5KITJP.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-WLR3BGO4.mjs → chunk-EUHZLWCG.mjs} +2 -1
- package/dist/lib/neutral/chunk-EUHZLWCG.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-IKBIORQX.mjs → chunk-EUTROPCP.mjs} +22 -9
- package/dist/lib/neutral/chunk-EUTROPCP.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-GV66MKAQ.mjs → chunk-FNN6ERC6.mjs} +4 -3
- package/dist/lib/neutral/chunk-FNN6ERC6.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-246ACKSH.mjs → chunk-GEMRKH7J.mjs} +15 -12
- package/dist/lib/neutral/chunk-GEMRKH7J.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-EJAQUAKM.mjs → chunk-GHGJCH73.mjs} +8 -5
- package/dist/lib/neutral/chunk-GHGJCH73.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-KGU725LW.mjs → chunk-LO2S3ICN.mjs} +4 -7
- package/dist/lib/neutral/chunk-LO2S3ICN.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-TO5IX24K.mjs → chunk-MMIERIDT.mjs} +12 -9
- package/dist/lib/neutral/chunk-MMIERIDT.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-NR3GTWRC.mjs → chunk-OC77MYT5.mjs} +8 -13
- package/dist/lib/neutral/chunk-OC77MYT5.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-ROMZO4CB.mjs → chunk-ONQXVECY.mjs} +11 -9
- package/dist/lib/neutral/chunk-ONQXVECY.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-QO5SU37C.mjs → chunk-PAEPER4S.mjs} +3 -3
- package/dist/lib/neutral/{chunk-XUF53B6B.mjs → chunk-RIF2TKJJ.mjs} +10 -9
- package/dist/lib/neutral/chunk-RIF2TKJJ.mjs.map +7 -0
- package/dist/lib/neutral/{context-add-VB7AOY3G.mjs → context-add-VNJUVPSY.mjs} +4 -4
- package/dist/lib/neutral/context-add-VNJUVPSY.mjs.map +7 -0
- package/dist/lib/neutral/{context-remove-VCM3VPSO.mjs → context-remove-ZASL7ABZ.mjs} +4 -4
- package/dist/lib/neutral/context-remove-ZASL7ABZ.mjs.map +7 -0
- package/dist/lib/neutral/{create-project-EIF4OJMY.mjs → create-project-VNC2KKBG.mjs} +7 -7
- package/dist/lib/neutral/{delete-J3PMWP7Z.mjs → delete-NLBJMMBJ.mjs} +3 -3
- package/dist/lib/neutral/{enable-blueprints-LBDZH2CY.mjs → enable-blueprints-SMGQ2WCU.mjs} +4 -4
- package/dist/lib/neutral/enable-blueprints-SMGQ2WCU.mjs.map +7 -0
- package/dist/lib/neutral/{fetch-KHMHV7JR.mjs → fetch-VV3DU75K.mjs} +2 -2
- package/dist/lib/neutral/{fetch-messages-QOBBCTGC.mjs → fetch-messages-YXH77S3S.mjs} +2 -2
- package/dist/lib/neutral/{get-context-TN7X7U2H.mjs → get-context-LG2CNVII.mjs} +7 -7
- package/dist/lib/neutral/{get-context-TN7X7U2H.mjs.map → get-context-LG2CNVII.mjs.map} +3 -3
- package/dist/lib/neutral/index.mjs +84 -85
- package/dist/lib/neutral/index.mjs.map +3 -3
- package/dist/lib/neutral/{load-ALP3TK2E.mjs → load-K7HEJA54.mjs} +2 -2
- package/dist/lib/neutral/meta.json +1 -1
- package/dist/lib/neutral/{object-create-Z57Y3X6Y.mjs → object-create-EN6PJN3L.mjs} +4 -4
- package/dist/lib/neutral/{object-create-Z57Y3X6Y.mjs.map → object-create-EN6PJN3L.mjs.map} +2 -2
- package/dist/lib/neutral/{object-delete-X53LS37B.mjs → object-delete-RMA5ZKGY.mjs} +2 -2
- package/dist/lib/neutral/{object-update-GVKSBR7T.mjs → object-update-JW5PLR2T.mjs} +3 -3
- package/dist/lib/neutral/{object-update-GVKSBR7T.mjs.map → object-update-JW5PLR2T.mjs.map} +2 -2
- package/dist/lib/neutral/{project-HPHTZ2CI.mjs → project-OGO5ABSZ.mjs} +6 -6
- package/dist/lib/neutral/{project-rules-IVDHKSKI.mjs → project-rules-IVA3DSOW.mjs} +5 -5
- package/dist/lib/neutral/{prompt-Y7NN7M5D.mjs → prompt-YVFNLD7U.mjs} +5 -5
- package/dist/lib/neutral/{prompt-Y7NN7M5D.mjs.map → prompt-YVFNLD7U.mjs.map} +3 -3
- package/dist/lib/neutral/{qualifier-VDOY5CWU.mjs → qualifier-UTPO5E3S.mjs} +15 -14
- package/dist/lib/neutral/qualifier-UTPO5E3S.mjs.map +7 -0
- package/dist/lib/neutral/{query-PPJU5622.mjs → query-3FK3ED6L.mjs} +4 -5
- package/dist/lib/neutral/query-3FK3ED6L.mjs.map +7 -0
- package/dist/lib/neutral/{query-U56GNEV6.mjs → query-GXZT4KUX.mjs} +3 -3
- package/dist/lib/neutral/{query-blueprints-KXADGHSA.mjs → query-blueprints-GA2JM54N.mjs} +2 -2
- package/dist/lib/neutral/{relation-create-XJ2IX6X3.mjs → relation-create-XOFKYPL2.mjs} +3 -3
- package/dist/lib/neutral/{relation-create-XJ2IX6X3.mjs.map → relation-create-XOFKYPL2.mjs.map} +3 -3
- package/dist/lib/neutral/{relation-delete-EP4KXAFL.mjs → relation-delete-MVJKKVEQ.mjs} +2 -2
- package/dist/lib/neutral/{save-GWAPLT3Z.mjs → save-TFQMJKG7.mjs} +3 -3
- package/dist/lib/neutral/{schema-add-Z5CY6P24.mjs → schema-add-I7BFBU55.mjs} +2 -2
- package/dist/lib/neutral/schema-list-TYGGAO2P.mjs +49 -0
- package/dist/lib/neutral/schema-list-TYGGAO2P.mjs.map +7 -0
- package/dist/lib/neutral/{sync-issues-4YE5XAK5.mjs → sync-issues-3U3EL6KO.mjs} +5 -6
- package/dist/lib/neutral/sync-issues-3U3EL6KO.mjs.map +7 -0
- package/dist/lib/neutral/{sync-triggers-CDMJVW6E.mjs → sync-triggers-M6U6RAKN.mjs} +39 -37
- package/dist/lib/neutral/sync-triggers-M6U6RAKN.mjs.map +7 -0
- package/dist/lib/neutral/{tag-add-VNIIOVJA.mjs → tag-add-RCE2QULJ.mjs} +3 -3
- package/dist/lib/neutral/{tag-add-VNIIOVJA.mjs.map → tag-add-RCE2QULJ.mjs.map} +3 -3
- package/dist/lib/neutral/{tag-remove-6R2R27W3.mjs → tag-remove-EPKB5CDE.mjs} +3 -3
- package/dist/lib/neutral/{tag-remove-6R2R27W3.mjs.map → tag-remove-EPKB5CDE.mjs.map} +3 -3
- package/dist/lib/neutral/testing/index.mjs +7 -10
- package/dist/lib/neutral/testing/index.mjs.map +3 -3
- package/dist/lib/neutral/{update-blueprints-N2AK2VUR.mjs → update-blueprints-VOGJKSMQ.mjs} +2 -2
- package/dist/lib/neutral/update-tasks-PNNNCPWH.mjs +13 -0
- package/dist/lib/neutral/update-tasks-PNNNCPWH.mjs.map +7 -0
- package/dist/types/src/blueprints/blueprint-manager/functions/definitions.d.ts +10 -12
- package/dist/types/src/blueprints/blueprint-manager/functions/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/blueprint-manager/functions/enable-blueprints.d.ts +6 -7
- package/dist/types/src/blueprints/blueprint-manager/functions/enable-blueprints.d.ts.map +1 -1
- package/dist/types/src/blueprints/blueprint-manager/functions/query-blueprints.d.ts +4 -5
- package/dist/types/src/blueprints/database/functions/context-add.d.ts +3 -3
- package/dist/types/src/blueprints/database/functions/context-add.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/context-remove.d.ts +3 -3
- package/dist/types/src/blueprints/database/functions/context-remove.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/definitions.d.ts +17 -17
- package/dist/types/src/blueprints/database/functions/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/load.d.ts +2 -2
- package/dist/types/src/blueprints/database/functions/load.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/object-delete.d.ts +1 -1
- package/dist/types/src/blueprints/database/functions/object-update.d.ts +2 -2
- package/dist/types/src/blueprints/database/functions/object-update.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/query.d.ts +2 -3
- package/dist/types/src/blueprints/database/functions/query.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/relation-create.d.ts +3 -3
- package/dist/types/src/blueprints/database/functions/relation-create.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/relation-delete.d.ts +1 -1
- package/dist/types/src/blueprints/database/functions/schema-list.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/tag-add.d.ts +3 -3
- package/dist/types/src/blueprints/database/functions/tag-add.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/tag-remove.d.ts +3 -3
- package/dist/types/src/blueprints/database/functions/tag-remove.d.ts.map +1 -1
- package/dist/types/src/blueprints/discord/functions/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/github/functions/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/linear/functions/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/linear/functions/sync-issues.d.ts.map +1 -1
- package/dist/types/src/blueprints/memory/functions/definitions.d.ts +2 -2
- package/dist/types/src/blueprints/memory/functions/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/memory/functions/delete.d.ts +2 -2
- package/dist/types/src/blueprints/planning/functions/index.d.ts +1 -1
- package/dist/types/src/blueprints/planning/functions/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/planning/functions/update-tasks.d.ts +14 -1
- package/dist/types/src/blueprints/planning/functions/update-tasks.d.ts.map +1 -1
- package/dist/types/src/blueprints/planning/functions/update-tasks.test.d.ts +2 -0
- package/dist/types/src/blueprints/planning/functions/update-tasks.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/functions/add-artifact.d.ts +1 -5
- package/dist/types/src/blueprints/project/functions/add-artifact.d.ts.map +1 -1
- package/dist/types/src/blueprints/project/functions/definitions.d.ts +60 -45
- package/dist/types/src/blueprints/project/functions/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/project/functions/get-context.d.ts +1 -12
- package/dist/types/src/blueprints/project/functions/get-context.d.ts.map +1 -1
- package/dist/types/src/blueprints/project/functions/qualifier.d.ts +3 -71
- package/dist/types/src/blueprints/project/functions/qualifier.d.ts.map +1 -1
- package/dist/types/src/blueprints/project-wizard/functions/create-project.d.ts +22 -18
- package/dist/types/src/blueprints/project-wizard/functions/definitions.d.ts +43 -36
- package/dist/types/src/blueprints/project-wizard/functions/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/project-wizard/functions/sync-triggers.d.ts +21 -17
- package/dist/types/src/blueprints/project-wizard/functions/sync-triggers.d.ts.map +1 -1
- package/dist/types/src/blueprints/testing.d.ts +4 -4
- package/dist/types/src/blueprints/testing.d.ts.map +1 -1
- package/dist/types/src/blueprints/websearch/functions/definitions.d.ts.map +1 -1
- package/dist/types/src/crud/graph.d.ts +8 -11
- package/dist/types/src/crud/graph.d.ts.map +1 -1
- package/dist/types/src/errors.d.ts +3 -3
- package/dist/types/src/errors.d.ts.map +1 -1
- package/dist/types/src/functions/agent/definitions.d.ts +12 -13
- package/dist/types/src/functions/agent/definitions.d.ts.map +1 -1
- package/dist/types/src/sync/sync.d.ts +1 -2
- package/dist/types/src/sync/sync.d.ts.map +1 -1
- package/dist/types/src/testing/plugins.d.ts +1 -1
- package/dist/types/src/testing/plugins.d.ts.map +1 -1
- package/dist/types/src/types/Agent.d.ts +23 -22
- package/dist/types/src/types/Agent.d.ts.map +1 -1
- package/dist/types/src/types/Chat.d.ts +17 -20
- package/dist/types/src/types/Chat.d.ts.map +1 -1
- package/dist/types/src/types/McpServer.d.ts +1 -2
- package/dist/types/src/types/McpServer.d.ts.map +1 -1
- package/dist/types/src/types/Memory.d.ts +1 -2
- package/dist/types/src/types/Memory.d.ts.map +1 -1
- package/dist/types/src/types/Plan.d.ts +14 -16
- package/dist/types/src/types/Plan.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +26 -26
- package/src/blueprints/automation/blueprint.ts +3 -3
- package/src/blueprints/blueprint-manager/blueprint.conversations.json +1 -1
- package/src/blueprints/blueprint-manager/blueprint.test.ts +23 -19
- package/src/blueprints/blueprint-manager/functions/definitions.ts +8 -5
- package/src/blueprints/blueprint-manager/functions/enable-blueprints.ts +2 -2
- package/src/blueprints/database/blueprint.conversations.json +1 -1
- package/src/blueprints/database/blueprint.test.ts +15 -15
- package/src/blueprints/database/functions/context-add.ts +2 -2
- package/src/blueprints/database/functions/context-remove.ts +2 -2
- package/src/blueprints/database/functions/definitions.ts +19 -6
- package/src/blueprints/database/functions/object-create.ts +2 -2
- package/src/blueprints/database/functions/object-update.ts +1 -1
- package/src/blueprints/database/functions/query.ts +3 -4
- package/src/blueprints/database/functions/relation-create.ts +1 -1
- package/src/blueprints/database/functions/schema-list.ts +17 -10
- package/src/blueprints/database/functions/tag-add.ts +1 -1
- package/src/blueprints/database/functions/tag-remove.ts +1 -1
- package/src/blueprints/discord/functions/definitions.ts +1 -0
- package/src/blueprints/discord/functions/fetch-messages.test.ts +7 -2
- package/src/blueprints/github/functions/definitions.ts +1 -0
- package/src/blueprints/linear/functions/definitions.ts +1 -0
- package/src/blueprints/linear/functions/linear.test.ts +1 -2
- package/src/blueprints/linear/functions/sync-issues.ts +1 -2
- package/src/blueprints/memory/blueprint.conversations.json +1 -1
- package/src/blueprints/memory/functions/definitions.ts +3 -0
- package/src/blueprints/planning/blueprint.ts +1 -1
- package/src/blueprints/planning/functions/index.ts +1 -1
- package/src/blueprints/planning/functions/{definitions.ts → update-tasks.md} +29 -50
- package/src/blueprints/planning/functions/update-tasks.test.ts +55 -0
- package/src/blueprints/planning/functions/update-tasks.ts +26 -3
- package/src/blueprints/project/blueprint.conversations.json +1 -1
- package/src/blueprints/project/blueprint.test.ts +12 -14
- package/src/blueprints/project/functions/add-artifact.ts +1 -0
- package/src/blueprints/project/functions/agent.ts +2 -2
- package/src/blueprints/project/functions/definitions.ts +8 -6
- package/src/blueprints/project/functions/get-context.ts +2 -1
- package/src/blueprints/project/functions/qualifier.ts +8 -7
- package/src/blueprints/project-wizard/functions/definitions.ts +6 -4
- package/src/blueprints/project-wizard/functions/sync-triggers.ts +32 -34
- package/src/blueprints/testing.ts +10 -4
- package/src/blueprints/websearch/blueprint.conversations.json +1 -1
- package/src/blueprints/websearch/functions/definitions.ts +1 -0
- package/src/crud/graph.test.ts +1 -1
- package/src/crud/graph.ts +142 -151
- package/src/errors.ts +3 -3
- package/src/functions/agent/definitions.ts +2 -1
- package/src/functions/agent/prompt.conversations.json +1 -1
- package/src/functions/agent/prompt.test.ts +8 -11
- package/src/functions/agent/prompt.ts +2 -2
- package/src/sync/sync.ts +7 -6
- package/src/testing/plugins.tsx +8 -13
- package/src/types/Agent.ts +24 -29
- package/src/types/Chat.ts +9 -16
- package/src/types/McpServer.ts +3 -6
- package/src/types/Memory.ts +3 -3
- package/src/types/Plan.ts +4 -11
- package/dist/lib/neutral/chunk-246ACKSH.mjs.map +0 -7
- package/dist/lib/neutral/chunk-EJAQUAKM.mjs.map +0 -7
- package/dist/lib/neutral/chunk-FIGO6CA6.mjs +0 -140
- package/dist/lib/neutral/chunk-FIGO6CA6.mjs.map +0 -7
- package/dist/lib/neutral/chunk-GV66MKAQ.mjs.map +0 -7
- package/dist/lib/neutral/chunk-IKBIORQX.mjs.map +0 -7
- package/dist/lib/neutral/chunk-KGU725LW.mjs.map +0 -7
- package/dist/lib/neutral/chunk-NR3GTWRC.mjs.map +0 -7
- package/dist/lib/neutral/chunk-P4ZMYO4K.mjs.map +0 -7
- package/dist/lib/neutral/chunk-ROMZO4CB.mjs.map +0 -7
- package/dist/lib/neutral/chunk-TO5IX24K.mjs.map +0 -7
- package/dist/lib/neutral/chunk-WLR3BGO4.mjs.map +0 -7
- package/dist/lib/neutral/chunk-XUF53B6B.mjs.map +0 -7
- package/dist/lib/neutral/chunk-ZFXLTBZG.mjs.map +0 -7
- package/dist/lib/neutral/context-add-VB7AOY3G.mjs.map +0 -7
- package/dist/lib/neutral/context-remove-VCM3VPSO.mjs.map +0 -7
- package/dist/lib/neutral/enable-blueprints-LBDZH2CY.mjs.map +0 -7
- package/dist/lib/neutral/qualifier-VDOY5CWU.mjs.map +0 -7
- package/dist/lib/neutral/query-PPJU5622.mjs.map +0 -7
- package/dist/lib/neutral/schema-list-W326VPVX.mjs +0 -38
- package/dist/lib/neutral/schema-list-W326VPVX.mjs.map +0 -7
- package/dist/lib/neutral/sync-issues-4YE5XAK5.mjs.map +0 -7
- package/dist/lib/neutral/sync-triggers-CDMJVW6E.mjs.map +0 -7
- package/dist/lib/neutral/update-tasks-H7SWIFQL.mjs +0 -46
- package/dist/lib/neutral/update-tasks-H7SWIFQL.mjs.map +0 -7
- package/dist/types/src/blueprints/planning/functions/definitions.d.ts +0 -11
- package/dist/types/src/blueprints/planning/functions/definitions.d.ts.map +0 -1
- /package/dist/lib/neutral/{chunk-QO5SU37C.mjs.map → chunk-PAEPER4S.mjs.map} +0 -0
- /package/dist/lib/neutral/{create-project-EIF4OJMY.mjs.map → create-project-VNC2KKBG.mjs.map} +0 -0
- /package/dist/lib/neutral/{delete-J3PMWP7Z.mjs.map → delete-NLBJMMBJ.mjs.map} +0 -0
- /package/dist/lib/neutral/{fetch-KHMHV7JR.mjs.map → fetch-VV3DU75K.mjs.map} +0 -0
- /package/dist/lib/neutral/{fetch-messages-QOBBCTGC.mjs.map → fetch-messages-YXH77S3S.mjs.map} +0 -0
- /package/dist/lib/neutral/{load-ALP3TK2E.mjs.map → load-K7HEJA54.mjs.map} +0 -0
- /package/dist/lib/neutral/{object-delete-X53LS37B.mjs.map → object-delete-RMA5ZKGY.mjs.map} +0 -0
- /package/dist/lib/neutral/{project-HPHTZ2CI.mjs.map → project-OGO5ABSZ.mjs.map} +0 -0
- /package/dist/lib/neutral/{project-rules-IVDHKSKI.mjs.map → project-rules-IVA3DSOW.mjs.map} +0 -0
- /package/dist/lib/neutral/{query-U56GNEV6.mjs.map → query-GXZT4KUX.mjs.map} +0 -0
- /package/dist/lib/neutral/{query-blueprints-KXADGHSA.mjs.map → query-blueprints-GA2JM54N.mjs.map} +0 -0
- /package/dist/lib/neutral/{relation-delete-EP4KXAFL.mjs.map → relation-delete-MVJKKVEQ.mjs.map} +0 -0
- /package/dist/lib/neutral/{save-GWAPLT3Z.mjs.map → save-TFQMJKG7.mjs.map} +0 -0
- /package/dist/lib/neutral/{schema-add-Z5CY6P24.mjs.map → schema-add-I7BFBU55.mjs.map} +0 -0
- /package/dist/lib/neutral/{update-blueprints-N2AK2VUR.mjs.map → update-blueprints-VOGJKSMQ.mjs.map} +0 -0
|
@@ -6,7 +6,7 @@ import { describe, expect, it } from '@effect/vitest';
|
|
|
6
6
|
import * as Effect from 'effect/Effect';
|
|
7
7
|
|
|
8
8
|
import { Blueprint, Operation } from '@dxos/compute';
|
|
9
|
-
import { Database, Entity, Feed, Filter, Obj, Query, Ref, Relation, Tag } from '@dxos/echo';
|
|
9
|
+
import { Database, Entity, Feed, Filter, Obj, Query, Ref, Relation, Tag, Type } from '@dxos/echo';
|
|
10
10
|
import { TestHelpers } from '@dxos/effect/testing';
|
|
11
11
|
import { AgentService } from '@dxos/functions-runtime';
|
|
12
12
|
import { AssistantTestLayer } from '@dxos/functions-runtime/testing';
|
|
@@ -185,8 +185,8 @@ describe('Database Blueprint', () => {
|
|
|
185
185
|
const org = yield* Database.add(
|
|
186
186
|
Obj.make(Organization.Organization, { name: 'Detail Corp', description: 'A detailed organization.' }),
|
|
187
187
|
);
|
|
188
|
-
const
|
|
189
|
-
yield* agent.submitPrompt(`Load the full details of object ${
|
|
188
|
+
const uri = Obj.getURI(org);
|
|
189
|
+
yield* agent.submitPrompt(`Load the full details of object ${uri}. What is its description?`);
|
|
190
190
|
yield* agent.waitForCompletion();
|
|
191
191
|
},
|
|
192
192
|
Effect.provide(TestLayer),
|
|
@@ -237,8 +237,8 @@ describe('Database Blueprint', () => {
|
|
|
237
237
|
role: 'Director',
|
|
238
238
|
}),
|
|
239
239
|
);
|
|
240
|
-
const
|
|
241
|
-
yield* agent.submitPrompt(`Delete the relation ${
|
|
240
|
+
const relationUri = Relation.getURI(relation);
|
|
241
|
+
yield* agent.submitPrompt(`Delete the relation ${relationUri}.`);
|
|
242
242
|
yield* agent.waitForCompletion();
|
|
243
243
|
expect(Relation.isDeleted(relation)).toBe(true);
|
|
244
244
|
},
|
|
@@ -265,7 +265,7 @@ describe('Database Blueprint', () => {
|
|
|
265
265
|
yield* agent.waitForCompletion();
|
|
266
266
|
const tags = Obj.getMeta(org).tags ?? [];
|
|
267
267
|
// TODO(dmaretskyi): matcher doesnt work with echo proxies.
|
|
268
|
-
expect([...tags]).toContain(Obj.
|
|
268
|
+
expect([...tags]).toContain(Obj.getURI(tag));
|
|
269
269
|
},
|
|
270
270
|
Effect.provide(TestLayer),
|
|
271
271
|
TestHelpers.provideTestContext,
|
|
@@ -282,14 +282,14 @@ describe('Database Blueprint', () => {
|
|
|
282
282
|
});
|
|
283
283
|
const org = yield* Database.add(Obj.make(Organization.Organization, { name: 'Untagged Corp' }));
|
|
284
284
|
const tag = yield* Database.add(Tag.make({ label: 'obsolete' }));
|
|
285
|
-
const
|
|
286
|
-
Entity.update(org, (org) => Entity.addTag(org,
|
|
287
|
-
expect(Obj.getMeta(org).tags ?? []).toContain(
|
|
285
|
+
const tagUri = Obj.getURI(tag);
|
|
286
|
+
Entity.update(org, (org) => Entity.addTag(org, tagUri));
|
|
287
|
+
expect(Obj.getMeta(org).tags ?? []).toContain(tagUri);
|
|
288
288
|
yield* agent.submitPrompt(`Remove tag "obsolete" from the organization "Untagged Corp".`);
|
|
289
289
|
yield* agent.waitForCompletion();
|
|
290
290
|
const tags = Obj.getMeta(org).tags ?? [];
|
|
291
291
|
// TODO(dmaretskyi): matcher doesnt work with echo proxies.
|
|
292
|
-
expect([...tags]).not.toContain(
|
|
292
|
+
expect([...tags]).not.toContain(tagUri);
|
|
293
293
|
},
|
|
294
294
|
Effect.provide(TestLayer),
|
|
295
295
|
TestHelpers.provideTestContext,
|
|
@@ -329,13 +329,13 @@ describe('Database Blueprint', () => {
|
|
|
329
329
|
});
|
|
330
330
|
const org = yield* Database.add(Obj.make(Organization.Organization, { name: 'Remove Context Corp' }));
|
|
331
331
|
const { db } = yield* Database.Service;
|
|
332
|
-
const ref = db.makeRef(Obj.
|
|
332
|
+
const ref = db.makeRef(Obj.getURI(org)) as Ref.Ref<any>;
|
|
333
333
|
yield* agent.addContext([ref]);
|
|
334
|
-
const
|
|
334
|
+
const uri = Obj.getURI(org);
|
|
335
335
|
yield* agent.submitPrompt(`Remove the organization "Remove Context Corp" from the chat context.`);
|
|
336
336
|
yield* agent.waitForCompletion();
|
|
337
337
|
const contextRefs = yield* agent.getContext();
|
|
338
|
-
const found = contextRefs.find((contextRef) => contextRef.
|
|
338
|
+
const found = contextRefs.find((contextRef) => contextRef.uri === uri);
|
|
339
339
|
expect(found).toBeUndefined();
|
|
340
340
|
},
|
|
341
341
|
Effect.provide(TestLayer),
|
|
@@ -517,8 +517,8 @@ describe('Database Blueprint', () => {
|
|
|
517
517
|
`Call query tool with precisely ${JSON.stringify({
|
|
518
518
|
includeContent: false,
|
|
519
519
|
limit: 10,
|
|
520
|
-
typename: Organization.Organization
|
|
521
|
-
in: [Obj.
|
|
520
|
+
typename: Type.getTypename(Organization.Organization),
|
|
521
|
+
in: [Obj.getURI(feed1)],
|
|
522
522
|
})}`,
|
|
523
523
|
);
|
|
524
524
|
yield* agent.waitForCompletion();
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { AiContext } from '@dxos/assistant';
|
|
8
8
|
import { Operation } from '@dxos/compute';
|
|
9
9
|
|
|
10
10
|
import { ContextAdd } from './definitions';
|
|
@@ -12,7 +12,7 @@ import { ContextAdd } from './definitions';
|
|
|
12
12
|
export default ContextAdd.pipe(
|
|
13
13
|
Operation.withHandler(
|
|
14
14
|
Effect.fn(function* ({ obj }) {
|
|
15
|
-
const { binder } = yield*
|
|
15
|
+
const { binder } = yield* AiContext.Service;
|
|
16
16
|
yield* Effect.promise(() =>
|
|
17
17
|
binder.bind({
|
|
18
18
|
blueprints: [],
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { AiContext } from '@dxos/assistant';
|
|
8
8
|
import { Operation } from '@dxos/compute';
|
|
9
9
|
|
|
10
10
|
import { ContextRemove } from './definitions';
|
|
@@ -12,7 +12,7 @@ import { ContextRemove } from './definitions';
|
|
|
12
12
|
export default ContextRemove.pipe(
|
|
13
13
|
Operation.withHandler(
|
|
14
14
|
Effect.fn(function* ({ obj }) {
|
|
15
|
-
const { binder } = yield*
|
|
15
|
+
const { binder } = yield* AiContext.Service;
|
|
16
16
|
yield* Effect.promise(() =>
|
|
17
17
|
binder.unbind({
|
|
18
18
|
blueprints: [],
|
|
@@ -4,15 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Schema from 'effect/Schema';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { AiContext } from '@dxos/assistant';
|
|
8
8
|
import { Operation } from '@dxos/compute';
|
|
9
|
-
import { Database, Obj, Ref, Relation, Tag } from '@dxos/echo';
|
|
9
|
+
import { Database, Obj, Ref, Relation, Tag, Type } from '@dxos/echo';
|
|
10
10
|
import { trim } from '@dxos/util';
|
|
11
11
|
|
|
12
12
|
export const Query = Operation.make({
|
|
13
13
|
meta: {
|
|
14
14
|
key: 'org.dxos.function.database.query',
|
|
15
15
|
name: 'Query',
|
|
16
|
+
icon: 'ph--magnifying-glass--regular',
|
|
16
17
|
description: trim`
|
|
17
18
|
Query for objects in ECHO.
|
|
18
19
|
Use this tool when searching for information in the space (both automerge and queues).
|
|
@@ -107,6 +108,7 @@ export const Load = Operation.make({
|
|
|
107
108
|
meta: {
|
|
108
109
|
key: 'org.dxos.function.database.load',
|
|
109
110
|
name: 'Load object',
|
|
111
|
+
icon: 'ph--download--regular',
|
|
110
112
|
description: trim`
|
|
111
113
|
Loads the object or relation content.
|
|
112
114
|
Can load multiple objects at at time.
|
|
@@ -127,6 +129,7 @@ export const ObjectCreate = Operation.make({
|
|
|
127
129
|
meta: {
|
|
128
130
|
key: 'org.dxos.function.database.object-create',
|
|
129
131
|
name: 'Create object',
|
|
132
|
+
icon: 'ph--plus--regular',
|
|
130
133
|
description: trim`
|
|
131
134
|
Creates a new object and adds it to the current space.
|
|
132
135
|
Get the schema from the schema-list tool and ensure that the data matches the corresponding schema.
|
|
@@ -146,6 +149,7 @@ export const ObjectUpdate = Operation.make({
|
|
|
146
149
|
meta: {
|
|
147
150
|
key: 'org.dxos.function.database.object-update',
|
|
148
151
|
name: 'Update object',
|
|
152
|
+
icon: 'ph--pencil--regular',
|
|
149
153
|
description: trim`
|
|
150
154
|
Updates the object properties.
|
|
151
155
|
References are provided in the following format: { "/": "dxn:..." }.
|
|
@@ -167,6 +171,7 @@ export const ObjectDelete = Operation.make({
|
|
|
167
171
|
description: trim`
|
|
168
172
|
Deletes the object.
|
|
169
173
|
`,
|
|
174
|
+
icon: 'ph--trash--regular',
|
|
170
175
|
},
|
|
171
176
|
input: Schema.Struct({
|
|
172
177
|
obj: Ref.Ref(Obj.Unknown),
|
|
@@ -179,6 +184,7 @@ export const SchemaAdd = Operation.make({
|
|
|
179
184
|
meta: {
|
|
180
185
|
key: 'org.dxos.function.database.schema-add',
|
|
181
186
|
name: 'Add schema',
|
|
187
|
+
icon: 'ph--plus--regular',
|
|
182
188
|
description: trim`
|
|
183
189
|
Adds a schema to the space.
|
|
184
190
|
The name will be used when displayed to the user.
|
|
@@ -199,6 +205,7 @@ export const SchemaList = Operation.make({
|
|
|
199
205
|
meta: {
|
|
200
206
|
key: 'org.dxos.function.database.schema-list',
|
|
201
207
|
name: 'List schemas',
|
|
208
|
+
icon: 'ph--list--regular',
|
|
202
209
|
description: trim`
|
|
203
210
|
Lists schemas definitions.
|
|
204
211
|
`,
|
|
@@ -214,6 +221,7 @@ export const ContextAdd = Operation.make({
|
|
|
214
221
|
meta: {
|
|
215
222
|
key: 'org.dxos.function.database.context-add',
|
|
216
223
|
name: 'Add to context',
|
|
224
|
+
icon: 'ph--plus-circle--regular',
|
|
217
225
|
description: trim`
|
|
218
226
|
Adds the object to the chat context.
|
|
219
227
|
Use this it for objects that are useful long-term for the conversation.
|
|
@@ -225,13 +233,14 @@ export const ContextAdd = Operation.make({
|
|
|
225
233
|
}),
|
|
226
234
|
}),
|
|
227
235
|
output: Schema.Void,
|
|
228
|
-
services: [
|
|
236
|
+
services: [AiContext.Service],
|
|
229
237
|
}).pipe(Operation.intrinsic);
|
|
230
238
|
|
|
231
239
|
export const ContextRemove = Operation.make({
|
|
232
240
|
meta: {
|
|
233
241
|
key: 'org.dxos.function.database.context-remove',
|
|
234
242
|
name: 'Remove from context',
|
|
243
|
+
icon: 'ph--minus-circle--regular',
|
|
235
244
|
description: trim`
|
|
236
245
|
Removes the object from the chat context.
|
|
237
246
|
Use this it for objects that are no longer useful for the conversation.
|
|
@@ -243,13 +252,14 @@ export const ContextRemove = Operation.make({
|
|
|
243
252
|
}),
|
|
244
253
|
}),
|
|
245
254
|
output: Schema.Void,
|
|
246
|
-
services: [
|
|
255
|
+
services: [AiContext.Service],
|
|
247
256
|
}).pipe(Operation.intrinsic);
|
|
248
257
|
|
|
249
258
|
export const RelationCreate = Operation.make({
|
|
250
259
|
meta: {
|
|
251
260
|
key: 'org.dxos.function.database.relation-create',
|
|
252
261
|
name: 'Create relation',
|
|
262
|
+
icon: 'ph--arrows-merge--regular',
|
|
253
263
|
description: trim`
|
|
254
264
|
Creates a new relation and adds it to the current space.
|
|
255
265
|
Get the schema from the schema-list tool and ensure that the data matches the corresponding schema.
|
|
@@ -274,6 +284,7 @@ export const RelationDelete = Operation.make({
|
|
|
274
284
|
description: trim`
|
|
275
285
|
Deletes the relation.
|
|
276
286
|
`,
|
|
287
|
+
icon: 'ph--trash--regular',
|
|
277
288
|
},
|
|
278
289
|
input: Schema.Struct({
|
|
279
290
|
rel: Ref.Ref(Relation.Unknown),
|
|
@@ -286,9 +297,10 @@ export const TagAdd = Operation.make({
|
|
|
286
297
|
meta: {
|
|
287
298
|
key: 'org.dxos.function.database.tag-add',
|
|
288
299
|
name: 'Add tag',
|
|
300
|
+
icon: 'ph--tag--regular',
|
|
289
301
|
description: trim`
|
|
290
302
|
Adds a tag to an object.
|
|
291
|
-
Tags are objects of type ${Tag.Tag
|
|
303
|
+
Tags are objects of type ${Type.getTypename(Tag.Tag)}.
|
|
292
304
|
You must search database for available tags, or create a new one.
|
|
293
305
|
`,
|
|
294
306
|
},
|
|
@@ -304,9 +316,10 @@ export const TagRemove = Operation.make({
|
|
|
304
316
|
meta: {
|
|
305
317
|
key: 'org.dxos.function.database.tag-remove',
|
|
306
318
|
name: 'Remove tag',
|
|
319
|
+
icon: 'ph--tag--regular',
|
|
307
320
|
description: trim`
|
|
308
321
|
Removes a tag from an object.
|
|
309
|
-
Tags are objects of type ${Tag.Tag
|
|
322
|
+
Tags are objects of type ${Type.getTypename(Tag.Tag)}.
|
|
310
323
|
`,
|
|
311
324
|
},
|
|
312
325
|
input: Schema.Struct({
|
|
@@ -19,14 +19,14 @@ export default ObjectCreate.pipe(
|
|
|
19
19
|
const schema = yield* Effect.promise(() =>
|
|
20
20
|
db.schemaRegistry.query({ typename, location: ['database', 'runtime'] }).first(),
|
|
21
21
|
);
|
|
22
|
-
invariant(Type.
|
|
22
|
+
invariant(Type.isObject(schema), 'Schema is not an object schema');
|
|
23
23
|
|
|
24
24
|
const object = db.add(
|
|
25
25
|
Obj.make(
|
|
26
26
|
schema,
|
|
27
27
|
deepMapValues(data, (value, recurse) => {
|
|
28
28
|
if (EncodedReference.isEncodedReference(value)) {
|
|
29
|
-
return db.makeRef(EncodedReference.
|
|
29
|
+
return db.makeRef(EncodedReference.toURI(value));
|
|
30
30
|
}
|
|
31
31
|
return recurse(value);
|
|
32
32
|
}),
|
|
@@ -18,7 +18,7 @@ export default ObjectUpdate.pipe(
|
|
|
18
18
|
Entity.update(object as Entity.Any, (obj) => {
|
|
19
19
|
for (const [key, value] of Object.entries(properties)) {
|
|
20
20
|
if (EncodedReference.isEncodedReference(value)) {
|
|
21
|
-
obj[key] = db.makeRef(EncodedReference.
|
|
21
|
+
obj[key] = db.makeRef(EncodedReference.toURI(value));
|
|
22
22
|
} else {
|
|
23
23
|
obj[key] = value;
|
|
24
24
|
}
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
7
|
import { Operation } from '@dxos/compute';
|
|
8
|
-
import { Entity, Filter, Obj, Query as EchoQuery } from '@dxos/echo';
|
|
9
|
-
import { Database } from '@dxos/echo';
|
|
8
|
+
import { Database, Entity, Filter, Obj, Query as EchoQuery } from '@dxos/echo';
|
|
10
9
|
|
|
11
10
|
import { Query } from './definitions';
|
|
12
11
|
|
|
@@ -43,7 +42,7 @@ export default Query.pipe(
|
|
|
43
42
|
|
|
44
43
|
query = query.limit(limit);
|
|
45
44
|
if (includeQueues) {
|
|
46
|
-
// Must scope to the current space: `from({
|
|
45
|
+
// Must scope to the current space: `from({ allFeedsFromSpaces: true })` alone has no spaceIds, so the SQL
|
|
47
46
|
// index returns nothing (see ObjectMetaIndex.buildSourceCondition / early returns when spaceIds are empty).
|
|
48
47
|
query = query.from(db, { includeFeeds: true });
|
|
49
48
|
}
|
|
@@ -54,7 +53,7 @@ export default Query.pipe(
|
|
|
54
53
|
return results.map((obj) => Entity.toJSON(obj));
|
|
55
54
|
} else {
|
|
56
55
|
return results.map((obj) => ({
|
|
57
|
-
dxn: Obj.
|
|
56
|
+
dxn: Obj.getURI(obj),
|
|
58
57
|
typename: Obj.getTypename(obj),
|
|
59
58
|
label: Obj.getLabel(obj),
|
|
60
59
|
}));
|
|
@@ -17,7 +17,7 @@ export default RelationCreate.pipe(
|
|
|
17
17
|
const schema = yield* Effect.promise(() =>
|
|
18
18
|
db.schemaRegistry.query({ typename, location: ['database', 'runtime'] }).first(),
|
|
19
19
|
);
|
|
20
|
-
invariant(Type.
|
|
20
|
+
invariant(Type.isRelation(schema), 'Schema is not a relation schema');
|
|
21
21
|
|
|
22
22
|
const sourceObj = yield* Database.load(source);
|
|
23
23
|
const targetObj = yield* Database.load(target);
|
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
7
|
import { Routine, Blueprint, Operation } from '@dxos/compute';
|
|
8
|
-
import { Database, Feed,
|
|
8
|
+
import { Database, Feed, Type, View } from '@dxos/echo';
|
|
9
|
+
import { log } from '@dxos/log';
|
|
9
10
|
|
|
10
11
|
import { SchemaList } from './definitions';
|
|
11
12
|
|
|
12
13
|
// TODO(dmaretskyi): This is a balance between not filling the agent's context with too many types and not excluding important types.
|
|
13
|
-
const EXCLUDED_TYPES = [Type.
|
|
14
|
+
const EXCLUDED_TYPES = [Type.Type, View.View, Routine.Routine, Blueprint.Blueprint, Feed.Feed];
|
|
14
15
|
const excludedTypenames = EXCLUDED_TYPES.map((type) => Type.getTypename(type));
|
|
15
16
|
|
|
16
17
|
export default SchemaList.pipe(
|
|
@@ -19,14 +20,20 @@ export default SchemaList.pipe(
|
|
|
19
20
|
const { db } = yield* Database.Service;
|
|
20
21
|
const schema = yield* Effect.promise(() => db.schemaRegistry.query({ location: ['database', 'runtime'] }).run());
|
|
21
22
|
return schema
|
|
22
|
-
.filter((
|
|
23
|
-
.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
.filter((type) => !excludedTypenames.includes(Type.getTypename(type)))
|
|
24
|
+
.flatMap((type) => {
|
|
25
|
+
try {
|
|
26
|
+
return [
|
|
27
|
+
{
|
|
28
|
+
typename: Type.getTypename(type),
|
|
29
|
+
jsonSchema: type.jsonSchema,
|
|
30
|
+
kind: Type.isRelation(type) ? 'relation' : 'record',
|
|
31
|
+
},
|
|
32
|
+
];
|
|
33
|
+
} catch (err) {
|
|
34
|
+
log.warn('Failed to generate JSON schema for type', { typename: Type.getTypename(type), err });
|
|
35
|
+
return [];
|
|
36
|
+
}
|
|
30
37
|
});
|
|
31
38
|
}),
|
|
32
39
|
),
|
|
@@ -14,7 +14,7 @@ export default TagAdd.pipe(
|
|
|
14
14
|
Effect.fn(function* ({ tag, obj }) {
|
|
15
15
|
const object = yield* Database.load(obj);
|
|
16
16
|
const tagObj = yield* Database.load(tag);
|
|
17
|
-
Entity.update(object, (object) => Entity.addTag(object, Obj.
|
|
17
|
+
Entity.update(object, (object) => Entity.addTag(object, Obj.getURI(tagObj)));
|
|
18
18
|
return Entity.toJSON(object);
|
|
19
19
|
}),
|
|
20
20
|
),
|
|
@@ -14,7 +14,7 @@ export default TagRemove.pipe(
|
|
|
14
14
|
Effect.fn(function* ({ tag, obj }) {
|
|
15
15
|
const object = yield* Database.load(obj);
|
|
16
16
|
const tagObj = yield* Database.load(tag);
|
|
17
|
-
Entity.update(object, (object) => Entity.removeTag(object, Obj.
|
|
17
|
+
Entity.update(object, (object) => Entity.removeTag(object, Obj.getURI(tagObj)));
|
|
18
18
|
return Entity.toJSON(object);
|
|
19
19
|
}),
|
|
20
20
|
),
|
|
@@ -20,13 +20,18 @@ const TestLayer = AssistantTestLayer({
|
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
const TestLayerWithCredentials = Layer.mergeAll(
|
|
23
|
-
credentialsLayerConfig([
|
|
23
|
+
credentialsLayerConfig([
|
|
24
|
+
{
|
|
25
|
+
service: 'discord.com',
|
|
26
|
+
apiKey: Config.redacted('DISCORD_TOKEN'),
|
|
27
|
+
},
|
|
28
|
+
]),
|
|
24
29
|
FetchHttpClient.layer,
|
|
25
30
|
).pipe(Layer.provideMerge(TestLayer));
|
|
26
31
|
|
|
27
32
|
const DXOS_SERVER_ID = '837138313172353095';
|
|
28
33
|
|
|
29
|
-
describe('Feed', { timeout: 600_000 }, () => {
|
|
34
|
+
describe.skipIf(!process.env.DISCORD_TOKEN)('Feed', { timeout: 600_000 }, () => {
|
|
30
35
|
it.effect(
|
|
31
36
|
'fetch discord messages',
|
|
32
37
|
Effect.fnUntraced(
|
|
@@ -12,6 +12,7 @@ export const SyncIssues = Operation.make({
|
|
|
12
12
|
key: 'org.dxos.function.linear.sync-issues',
|
|
13
13
|
name: 'Linear',
|
|
14
14
|
description: 'Sync issues from Linear.',
|
|
15
|
+
icon: 'ph--arrows-clockwise--regular',
|
|
15
16
|
},
|
|
16
17
|
input: Schema.Struct({
|
|
17
18
|
team: Schema.String.annotations({
|
|
@@ -6,8 +6,7 @@ import { describe, it } from '@effect/vitest';
|
|
|
6
6
|
import * as Effect from 'effect/Effect';
|
|
7
7
|
|
|
8
8
|
import { Operation, OperationHandlerSet } from '@dxos/compute';
|
|
9
|
-
import { Obj, Query } from '@dxos/echo';
|
|
10
|
-
import { Database } from '@dxos/echo';
|
|
9
|
+
import { Database, Obj, Query } from '@dxos/echo';
|
|
11
10
|
import { TestHelpers } from '@dxos/effect/testing';
|
|
12
11
|
import { AssistantTestLayer } from '@dxos/functions-runtime/testing';
|
|
13
12
|
import { Person, Pipeline, Task } from '@dxos/types';
|
|
@@ -9,8 +9,7 @@ import * as Effect from 'effect/Effect';
|
|
|
9
9
|
import * as Function from 'effect/Function';
|
|
10
10
|
|
|
11
11
|
import { Credential, Operation } from '@dxos/compute';
|
|
12
|
-
import { Filter, Obj, Query, Ref, type Type } from '@dxos/echo';
|
|
13
|
-
import { Database } from '@dxos/echo';
|
|
12
|
+
import { Database, Filter, Obj, Query, Ref, type Type } from '@dxos/echo';
|
|
14
13
|
import { withAuthorization } from '@dxos/functions';
|
|
15
14
|
import { log } from '@dxos/log';
|
|
16
15
|
import { Person, Pipeline, Task } from '@dxos/types';
|