@dxos/assistant-toolkit 0.8.4-main.d05539e30a → 0.8.4-main.d9fc60f731
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/neutral/{add-artifact-4IVGW6CI.mjs → add-artifact-ADKF427P.mjs} +5 -5
- package/dist/lib/neutral/{agent-F4L7UXME.mjs → agent-4HT4GKKI.mjs} +8 -8
- package/dist/lib/neutral/{agent-F4L7UXME.mjs.map → agent-4HT4GKKI.mjs.map} +2 -2
- package/dist/lib/neutral/{chunk-ANSF2BHN.mjs → chunk-3ZDYN7BG.mjs} +14 -25
- package/dist/lib/neutral/chunk-3ZDYN7BG.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-EJAQUAKM.mjs → chunk-53BZWMRB.mjs} +12 -8
- package/dist/lib/neutral/chunk-53BZWMRB.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-WLR3BGO4.mjs → chunk-6SYN5IV3.mjs} +4 -2
- package/dist/lib/neutral/chunk-6SYN5IV3.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-W2722TC5.mjs → chunk-7OQIX2PP.mjs} +4 -4
- package/dist/lib/neutral/{chunk-W2722TC5.mjs.map → chunk-7OQIX2PP.mjs.map} +1 -1
- package/dist/lib/neutral/{chunk-5GPL2WXU.mjs → chunk-ALDU6VDG.mjs} +13 -23
- package/dist/lib/neutral/chunk-ALDU6VDG.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-COL54UJ3.mjs → chunk-AYV2KMAV.mjs} +7 -5
- package/dist/lib/neutral/chunk-AYV2KMAV.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-MMQ7HFL4.mjs → chunk-BB6X6NT6.mjs} +12 -8
- package/dist/lib/neutral/chunk-BB6X6NT6.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-BCT55UTL.mjs → chunk-DBUT6FKM.mjs} +16 -14
- package/dist/lib/neutral/chunk-DBUT6FKM.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-NR3GTWRC.mjs → chunk-GQRUBCMT.mjs} +8 -13
- package/dist/lib/neutral/chunk-GQRUBCMT.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-PLGEBNTO.mjs → chunk-JRYAD4TG.mjs} +6 -4
- package/dist/lib/neutral/chunk-JRYAD4TG.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-ZFXLTBZG.mjs → chunk-PHZNOLXL.mjs} +5 -3
- package/dist/lib/neutral/chunk-PHZNOLXL.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-KGU725LW.mjs → chunk-SOLG2NPH.mjs} +4 -7
- package/dist/lib/neutral/chunk-SOLG2NPH.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-KS3IA6FQ.mjs → chunk-T3RP4AUP.mjs} +19 -16
- package/dist/lib/neutral/chunk-T3RP4AUP.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-7UCYAP3T.mjs → chunk-V3PPVL3C.mjs} +54 -40
- package/dist/lib/neutral/chunk-V3PPVL3C.mjs.map +7 -0
- package/dist/lib/neutral/{context-add-S5MBW2NA.mjs → context-add-2G2CDRCK.mjs} +2 -2
- package/dist/lib/neutral/{context-remove-35O5T5N5.mjs → context-remove-QQOT57JC.mjs} +2 -2
- package/dist/lib/neutral/{create-project-3AGXJ4TD.mjs → create-project-LVIH4OLF.mjs} +7 -7
- package/dist/lib/neutral/{delete-J3PMWP7Z.mjs → delete-MRER3QMO.mjs} +3 -3
- package/dist/lib/neutral/{enable-blueprints-IVKST3WH.mjs → enable-blueprints-GEIKTSRV.mjs} +10 -10
- package/dist/lib/neutral/enable-blueprints-GEIKTSRV.mjs.map +7 -0
- package/dist/lib/neutral/{fetch-KHMHV7JR.mjs → fetch-B2AYJK7F.mjs} +2 -2
- package/dist/lib/neutral/{fetch-messages-QOBBCTGC.mjs → fetch-messages-RUUU63L2.mjs} +2 -2
- package/dist/lib/neutral/{get-context-FBYWIP72.mjs → get-context-3SXNFRXG.mjs} +9 -9
- package/dist/lib/neutral/{get-context-FBYWIP72.mjs.map → get-context-3SXNFRXG.mjs.map} +3 -3
- package/dist/lib/neutral/index.mjs +76 -77
- package/dist/lib/neutral/index.mjs.map +3 -3
- package/dist/lib/neutral/{load-GAT3T2AD.mjs → load-YWYQ4THR.mjs} +2 -2
- package/dist/lib/neutral/meta.json +1 -1
- package/dist/lib/neutral/{object-create-PL3WRP74.mjs → object-create-WME2XFGD.mjs} +9 -12
- package/dist/lib/neutral/object-create-WME2XFGD.mjs.map +7 -0
- package/dist/lib/neutral/{object-delete-PZJQN5KW.mjs → object-delete-I5OAPI32.mjs} +2 -2
- package/dist/lib/neutral/{object-update-R43N3VJX.mjs → object-update-VCOL62NX.mjs} +3 -3
- package/dist/lib/neutral/{object-update-R43N3VJX.mjs.map → object-update-VCOL62NX.mjs.map} +2 -2
- package/dist/lib/neutral/{project-VVXXUMAI.mjs → project-4BYI2PZC.mjs} +6 -6
- package/dist/lib/neutral/{project-rules-KSVSOZJV.mjs → project-rules-7NYDDQ7K.mjs} +5 -5
- package/dist/lib/neutral/{prompt-INL55Q2B.mjs → prompt-DZP2K2NE.mjs} +5 -5
- package/dist/lib/neutral/prompt-DZP2K2NE.mjs.map +7 -0
- package/dist/lib/neutral/{qualifier-DAF4H7V3.mjs → qualifier-NLOWVZCM.mjs} +8 -7
- package/dist/lib/neutral/qualifier-NLOWVZCM.mjs.map +7 -0
- package/dist/lib/neutral/{query-MP5NSQKO.mjs → query-GZDTQRQ6.mjs} +12 -22
- package/dist/lib/neutral/query-GZDTQRQ6.mjs.map +7 -0
- package/dist/lib/neutral/{query-U56GNEV6.mjs → query-KBKGBYUO.mjs} +3 -3
- package/dist/lib/neutral/{query-blueprints-PLWYVOI3.mjs → query-blueprints-MFXXRZBY.mjs} +5 -4
- package/dist/lib/neutral/query-blueprints-MFXXRZBY.mjs.map +7 -0
- package/dist/lib/neutral/{relation-create-YAAAFTR2.mjs → relation-create-UHBWQQXS.mjs} +8 -11
- package/dist/lib/neutral/relation-create-UHBWQQXS.mjs.map +7 -0
- package/dist/lib/neutral/{relation-delete-IEPKERFR.mjs → relation-delete-ZSB7JOHO.mjs} +2 -2
- package/dist/lib/neutral/{save-GWAPLT3Z.mjs → save-B2CSSFDG.mjs} +3 -3
- package/dist/lib/neutral/{schema-add-5BNIINRS.mjs → schema-add-ZJ64RAZK.mjs} +13 -12
- package/dist/lib/neutral/schema-add-ZJ64RAZK.mjs.map +7 -0
- package/dist/lib/neutral/schema-list-3X3VNYYB.mjs +37 -0
- package/dist/lib/neutral/schema-list-3X3VNYYB.mjs.map +7 -0
- package/dist/lib/neutral/{sync-issues-DWY76B3M.mjs → sync-issues-36TS2R7R.mjs} +2 -2
- package/dist/lib/neutral/{sync-triggers-NOIQLELD.mjs → sync-triggers-MMHKQDNW.mjs} +37 -34
- package/dist/lib/neutral/sync-triggers-MMHKQDNW.mjs.map +7 -0
- package/dist/lib/neutral/{tag-add-NLVRGTC6.mjs → tag-add-7P5O3IAV.mjs} +4 -5
- package/dist/lib/neutral/tag-add-7P5O3IAV.mjs.map +7 -0
- package/dist/lib/neutral/{tag-remove-N4HFBIA2.mjs → tag-remove-YZIMOFA4.mjs} +4 -5
- package/dist/lib/neutral/tag-remove-YZIMOFA4.mjs.map +7 -0
- package/dist/lib/neutral/testing/index.mjs +6 -9
- package/dist/lib/neutral/testing/index.mjs.map +3 -3
- package/dist/lib/neutral/update-tasks-6MJCJ2KC.mjs +13 -0
- package/dist/types/src/blueprints/blueprint-manager/functions/definitions.d.ts +11 -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 -6
- package/dist/types/src/blueprints/blueprint-manager/functions/enable-blueprints.d.ts.map +1 -1
- package/dist/types/src/blueprints/blueprint-manager/functions/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/blueprint-manager/functions/query-blueprints.d.ts +6 -5
- package/dist/types/src/blueprints/blueprint-manager/functions/query-blueprints.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/context-add.d.ts +1 -1
- package/dist/types/src/blueprints/database/functions/context-remove.d.ts +1 -1
- package/dist/types/src/blueprints/database/functions/definitions.d.ts +20 -14
- 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-create.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 -2
- 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-add.d.ts.map +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 +6 -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 +6 -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/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/update-tasks.d.ts.map +1 -1
- package/dist/types/src/blueprints/project/functions/definitions.d.ts +50 -43
- package/dist/types/src/blueprints/project/functions/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/project/functions/qualifier.d.ts +3 -75
- 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 +20 -20
- package/dist/types/src/blueprints/project-wizard/functions/create-project.d.ts.map +1 -1
- package/dist/types/src/blueprints/project-wizard/functions/definitions.d.ts +39 -40
- 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 +18 -18
- package/dist/types/src/blueprints/project-wizard/functions/sync-triggers.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 +5 -6
- 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 +14 -22
- package/dist/types/src/functions/agent/definitions.d.ts.map +1 -1
- 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 +19 -20
- 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 +15 -17
- package/dist/types/src/types/Plan.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +29 -30
- 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 +4 -51
- package/src/blueprints/blueprint-manager/blueprint.ts +5 -5
- package/src/blueprints/blueprint-manager/functions/definitions.ts +10 -19
- package/src/blueprints/blueprint-manager/functions/enable-blueprints.ts +8 -5
- package/src/blueprints/blueprint-manager/functions/index.ts +0 -1
- package/src/blueprints/blueprint-manager/functions/query-blueprints.ts +3 -2
- package/src/blueprints/browser/blueprint.conversations.json +1 -0
- package/src/blueprints/browser/blueprint.test.ts +4 -3
- package/src/blueprints/database/blueprint.conversations.json +1 -1
- package/src/blueprints/database/blueprint.test.ts +25 -25
- package/src/blueprints/database/functions/definitions.ts +51 -37
- package/src/blueprints/database/functions/object-create.ts +8 -5
- package/src/blueprints/database/functions/object-update.ts +1 -1
- package/src/blueprints/database/functions/query.ts +15 -9
- package/src/blueprints/database/functions/relation-create.ts +7 -4
- package/src/blueprints/database/functions/schema-add.ts +7 -12
- package/src/blueprints/database/functions/schema-list.ts +12 -7
- package/src/blueprints/database/functions/tag-add.ts +2 -3
- package/src/blueprints/database/functions/tag-remove.ts +2 -3
- package/src/blueprints/discord/functions/definitions.ts +3 -1
- package/src/blueprints/github/functions/definitions.ts +3 -1
- package/src/blueprints/linear/functions/definitions.ts +3 -1
- package/src/blueprints/memory/blueprint.conversations.json +1 -1
- package/src/blueprints/memory/blueprint.test.ts +2 -2
- package/src/blueprints/memory/functions/definitions.ts +7 -3
- package/src/blueprints/planning/functions/update-tasks.test.ts +3 -3
- package/src/blueprints/planning/functions/update-tasks.ts +3 -1
- package/src/blueprints/project/blueprint.conversations.json +1 -1
- package/src/blueprints/project/blueprint.test.ts +5 -5
- package/src/blueprints/project/blueprint.ts +1 -1
- package/src/blueprints/project/functions/agent.ts +3 -3
- package/src/blueprints/project/functions/definitions.ts +13 -10
- package/src/blueprints/project/functions/get-context.ts +4 -4
- package/src/blueprints/project/functions/qualifier.ts +3 -2
- package/src/blueprints/project-wizard/blueprint.ts +1 -1
- package/src/blueprints/project-wizard/functions/definitions.ts +11 -8
- package/src/blueprints/project-wizard/functions/sync-triggers.ts +31 -28
- package/src/blueprints/websearch/blueprint.conversations.json +1 -1
- package/src/blueprints/websearch/functions/definitions.ts +3 -1
- package/src/crud/graph.ts +48 -56
- package/src/errors.ts +3 -3
- package/src/functions/agent/definitions.ts +4 -2
- package/src/functions/agent/prompt.conversations.json +1 -1
- package/src/functions/agent/prompt.test.ts +2 -2
- package/src/functions/agent/prompt.ts +2 -2
- package/src/sync/sync.ts +6 -4
- package/src/testing/plugins.tsx +9 -14
- package/src/types/Agent.ts +17 -23
- package/src/types/Chat.ts +10 -20
- package/src/types/McpServer.ts +4 -10
- package/src/types/Memory.ts +4 -7
- package/src/types/Plan.ts +4 -12
- package/dist/lib/neutral/chunk-5GPL2WXU.mjs.map +0 -7
- package/dist/lib/neutral/chunk-7UCYAP3T.mjs.map +0 -7
- package/dist/lib/neutral/chunk-ANSF2BHN.mjs.map +0 -7
- package/dist/lib/neutral/chunk-BCT55UTL.mjs.map +0 -7
- package/dist/lib/neutral/chunk-COL54UJ3.mjs.map +0 -7
- package/dist/lib/neutral/chunk-EJAQUAKM.mjs.map +0 -7
- package/dist/lib/neutral/chunk-KGU725LW.mjs.map +0 -7
- package/dist/lib/neutral/chunk-KS3IA6FQ.mjs.map +0 -7
- package/dist/lib/neutral/chunk-MMQ7HFL4.mjs.map +0 -7
- package/dist/lib/neutral/chunk-NR3GTWRC.mjs.map +0 -7
- package/dist/lib/neutral/chunk-PLGEBNTO.mjs.map +0 -7
- package/dist/lib/neutral/chunk-WLR3BGO4.mjs.map +0 -7
- package/dist/lib/neutral/chunk-ZFXLTBZG.mjs.map +0 -7
- package/dist/lib/neutral/enable-blueprints-IVKST3WH.mjs.map +0 -7
- package/dist/lib/neutral/object-create-PL3WRP74.mjs.map +0 -7
- package/dist/lib/neutral/prompt-INL55Q2B.mjs.map +0 -7
- package/dist/lib/neutral/qualifier-DAF4H7V3.mjs.map +0 -7
- package/dist/lib/neutral/query-MP5NSQKO.mjs.map +0 -7
- package/dist/lib/neutral/query-blueprints-PLWYVOI3.mjs.map +0 -7
- package/dist/lib/neutral/relation-create-YAAAFTR2.mjs.map +0 -7
- package/dist/lib/neutral/schema-add-5BNIINRS.mjs.map +0 -7
- package/dist/lib/neutral/schema-list-54UK7S4R.mjs +0 -38
- package/dist/lib/neutral/schema-list-54UK7S4R.mjs.map +0 -7
- package/dist/lib/neutral/sync-triggers-NOIQLELD.mjs.map +0 -7
- package/dist/lib/neutral/tag-add-NLVRGTC6.mjs.map +0 -7
- package/dist/lib/neutral/tag-remove-N4HFBIA2.mjs.map +0 -7
- package/dist/lib/neutral/update-blueprints-2SNK6HLG.mjs +0 -16
- package/dist/lib/neutral/update-blueprints-2SNK6HLG.mjs.map +0 -7
- package/dist/lib/neutral/update-tasks-QQUR53RN.mjs +0 -13
- package/dist/types/src/blueprints/blueprint-manager/functions/update-blueprints.d.ts +0 -4
- package/dist/types/src/blueprints/blueprint-manager/functions/update-blueprints.d.ts.map +0 -1
- package/src/blueprints/blueprint-manager/functions/update-blueprints.ts +0 -18
- /package/dist/lib/neutral/{add-artifact-4IVGW6CI.mjs.map → add-artifact-ADKF427P.mjs.map} +0 -0
- /package/dist/lib/neutral/{context-add-S5MBW2NA.mjs.map → context-add-2G2CDRCK.mjs.map} +0 -0
- /package/dist/lib/neutral/{context-remove-35O5T5N5.mjs.map → context-remove-QQOT57JC.mjs.map} +0 -0
- /package/dist/lib/neutral/{create-project-3AGXJ4TD.mjs.map → create-project-LVIH4OLF.mjs.map} +0 -0
- /package/dist/lib/neutral/{delete-J3PMWP7Z.mjs.map → delete-MRER3QMO.mjs.map} +0 -0
- /package/dist/lib/neutral/{fetch-KHMHV7JR.mjs.map → fetch-B2AYJK7F.mjs.map} +0 -0
- /package/dist/lib/neutral/{fetch-messages-QOBBCTGC.mjs.map → fetch-messages-RUUU63L2.mjs.map} +0 -0
- /package/dist/lib/neutral/{load-GAT3T2AD.mjs.map → load-YWYQ4THR.mjs.map} +0 -0
- /package/dist/lib/neutral/{object-delete-PZJQN5KW.mjs.map → object-delete-I5OAPI32.mjs.map} +0 -0
- /package/dist/lib/neutral/{project-VVXXUMAI.mjs.map → project-4BYI2PZC.mjs.map} +0 -0
- /package/dist/lib/neutral/{project-rules-KSVSOZJV.mjs.map → project-rules-7NYDDQ7K.mjs.map} +0 -0
- /package/dist/lib/neutral/{query-U56GNEV6.mjs.map → query-KBKGBYUO.mjs.map} +0 -0
- /package/dist/lib/neutral/{relation-delete-IEPKERFR.mjs.map → relation-delete-ZSB7JOHO.mjs.map} +0 -0
- /package/dist/lib/neutral/{save-GWAPLT3Z.mjs.map → save-B2CSSFDG.mjs.map} +0 -0
- /package/dist/lib/neutral/{sync-issues-DWY76B3M.mjs.map → sync-issues-36TS2R7R.mjs.map} +0 -0
- /package/dist/lib/neutral/{update-tasks-QQUR53RN.mjs.map → update-tasks-6MJCJ2KC.mjs.map} +0 -0
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentPrompt
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AYV2KMAV.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeleteMemory,
|
|
6
6
|
QueryMemories,
|
|
7
7
|
SaveMemory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-53BZWMRB.mjs";
|
|
9
9
|
import {
|
|
10
10
|
EnableBlueprints,
|
|
11
|
-
QueryBlueprints
|
|
12
|
-
|
|
13
|
-
} from "./chunk-ANSF2BHN.mjs";
|
|
11
|
+
QueryBlueprints
|
|
12
|
+
} from "./chunk-3ZDYN7BG.mjs";
|
|
14
13
|
import {
|
|
15
14
|
AgentRules,
|
|
16
15
|
CreateAgent,
|
|
17
16
|
SyncTriggers
|
|
18
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-DBUT6FKM.mjs";
|
|
19
18
|
import {
|
|
20
19
|
SyncIssues,
|
|
21
20
|
syncObjects
|
|
22
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-BB6X6NT6.mjs";
|
|
23
22
|
import {
|
|
24
23
|
UpdateTasks
|
|
25
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-JRYAD4TG.mjs";
|
|
26
25
|
import {
|
|
27
26
|
Fetch
|
|
28
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-6SYN5IV3.mjs";
|
|
29
28
|
import {
|
|
30
29
|
ContextAdd,
|
|
31
30
|
ContextRemove,
|
|
@@ -40,31 +39,31 @@ import {
|
|
|
40
39
|
SchemaList,
|
|
41
40
|
TagAdd,
|
|
42
41
|
TagRemove
|
|
43
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-V3PPVL3C.mjs";
|
|
44
43
|
import {
|
|
45
44
|
FetchMessages
|
|
46
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-PHZNOLXL.mjs";
|
|
47
46
|
import {
|
|
48
47
|
AgentBlueprintHandlers,
|
|
49
48
|
blueprint_default
|
|
50
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-7OQIX2PP.mjs";
|
|
51
50
|
import {
|
|
52
51
|
AddArtifact,
|
|
53
52
|
AgentWorker,
|
|
54
53
|
GetContext,
|
|
55
54
|
Qualifier
|
|
56
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-T3RP4AUP.mjs";
|
|
57
56
|
import {
|
|
58
57
|
Agent_exports,
|
|
59
58
|
McpServer_exports,
|
|
60
59
|
Plan_exports
|
|
61
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-ALDU6VDG.mjs";
|
|
62
61
|
import {
|
|
63
62
|
Chat_exports
|
|
64
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-GQRUBCMT.mjs";
|
|
65
64
|
import {
|
|
66
65
|
Memory_exports
|
|
67
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-SOLG2NPH.mjs";
|
|
68
67
|
import {
|
|
69
68
|
__export
|
|
70
69
|
} from "./chunk-J5LGTIGS.mjs";
|
|
@@ -77,7 +76,7 @@ import { trim } from "@dxos/util";
|
|
|
77
76
|
|
|
78
77
|
// src/blueprints/discord/functions/index.ts
|
|
79
78
|
import { OperationHandlerSet } from "@dxos/compute";
|
|
80
|
-
var DiscordHandlers = OperationHandlerSet.lazy(() => import("./fetch-messages-
|
|
79
|
+
var DiscordHandlers = OperationHandlerSet.lazy(() => import("./fetch-messages-RUUU63L2.mjs"));
|
|
81
80
|
|
|
82
81
|
// src/blueprints/discord/blueprint.ts
|
|
83
82
|
var BLUEPRINT_KEY = "org.dxos.blueprint.discord";
|
|
@@ -117,7 +116,7 @@ import { trim as trim2 } from "@dxos/util";
|
|
|
117
116
|
|
|
118
117
|
// src/blueprints/linear/functions/index.ts
|
|
119
118
|
import { OperationHandlerSet as OperationHandlerSet2 } from "@dxos/compute";
|
|
120
|
-
var LinearHandlers = OperationHandlerSet2.lazy(() => import("./sync-issues-
|
|
119
|
+
var LinearHandlers = OperationHandlerSet2.lazy(() => import("./sync-issues-36TS2R7R.mjs"));
|
|
121
120
|
|
|
122
121
|
// src/blueprints/linear/blueprint.ts
|
|
123
122
|
var BLUEPRINT_KEY2 = "org.dxos.blueprint.linear";
|
|
@@ -155,7 +154,7 @@ import { Blueprint as Blueprint3 } from "@dxos/compute";
|
|
|
155
154
|
|
|
156
155
|
// src/blueprints/planning/functions/index.ts
|
|
157
156
|
import { OperationHandlerSet as OperationHandlerSet3 } from "@dxos/compute";
|
|
158
|
-
var PlanningHandlers = OperationHandlerSet3.lazy(() => import("./update-tasks-
|
|
157
|
+
var PlanningHandlers = OperationHandlerSet3.lazy(() => import("./update-tasks-6MJCJ2KC.mjs"));
|
|
159
158
|
|
|
160
159
|
// src/blueprints/planning/blueprint.ts
|
|
161
160
|
var BLUEPRINT_KEY3 = "org.dxos.blueprint.planning";
|
|
@@ -182,7 +181,7 @@ import { Text as Text3 } from "@dxos/schema";
|
|
|
182
181
|
|
|
183
182
|
// src/blueprints/websearch/functions/index.ts
|
|
184
183
|
import { OperationHandlerSet as OperationHandlerSet4 } from "@dxos/compute";
|
|
185
|
-
var WebSearchHandlers = OperationHandlerSet4.lazy(() => import("./fetch-
|
|
184
|
+
var WebSearchHandlers = OperationHandlerSet4.lazy(() => import("./fetch-B2AYJK7F.mjs"));
|
|
186
185
|
|
|
187
186
|
// src/blueprints/websearch/blueprint.ts
|
|
188
187
|
var BLUEPRINT_KEY4 = "org.dxos.blueprint.web-search";
|
|
@@ -259,7 +258,7 @@ import { trim as trim4 } from "@dxos/util";
|
|
|
259
258
|
|
|
260
259
|
// src/blueprints/database/functions/index.ts
|
|
261
260
|
import { OperationHandlerSet as OperationHandlerSet5 } from "@dxos/compute";
|
|
262
|
-
var DatabaseHandlers = OperationHandlerSet5.lazy(() => import("./context-add-
|
|
261
|
+
var DatabaseHandlers = OperationHandlerSet5.lazy(() => import("./context-add-2G2CDRCK.mjs"), () => import("./context-remove-QQOT57JC.mjs"), () => import("./load-YWYQ4THR.mjs"), () => import("./object-create-WME2XFGD.mjs"), () => import("./object-delete-I5OAPI32.mjs"), () => import("./object-update-VCOL62NX.mjs"), () => import("./query-GZDTQRQ6.mjs"), () => import("./relation-create-UHBWQQXS.mjs"), () => import("./relation-delete-ZSB7JOHO.mjs"), () => import("./schema-add-ZJ64RAZK.mjs"), () => import("./schema-list-3X3VNYYB.mjs"), () => import("./tag-add-7P5O3IAV.mjs"), () => import("./tag-remove-YZIMOFA4.mjs"));
|
|
263
262
|
|
|
264
263
|
// src/blueprints/database/blueprint.ts
|
|
265
264
|
var BLUEPRINT_KEY6 = "org.dxos.blueprint.database";
|
|
@@ -309,7 +308,7 @@ import { trim as trim5 } from "@dxos/util";
|
|
|
309
308
|
|
|
310
309
|
// src/blueprints/memory/functions/index.ts
|
|
311
310
|
import { OperationHandlerSet as OperationHandlerSet6 } from "@dxos/compute";
|
|
312
|
-
var MemoryHandlers = OperationHandlerSet6.lazy(() => import("./save-
|
|
311
|
+
var MemoryHandlers = OperationHandlerSet6.lazy(() => import("./save-B2CSSFDG.mjs"), () => import("./query-KBKGBYUO.mjs"), () => import("./delete-MRER3QMO.mjs"));
|
|
313
312
|
|
|
314
313
|
// src/blueprints/memory/blueprint.ts
|
|
315
314
|
var BLUEPRINT_KEY7 = "org.dxos.blueprint.memory";
|
|
@@ -348,7 +347,7 @@ var blueprint_default8 = blueprint7;
|
|
|
348
347
|
|
|
349
348
|
// src/blueprints/automation/blueprint.ts
|
|
350
349
|
import { Blueprint as Blueprint8, Trigger, Operation } from "@dxos/compute";
|
|
351
|
-
import { Ref as Ref7 } from "@dxos/echo";
|
|
350
|
+
import { Ref as Ref7, Type } from "@dxos/echo";
|
|
352
351
|
import { Text as Text7 } from "@dxos/schema";
|
|
353
352
|
import { trim as trim6 } from "@dxos/util";
|
|
354
353
|
var BLUEPRINT_KEY8 = "dxos.org/blueprint/automation";
|
|
@@ -362,7 +361,7 @@ var instructions6 = trim6`
|
|
|
362
361
|
Triggers are configured by the properties of the Trigger object.
|
|
363
362
|
- enabled: Must be true for trigger to run.
|
|
364
363
|
- spec: Events that the trigger matches.
|
|
365
|
-
- function: Ref to a ${Operation.PersistentOperation
|
|
364
|
+
- function: Ref to a ${Type.getTypename(Operation.PersistentOperation)} object that will be invoked. Query the functions present in the space first, and reference them in the trigger.
|
|
366
365
|
- input: The spec of the input data that will be passed to the function.
|
|
367
366
|
|
|
368
367
|
## Input patterns
|
|
@@ -389,7 +388,7 @@ var instructions6 = trim6`
|
|
|
389
388
|
|
|
390
389
|
## Editing triggers
|
|
391
390
|
|
|
392
|
-
Triggers are represented as objects of type ${Trigger.Trigger
|
|
391
|
+
Triggers are represented as objects of type ${Type.getTypename(Trigger.Trigger)}.
|
|
393
392
|
You need access to the Database blueprint to manipulate triggers.
|
|
394
393
|
Read trigger schema before manipulating triggers.
|
|
395
394
|
Having a Trigger object in the database is enough to setup an automation.
|
|
@@ -447,14 +446,15 @@ var blueprint_default9 = blueprint8;
|
|
|
447
446
|
|
|
448
447
|
// src/blueprints/blueprint-manager/blueprint.ts
|
|
449
448
|
import { Blueprint as Blueprint9, Template } from "@dxos/compute";
|
|
449
|
+
import { DXN } from "@dxos/keys";
|
|
450
450
|
import { trim as trim7 } from "@dxos/util";
|
|
451
451
|
|
|
452
452
|
// src/blueprints/blueprint-manager/functions/index.ts
|
|
453
453
|
import { OperationHandlerSet as OperationHandlerSet7 } from "@dxos/compute";
|
|
454
|
-
var BlueprintManagerHandlers = OperationHandlerSet7.lazy(() => import("./query-blueprints-
|
|
454
|
+
var BlueprintManagerHandlers = OperationHandlerSet7.lazy(() => import("./query-blueprints-MFXXRZBY.mjs"), () => import("./enable-blueprints-GEIKTSRV.mjs"));
|
|
455
455
|
|
|
456
456
|
// src/blueprints/blueprint-manager/blueprint.ts
|
|
457
|
-
var BLUEPRINT_KEY9 = "org.dxos.blueprint.
|
|
457
|
+
var BLUEPRINT_KEY9 = "org.dxos.blueprint.blueprintManager";
|
|
458
458
|
var make10 = () => Blueprint9.make({
|
|
459
459
|
key: BLUEPRINT_KEY9,
|
|
460
460
|
name: "Blueprint Manager",
|
|
@@ -463,7 +463,6 @@ var make10 = () => Blueprint9.make({
|
|
|
463
463
|
source: trim7`
|
|
464
464
|
You can query available blueprints and enable them in the current conversation.
|
|
465
465
|
Use [query-blueprints] to refresh the list of available blueprints.
|
|
466
|
-
Use [refresh-blueprints] to update blueprint objects stored in the database from the built-in registry when they have drifted.
|
|
467
466
|
Use [enable-blueprints] to enable blueprints by their keys. Always call [query-blueprints] first.
|
|
468
467
|
Only blueprints with agentCanEnable=true can be enabled by the agent.
|
|
469
468
|
|
|
@@ -479,15 +478,14 @@ var make10 = () => Blueprint9.make({
|
|
|
479
478
|
{
|
|
480
479
|
name: "blueprints",
|
|
481
480
|
kind: "operation",
|
|
482
|
-
operation: QueryBlueprints.meta.key
|
|
481
|
+
operation: DXN.getName(QueryBlueprints.meta.key)
|
|
483
482
|
}
|
|
484
483
|
]
|
|
485
484
|
}),
|
|
486
485
|
tools: Blueprint9.toolDefinitions({
|
|
487
486
|
operations: [
|
|
488
487
|
QueryBlueprints,
|
|
489
|
-
EnableBlueprints
|
|
490
|
-
UpdateBlueprints
|
|
488
|
+
EnableBlueprints
|
|
491
489
|
]
|
|
492
490
|
})
|
|
493
491
|
});
|
|
@@ -503,10 +501,10 @@ import { trim as trim8 } from "@dxos/util";
|
|
|
503
501
|
|
|
504
502
|
// src/blueprints/project-wizard/functions/index.ts
|
|
505
503
|
import { OperationHandlerSet as OperationHandlerSet8 } from "@dxos/compute";
|
|
506
|
-
var AgentWizardHandlers = OperationHandlerSet8.lazy(() => import("./create-project-
|
|
504
|
+
var AgentWizardHandlers = OperationHandlerSet8.lazy(() => import("./create-project-LVIH4OLF.mjs"), () => import("./project-rules-7NYDDQ7K.mjs"), () => import("./sync-triggers-MMHKQDNW.mjs"));
|
|
507
505
|
|
|
508
506
|
// src/blueprints/project-wizard/blueprint.ts
|
|
509
|
-
var BLUEPRINT_KEY10 = "org.dxos.blueprint.
|
|
507
|
+
var BLUEPRINT_KEY10 = "org.dxos.blueprint.agentWizard";
|
|
510
508
|
var make11 = () => Blueprint10.make({
|
|
511
509
|
key: BLUEPRINT_KEY10,
|
|
512
510
|
name: "Agent Wizard",
|
|
@@ -557,11 +555,11 @@ import * as Function from "effect/Function";
|
|
|
557
555
|
import * as Option from "effect/Option";
|
|
558
556
|
import * as Schema from "effect/Schema";
|
|
559
557
|
import * as SchemaAST from "effect/SchemaAST";
|
|
560
|
-
import { Database, Entity, Feed, Filter,
|
|
558
|
+
import { Database, Entity, Feed, Filter, Query as Query2, Scope, Type as Type2 } from "@dxos/echo";
|
|
561
559
|
import { isEncodedReference } from "@dxos/echo-protocol";
|
|
562
|
-
import { ReferenceAnnotationId,
|
|
560
|
+
import { ReferenceAnnotationId, RelationSourceId, RelationTargetId, createObject, getTypeAnnotation, getTypeIdentifierAnnotation } from "@dxos/echo/internal";
|
|
563
561
|
import { mapAst } from "@dxos/effect";
|
|
564
|
-
import { DXN,
|
|
562
|
+
import { DXN as DXN2, EID, EntityId } from "@dxos/keys";
|
|
565
563
|
import { log } from "@dxos/log";
|
|
566
564
|
import { deepMapValues, isNonNullable, trim as trim9 } from "@dxos/util";
|
|
567
565
|
var __dxlog_file = "/__w/dxos/dxos/packages/core/compute/assistant-toolkit/src/crud/graph.ts";
|
|
@@ -570,26 +568,23 @@ var Subgraph = Schema.Struct({
|
|
|
570
568
|
objects: Schema.Array(Schema.Any)
|
|
571
569
|
});
|
|
572
570
|
var findRelatedSchema = async (db, anchor) => {
|
|
573
|
-
const allSchemas = await db.
|
|
571
|
+
const allSchemas = await db.query(Query2.select(Filter.type(Type2.Type)).from(Scope.space(), Scope.registry())).run();
|
|
574
572
|
return allSchemas.filter((schema) => {
|
|
575
|
-
|
|
573
|
+
const annotation = getTypeAnnotation(Type2.getSchema(schema));
|
|
574
|
+
if (annotation?.kind !== Entity.Kind.Relation) {
|
|
576
575
|
return false;
|
|
577
576
|
}
|
|
578
|
-
return isSchemaAddressableByDXN(anchor,
|
|
577
|
+
return isSchemaAddressableByDXN(anchor, annotation.sourceSchema) || isSchemaAddressableByDXN(anchor, annotation.targetSchema);
|
|
579
578
|
}).map((schema) => ({
|
|
580
579
|
kind: "relation",
|
|
581
580
|
schema
|
|
582
581
|
}));
|
|
583
582
|
};
|
|
584
|
-
var isSchemaAddressableByDXN = (
|
|
585
|
-
if (getTypeIdentifierAnnotation(
|
|
583
|
+
var isSchemaAddressableByDXN = (type, dxn) => {
|
|
584
|
+
if (getTypeIdentifierAnnotation(Type2.getSchema(type)) === dxn) {
|
|
586
585
|
return true;
|
|
587
586
|
}
|
|
588
|
-
|
|
589
|
-
if (t) {
|
|
590
|
-
return t.type === Type.getTypename(schema);
|
|
591
|
-
}
|
|
592
|
-
return false;
|
|
587
|
+
return DXN2.getName(dxn) === Type2.getTypename(type);
|
|
593
588
|
};
|
|
594
589
|
var LocalSearchToolkit = Toolkit2.make(Tool.make("search_local_search", {
|
|
595
590
|
description: "Search the local database for information using a vector index",
|
|
@@ -650,7 +645,7 @@ var makeGraphWriterHandler = (toolkit, { onAppend } = {}) => {
|
|
|
650
645
|
const { feed } = yield* Feed.ContextFeedService;
|
|
651
646
|
const data = yield* sanitizeObjects(schema, input, db, feed);
|
|
652
647
|
yield* Feed.append(feed, data);
|
|
653
|
-
const dxns = data.map((obj) =>
|
|
648
|
+
const dxns = data.map((obj) => Entity.getURI(obj));
|
|
654
649
|
onAppend?.(dxns);
|
|
655
650
|
return dxns;
|
|
656
651
|
})
|
|
@@ -658,16 +653,16 @@ var makeGraphWriterHandler = (toolkit, { onAppend } = {}) => {
|
|
|
658
653
|
};
|
|
659
654
|
var createExtractionSchema = (types) => {
|
|
660
655
|
return Schema.Struct({
|
|
661
|
-
...Object.fromEntries(types.map(preprocessSchema).map((schema, index) => [
|
|
656
|
+
...Object.fromEntries(types.map((type) => preprocessSchema(Type2.getSchema(type))).map((schema, index) => [
|
|
662
657
|
`objects_${getSanitizedSchemaName(types[index])}`,
|
|
663
658
|
Schema.optional(Schema.Array(schema)).annotations({
|
|
664
|
-
description: `The objects of type: ${
|
|
659
|
+
description: `The objects of type: ${DXN2.getName(DXN2.tryMake(Type2.getURI(types[index])))}. ${SchemaAST.getDescriptionAnnotation(Type2.getSchema(types[index]).ast).pipe(Option.getOrElse(() => ""))}`
|
|
665
660
|
})
|
|
666
661
|
]))
|
|
667
662
|
});
|
|
668
663
|
};
|
|
669
664
|
var getSanitizedSchemaName = (schema) => {
|
|
670
|
-
return
|
|
665
|
+
return DXN2.getName(DXN2.tryMake(Type2.getURI(schema))).replaceAll(/[^a-zA-Z0-9]+/g, "_");
|
|
671
666
|
};
|
|
672
667
|
var sanitizeObjects = (types, data, db, feed) => Effect.gen(function* () {
|
|
673
668
|
const entries = types.map((type) => data[`objects_${getSanitizedSchemaName(type)}`]?.map((object) => ({
|
|
@@ -678,21 +673,25 @@ var sanitizeObjects = (types, data, db, feed) => Effect.gen(function* () {
|
|
|
678
673
|
const existingIds = /* @__PURE__ */ new Set();
|
|
679
674
|
const enitties = /* @__PURE__ */ new Map();
|
|
680
675
|
const resolveId = (id) => {
|
|
681
|
-
if (
|
|
676
|
+
if (EntityId.isValid(id)) {
|
|
682
677
|
existingIds.add(id);
|
|
683
|
-
return
|
|
678
|
+
return EID.make({
|
|
679
|
+
entityId: id
|
|
680
|
+
});
|
|
684
681
|
}
|
|
685
682
|
const mappedId = idMap.get(id);
|
|
686
|
-
if (mappedId) {
|
|
687
|
-
return
|
|
683
|
+
if (mappedId && EntityId.isValid(mappedId)) {
|
|
684
|
+
return EID.make({
|
|
685
|
+
entityId: mappedId
|
|
686
|
+
});
|
|
688
687
|
}
|
|
689
688
|
return void 0;
|
|
690
689
|
};
|
|
691
690
|
const res = entries.map((entry) => {
|
|
692
|
-
if (
|
|
691
|
+
if (EntityId.isValid(entry.data.id)) {
|
|
693
692
|
return entry;
|
|
694
693
|
}
|
|
695
|
-
idMap.set(entry.data.id,
|
|
694
|
+
idMap.set(entry.data.id, EntityId.random());
|
|
696
695
|
entry.data.id = idMap.get(entry.data.id);
|
|
697
696
|
return entry;
|
|
698
697
|
}).map((entry) => {
|
|
@@ -712,27 +711,29 @@ var sanitizeObjects = (types, data, db, feed) => Effect.gen(function* () {
|
|
|
712
711
|
}
|
|
713
712
|
return recurse(value);
|
|
714
713
|
});
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
714
|
+
let sourceUri;
|
|
715
|
+
let targetUri;
|
|
716
|
+
if (Entity.getKind(Type2.getSchema(entry.schema)) === "relation") {
|
|
717
|
+
sourceUri = resolveId(data2.source);
|
|
718
|
+
if (!sourceUri) {
|
|
718
719
|
log.warn("source not found", {
|
|
719
720
|
source: data2.source
|
|
720
|
-
}, { "~LogMeta": "~LogMeta", F: __dxlog_file, L:
|
|
721
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 195, S: this });
|
|
721
722
|
}
|
|
722
|
-
|
|
723
|
-
if (!
|
|
723
|
+
targetUri = resolveId(data2.target);
|
|
724
|
+
if (!targetUri) {
|
|
724
725
|
log.warn("target not found", {
|
|
725
726
|
target: data2.target
|
|
726
|
-
}, { "~LogMeta": "~LogMeta", F: __dxlog_file, L:
|
|
727
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 201, S: this });
|
|
727
728
|
}
|
|
728
729
|
delete data2.source;
|
|
729
730
|
delete data2.target;
|
|
730
|
-
data2[RelationSourceDXNId] = sourceDXN;
|
|
731
|
-
data2[RelationTargetDXNId] = targetDXN;
|
|
732
731
|
}
|
|
733
732
|
return {
|
|
734
733
|
data: data2,
|
|
735
|
-
schema: entry.schema
|
|
734
|
+
schema: entry.schema,
|
|
735
|
+
sourceUri,
|
|
736
|
+
targetUri
|
|
736
737
|
};
|
|
737
738
|
}).filter((object) => !existingIds.has(object.data.id));
|
|
738
739
|
const dbObjects = yield* Effect.promise(() => db.query(Query2.select(Filter.id(...existingIds))).run());
|
|
@@ -745,28 +746,26 @@ var sanitizeObjects = (types, data, db, feed) => Effect.gen(function* () {
|
|
|
745
746
|
dbObjects,
|
|
746
747
|
feedObjects,
|
|
747
748
|
existingIds
|
|
748
|
-
}, { "~LogMeta": "~LogMeta", F: __dxlog_file, L:
|
|
749
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 223, S: this });
|
|
749
750
|
const missing = Array.from(existingIds).filter((id) => !objects.some((object) => object.id === id));
|
|
750
751
|
if (missing.length > 0) {
|
|
751
752
|
throw new Error(`Object IDs do not point to existing objects: ${missing.join(", ")}`);
|
|
752
753
|
}
|
|
753
|
-
return res.flatMap(({ data: data2, schema }) => {
|
|
754
|
+
return res.flatMap(({ data: data2, schema, sourceUri, targetUri }) => {
|
|
754
755
|
let skip = false;
|
|
755
|
-
if (
|
|
756
|
-
const id =
|
|
757
|
-
const obj = objects.find((object) => object.id === id) ?? enitties.get(id);
|
|
756
|
+
if (sourceUri) {
|
|
757
|
+
const id = EID.getEntityId(sourceUri);
|
|
758
|
+
const obj = objects.find((object) => object.id === id) ?? (id ? enitties.get(id) : void 0);
|
|
758
759
|
if (obj) {
|
|
759
|
-
delete data2[RelationSourceDXNId];
|
|
760
760
|
data2[RelationSourceId] = obj;
|
|
761
761
|
} else {
|
|
762
762
|
skip = true;
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
|
-
if (
|
|
766
|
-
const id =
|
|
767
|
-
const obj = objects.find((object) => object.id === id) ?? enitties.get(id);
|
|
765
|
+
if (targetUri) {
|
|
766
|
+
const id = EID.getEntityId(targetUri);
|
|
767
|
+
const obj = objects.find((object) => object.id === id) ?? (id ? enitties.get(id) : void 0);
|
|
768
768
|
if (obj) {
|
|
769
|
-
delete data2[RelationTargetDXNId];
|
|
770
769
|
data2[RelationTargetId] = obj;
|
|
771
770
|
} else {
|
|
772
771
|
skip = true;
|
|
@@ -815,7 +814,7 @@ var preprocessSchema = (schema) => {
|
|
|
815
814
|
|
|
816
815
|
// src/functions/agent/index.ts
|
|
817
816
|
import { OperationHandlerSet as OperationHandlerSet9 } from "@dxos/compute";
|
|
818
|
-
var AgentHandlers = OperationHandlerSet9.lazy(() => import("./prompt-
|
|
817
|
+
var AgentHandlers = OperationHandlerSet9.lazy(() => import("./prompt-DZP2K2NE.mjs"));
|
|
819
818
|
|
|
820
819
|
// src/toolkits/WebToolkit.ts
|
|
821
820
|
var WebToolkit_exports = {};
|