@dxos/assistant-toolkit 0.8.4-main.74a063c4e0 → 0.8.4-main.765dc60934
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-W2CRMEAZ.mjs → add-artifact-4IVGW6CI.mjs} +11 -11
- package/dist/lib/neutral/add-artifact-4IVGW6CI.mjs.map +7 -0
- package/dist/lib/neutral/agent-F4L7UXME.mjs +65 -0
- package/dist/lib/neutral/agent-F4L7UXME.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-2SH4XUQR.mjs → chunk-5GPL2WXU.mjs} +121 -68
- package/dist/lib/neutral/chunk-5GPL2WXU.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-AKMBURAD.mjs → chunk-7UCYAP3T.mjs} +30 -18
- package/dist/lib/neutral/chunk-7UCYAP3T.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-6DPL2YY5.mjs → chunk-ANSF2BHN.mjs} +5 -6
- package/dist/lib/neutral/chunk-ANSF2BHN.mjs.map +7 -0
- package/dist/lib/neutral/chunk-BCT55UTL.mjs +75 -0
- package/dist/lib/neutral/chunk-BCT55UTL.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-TKJH3CAH.mjs → chunk-COL54UJ3.mjs} +18 -11
- package/dist/lib/neutral/chunk-COL54UJ3.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-BO4ZVH7M.mjs → chunk-EJAQUAKM.mjs} +3 -3
- package/dist/lib/neutral/chunk-EJAQUAKM.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-YBTLIXQK.mjs → chunk-KGU725LW.mjs} +2 -2
- package/dist/lib/neutral/{chunk-YBTLIXQK.mjs.map → chunk-KGU725LW.mjs.map} +3 -3
- package/dist/lib/neutral/{chunk-B2PLQKOJ.mjs → chunk-KS3IA6FQ.mjs} +31 -33
- package/dist/lib/neutral/chunk-KS3IA6FQ.mjs.map +7 -0
- package/dist/lib/neutral/chunk-MMQ7HFL4.mjs +107 -0
- package/dist/lib/neutral/chunk-MMQ7HFL4.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-VBSCQN37.mjs → chunk-NR3GTWRC.mjs} +4 -3
- package/dist/lib/neutral/chunk-NR3GTWRC.mjs.map +7 -0
- package/dist/lib/neutral/chunk-PLGEBNTO.mjs +65 -0
- package/dist/lib/neutral/chunk-PLGEBNTO.mjs.map +7 -0
- package/dist/lib/neutral/chunk-W2722TC5.mjs +70 -0
- package/dist/lib/neutral/chunk-W2722TC5.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-MEZ4UFR6.mjs → chunk-WLR3BGO4.mjs} +2 -2
- package/dist/lib/neutral/chunk-WLR3BGO4.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-AGG6OZNB.mjs → chunk-ZFXLTBZG.mjs} +4 -5
- package/dist/lib/neutral/chunk-ZFXLTBZG.mjs.map +7 -0
- package/dist/lib/neutral/{context-add-U5LSEQLG.mjs → context-add-S5MBW2NA.mjs} +5 -5
- package/dist/lib/neutral/context-add-S5MBW2NA.mjs.map +7 -0
- package/dist/lib/neutral/{context-remove-3YGXLVRA.mjs → context-remove-35O5T5N5.mjs} +5 -5
- package/dist/lib/neutral/context-remove-35O5T5N5.mjs.map +7 -0
- package/dist/lib/neutral/create-project-3AGXJ4TD.mjs +35 -0
- package/dist/lib/neutral/create-project-3AGXJ4TD.mjs.map +7 -0
- package/dist/lib/neutral/{delete-LHMZDJFA.mjs → delete-J3PMWP7Z.mjs} +4 -4
- package/dist/lib/neutral/delete-J3PMWP7Z.mjs.map +7 -0
- package/dist/lib/neutral/{enable-blueprints-4UMPKGUD.mjs → enable-blueprints-IVKST3WH.mjs} +5 -6
- package/dist/lib/neutral/enable-blueprints-IVKST3WH.mjs.map +7 -0
- package/dist/lib/neutral/{fetch-TLKREIZA.mjs → fetch-KHMHV7JR.mjs} +3 -3
- package/dist/lib/neutral/{fetch-TLKREIZA.mjs.map → fetch-KHMHV7JR.mjs.map} +1 -1
- package/dist/lib/neutral/{fetch-messages-AFX7ZAVE.mjs → fetch-messages-QOBBCTGC.mjs} +9 -24
- package/dist/lib/neutral/fetch-messages-QOBBCTGC.mjs.map +7 -0
- package/dist/lib/neutral/get-context-FBYWIP72.mjs +35 -0
- package/dist/lib/neutral/get-context-FBYWIP72.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +808 -142
- package/dist/lib/neutral/index.mjs.map +4 -4
- package/dist/lib/neutral/{load-KHLICMGJ.mjs → load-GAT3T2AD.mjs} +3 -3
- package/dist/lib/neutral/{load-KHLICMGJ.mjs.map → load-GAT3T2AD.mjs.map} +3 -3
- package/dist/lib/neutral/meta.json +1 -1
- package/dist/lib/neutral/{object-create-7J7D53FT.mjs → object-create-PL3WRP74.mjs} +5 -13
- package/dist/lib/neutral/object-create-PL3WRP74.mjs.map +7 -0
- package/dist/lib/neutral/{object-delete-QFXUHJ2D.mjs → object-delete-PZJQN5KW.mjs} +3 -3
- package/dist/lib/neutral/object-delete-PZJQN5KW.mjs.map +7 -0
- package/dist/lib/neutral/{object-update-C73HRM5F.mjs → object-update-R43N3VJX.mjs} +4 -4
- package/dist/lib/neutral/object-update-R43N3VJX.mjs.map +7 -0
- package/dist/lib/neutral/project-VVXXUMAI.mjs +23 -0
- package/dist/lib/neutral/{project-rules-IYRR6OQE.mjs → project-rules-KSVSOZJV.mjs} +24 -23
- package/dist/lib/neutral/project-rules-KSVSOZJV.mjs.map +7 -0
- package/dist/lib/neutral/{prompt-MWQPSPDW.mjs → prompt-INL55Q2B.mjs} +43 -66
- package/dist/lib/neutral/prompt-INL55Q2B.mjs.map +7 -0
- package/dist/lib/neutral/{qualifier-KIBSTV6F.mjs → qualifier-DAF4H7V3.mjs} +30 -46
- package/dist/lib/neutral/qualifier-DAF4H7V3.mjs.map +7 -0
- package/dist/lib/neutral/{query-ZMWWZ4I3.mjs → query-MP5NSQKO.mjs} +8 -6
- package/dist/lib/neutral/query-MP5NSQKO.mjs.map +7 -0
- package/dist/lib/neutral/{query-MN5B3MQF.mjs → query-U56GNEV6.mjs} +4 -4
- package/dist/lib/neutral/query-U56GNEV6.mjs.map +7 -0
- package/dist/lib/neutral/{query-blueprints-EKHEZAGD.mjs → query-blueprints-PLWYVOI3.mjs} +3 -4
- package/dist/lib/neutral/query-blueprints-PLWYVOI3.mjs.map +7 -0
- package/dist/lib/neutral/{relation-create-YWV2TUKS.mjs → relation-create-YAAAFTR2.mjs} +5 -13
- package/dist/lib/neutral/relation-create-YAAAFTR2.mjs.map +7 -0
- package/dist/lib/neutral/{relation-delete-JGGA4CYQ.mjs → relation-delete-IEPKERFR.mjs} +3 -3
- package/dist/lib/neutral/relation-delete-IEPKERFR.mjs.map +7 -0
- package/dist/lib/neutral/{save-ZWWNTBOD.mjs → save-GWAPLT3Z.mjs} +4 -4
- package/dist/lib/neutral/save-GWAPLT3Z.mjs.map +7 -0
- package/dist/lib/neutral/{schema-add-7WKPPKW4.mjs → schema-add-5BNIINRS.mjs} +3 -3
- package/dist/lib/neutral/schema-add-5BNIINRS.mjs.map +7 -0
- package/dist/lib/neutral/{schema-list-MIAIKERK.mjs → schema-list-54UK7S4R.mjs} +13 -5
- package/dist/lib/neutral/schema-list-54UK7S4R.mjs.map +7 -0
- package/dist/lib/neutral/{sync-issues-GQFVEV4W.mjs → sync-issues-DWY76B3M.mjs} +10 -23
- package/dist/lib/neutral/sync-issues-DWY76B3M.mjs.map +7 -0
- package/dist/lib/neutral/sync-triggers-NOIQLELD.mjs +135 -0
- package/dist/lib/neutral/sync-triggers-NOIQLELD.mjs.map +7 -0
- package/dist/lib/neutral/{tag-add-IKD4ADDM.mjs → tag-add-NLVRGTC6.mjs} +4 -4
- package/dist/lib/neutral/tag-add-NLVRGTC6.mjs.map +7 -0
- package/dist/lib/neutral/{tag-remove-PCSKCFT2.mjs → tag-remove-N4HFBIA2.mjs} +4 -4
- package/dist/lib/neutral/tag-remove-N4HFBIA2.mjs.map +7 -0
- package/dist/lib/neutral/testing/index.mjs +10 -15
- package/dist/lib/neutral/testing/index.mjs.map +3 -3
- package/dist/lib/neutral/{update-blueprints-ZNWR7BBN.mjs → update-blueprints-2SNK6HLG.mjs} +3 -4
- package/dist/lib/neutral/update-blueprints-2SNK6HLG.mjs.map +7 -0
- package/dist/lib/neutral/update-tasks-QQUR53RN.mjs +13 -0
- package/dist/lib/neutral/update-tasks-QQUR53RN.mjs.map +7 -0
- package/dist/types/src/blueprints/automation/blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/automation/blueprint.d.ts.map +1 -1
- package/dist/types/src/blueprints/blueprint-manager/blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/blueprint-manager/blueprint.d.ts.map +1 -1
- package/dist/types/src/blueprints/blueprint-manager/functions/definitions.d.ts +14 -13
- 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 +8 -8
- 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 +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 -6
- package/dist/types/src/blueprints/blueprint-manager/functions/query-blueprints.d.ts.map +1 -1
- package/dist/types/src/blueprints/blueprint-manager/functions/update-blueprints.d.ts +2 -3
- package/dist/types/src/blueprints/blueprint-manager/functions/update-blueprints.d.ts.map +1 -1
- package/dist/types/src/blueprints/browser/blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/browser/blueprint.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/database/blueprint.d.ts.map +1 -1
- 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 +8 -7
- package/dist/types/src/blueprints/database/functions/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/index.d.ts +1 -1
- package/dist/types/src/blueprints/database/functions/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/load.d.ts +1 -1
- package/dist/types/src/blueprints/database/functions/load.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/object-create.d.ts +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-delete.d.ts.map +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 +4 -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 +2 -2
- 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/relation-delete.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/schema-add.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 +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 +1 -1
- 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 +1 -1
- package/dist/types/src/blueprints/database/functions/tag-remove.d.ts.map +1 -1
- package/dist/types/src/blueprints/discord/blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/discord/blueprint.d.ts.map +1 -1
- package/dist/types/src/blueprints/discord/functions/definitions.d.ts +2 -3
- package/dist/types/src/blueprints/discord/functions/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/discord/functions/fetch-messages.d.ts +2 -3
- package/dist/types/src/blueprints/discord/functions/fetch-messages.d.ts.map +1 -1
- package/dist/types/src/blueprints/discord/functions/index.d.ts +1 -1
- package/dist/types/src/blueprints/discord/functions/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/github/functions/definitions.d.ts +2 -3
- package/dist/types/src/blueprints/github/functions/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/github/functions/fetch-prs.d.ts +2 -3
- package/dist/types/src/blueprints/github/functions/fetch-prs.d.ts.map +1 -1
- package/dist/types/src/blueprints/github/functions/index.d.ts +1 -1
- package/dist/types/src/blueprints/github/functions/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/index.d.ts +0 -3
- package/dist/types/src/blueprints/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/linear/blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/linear/blueprint.d.ts.map +1 -1
- package/dist/types/src/blueprints/linear/functions/definitions.d.ts +2 -3
- package/dist/types/src/blueprints/linear/functions/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/linear/functions/index.d.ts +1 -1
- package/dist/types/src/blueprints/linear/functions/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/linear/functions/sync-issues.d.ts +2 -3
- package/dist/types/src/blueprints/linear/functions/sync-issues.d.ts.map +1 -1
- package/dist/types/src/blueprints/memory/blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/memory/blueprint.d.ts.map +1 -1
- package/dist/types/src/blueprints/memory/functions/definitions.d.ts +4 -4
- 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/memory/functions/delete.d.ts.map +1 -1
- package/dist/types/src/blueprints/memory/functions/index.d.ts +1 -1
- package/dist/types/src/blueprints/memory/functions/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/memory/functions/query.d.ts +2 -2
- package/dist/types/src/blueprints/memory/functions/query.d.ts.map +1 -1
- package/dist/types/src/blueprints/memory/functions/save.d.ts +2 -2
- package/dist/types/src/blueprints/memory/functions/save.d.ts.map +1 -1
- package/dist/types/src/blueprints/planning/blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/planning/blueprint.d.ts.map +1 -1
- package/dist/types/src/blueprints/planning/functions/index.d.ts +2 -2
- package/dist/types/src/blueprints/planning/functions/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/planning/functions/update-tasks.d.ts +16 -3
- 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/blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/project/blueprint.d.ts.map +1 -1
- package/dist/types/src/blueprints/project/functions/add-artifact.d.ts +2 -6
- package/dist/types/src/blueprints/project/functions/add-artifact.d.ts.map +1 -1
- package/dist/types/src/blueprints/project/functions/agent.d.ts +1 -1
- package/dist/types/src/blueprints/project/functions/agent.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 +2 -13
- package/dist/types/src/blueprints/project/functions/get-context.d.ts.map +1 -1
- package/dist/types/src/blueprints/project/functions/index.d.ts +2 -2
- package/dist/types/src/blueprints/project/functions/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/project/functions/qualifier.d.ts +27 -19
- package/dist/types/src/blueprints/project/functions/qualifier.d.ts.map +1 -1
- package/dist/types/src/blueprints/project/index.d.ts +2 -2
- package/dist/types/src/blueprints/project/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/project-wizard/blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/project-wizard/blueprint.d.ts.map +1 -1
- package/dist/types/src/blueprints/project-wizard/functions/create-project.d.ts +25 -18
- 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 +49 -34
- package/dist/types/src/blueprints/project-wizard/functions/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/project-wizard/functions/index.d.ts +2 -2
- package/dist/types/src/blueprints/project-wizard/functions/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/project-wizard/functions/project-rules.d.ts +1 -1
- package/dist/types/src/blueprints/project-wizard/functions/project-rules.d.ts.map +1 -1
- package/dist/types/src/blueprints/project-wizard/functions/sync-triggers.d.ts +23 -15
- package/dist/types/src/blueprints/project-wizard/functions/sync-triggers.d.ts.map +1 -1
- package/dist/types/src/blueprints/project-wizard/index.d.ts +2 -2
- package/dist/types/src/blueprints/project-wizard/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/testing.d.ts +5 -13
- package/dist/types/src/blueprints/testing.d.ts.map +1 -1
- package/dist/types/src/blueprints/websearch/blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/websearch/blueprint.d.ts.map +1 -1
- package/dist/types/src/blueprints/websearch/functions/definitions.d.ts +1 -1
- package/dist/types/src/blueprints/websearch/functions/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/websearch/functions/fetch.d.ts +1 -1
- package/dist/types/src/blueprints/websearch/functions/fetch.d.ts.map +1 -1
- package/dist/types/src/blueprints/websearch/functions/index.d.ts +1 -1
- package/dist/types/src/blueprints/websearch/functions/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/websearch/index.d.ts +1 -1
- package/dist/types/src/blueprints/websearch/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/websearch/toolkit.d.ts +2 -2
- package/dist/types/src/blueprints/websearch/toolkit.d.ts.map +1 -1
- package/dist/types/src/crud/graph.d.ts +5 -7
- package/dist/types/src/crud/graph.d.ts.map +1 -1
- package/dist/types/src/errors.d.ts +6 -6
- package/dist/types/src/errors.d.ts.map +1 -1
- package/dist/types/src/functions/agent/definitions.d.ts +16 -15
- package/dist/types/src/functions/agent/definitions.d.ts.map +1 -1
- package/dist/types/src/functions/agent/index.d.ts +1 -1
- package/dist/types/src/functions/agent/index.d.ts.map +1 -1
- package/dist/types/src/functions/agent/prompt.d.ts +1 -1
- package/dist/types/src/functions/agent/prompt.d.ts.map +1 -1
- package/dist/types/src/functions/index.d.ts +0 -2
- package/dist/types/src/functions/index.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.map +1 -1
- package/dist/types/src/types/{Project.d.ts → Agent.d.ts} +38 -32
- package/dist/types/src/types/Agent.d.ts.map +1 -0
- package/dist/types/src/types/Chat.d.ts +8 -4
- package/dist/types/src/types/Chat.d.ts.map +1 -1
- package/dist/types/src/types/McpServer.d.ts +21 -0
- package/dist/types/src/types/McpServer.d.ts.map +1 -0
- package/dist/types/src/types/Memory.d.ts +1 -1
- package/dist/types/src/types/Memory.d.ts.map +1 -1
- package/dist/types/src/types/Plan.d.ts +17 -14
- package/dist/types/src/types/Plan.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +2 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/util/graphql.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +26 -31
- package/src/blueprints/automation/blueprint.ts +3 -6
- package/src/blueprints/blueprint-manager/blueprint.conversations.json +1 -1
- package/src/blueprints/blueprint-manager/blueprint.test.ts +70 -44
- package/src/blueprints/blueprint-manager/blueprint.ts +4 -5
- package/src/blueprints/blueprint-manager/functions/definitions.ts +4 -5
- package/src/blueprints/blueprint-manager/functions/enable-blueprints.ts +3 -4
- package/src/blueprints/blueprint-manager/functions/index.ts +1 -1
- package/src/blueprints/blueprint-manager/functions/query-blueprints.ts +1 -2
- package/src/blueprints/blueprint-manager/functions/update-blueprints.ts +1 -2
- package/src/blueprints/browser/blueprint.test.ts +8 -10
- package/src/blueprints/browser/blueprint.ts +3 -4
- package/src/blueprints/database/blueprint.conversations.json +1 -1
- package/src/blueprints/database/blueprint.test.ts +89 -13
- package/src/blueprints/database/blueprint.ts +3 -4
- package/src/blueprints/database/functions/context-add.ts +3 -3
- package/src/blueprints/database/functions/context-remove.ts +3 -3
- package/src/blueprints/database/functions/definitions.ts +34 -17
- package/src/blueprints/database/functions/index.ts +1 -1
- package/src/blueprints/database/functions/load.ts +1 -1
- package/src/blueprints/database/functions/object-create.ts +1 -1
- package/src/blueprints/database/functions/object-delete.ts +1 -1
- package/src/blueprints/database/functions/object-update.ts +2 -2
- package/src/blueprints/database/functions/query.ts +9 -5
- package/src/blueprints/database/functions/relation-create.ts +1 -1
- package/src/blueprints/database/functions/relation-delete.ts +1 -1
- package/src/blueprints/database/functions/schema-add.ts +1 -1
- package/src/blueprints/database/functions/schema-list.ts +16 -10
- package/src/blueprints/database/functions/tag-add.ts +2 -2
- package/src/blueprints/database/functions/tag-remove.ts +2 -2
- package/src/blueprints/discord/blueprint.ts +3 -4
- package/src/blueprints/discord/functions/definitions.ts +2 -3
- package/src/blueprints/discord/functions/fetch-messages.test.ts +21 -27
- package/src/blueprints/discord/functions/fetch-messages.ts +4 -5
- package/src/blueprints/discord/functions/index.ts +1 -1
- package/src/blueprints/github/functions/definitions.ts +2 -3
- package/src/blueprints/github/functions/fetch-prs.ts +3 -3
- package/src/blueprints/github/functions/index.ts +1 -1
- package/src/blueprints/index.ts +0 -3
- package/src/blueprints/linear/blueprint.ts +3 -4
- package/src/blueprints/linear/functions/definitions.ts +2 -3
- package/src/blueprints/linear/functions/index.ts +1 -1
- package/src/blueprints/linear/functions/linear.test.ts +5 -7
- package/src/blueprints/linear/functions/sync-issues.ts +4 -5
- package/src/blueprints/memory/blueprint.conversations.json +1 -1
- package/src/blueprints/memory/blueprint.test.ts +5 -5
- package/src/blueprints/memory/blueprint.ts +4 -5
- package/src/blueprints/memory/functions/definitions.ts +1 -1
- package/src/blueprints/memory/functions/delete.ts +1 -1
- package/src/blueprints/memory/functions/index.ts +1 -1
- package/src/blueprints/memory/functions/query.ts +1 -1
- package/src/blueprints/memory/functions/save.ts +1 -1
- package/src/blueprints/planning/blueprint.ts +3 -4
- package/src/blueprints/planning/functions/index.ts +2 -2
- 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 +30 -8
- package/src/blueprints/project/blueprint.conversations.json +1 -1
- package/src/blueprints/project/blueprint.test.ts +215 -156
- package/src/blueprints/project/blueprint.ts +19 -20
- package/src/blueprints/project/functions/add-artifact.ts +6 -5
- package/src/blueprints/project/functions/agent.ts +47 -44
- package/src/blueprints/project/functions/definitions.ts +27 -30
- package/src/blueprints/project/functions/get-context.ts +10 -9
- package/src/blueprints/project/functions/index.ts +2 -2
- package/src/blueprints/project/functions/qualifier.ts +21 -21
- package/src/blueprints/project/index.ts +2 -2
- package/src/blueprints/project-wizard/blueprint.ts +24 -20
- package/src/blueprints/project-wizard/functions/create-project.ts +11 -12
- package/src/blueprints/project-wizard/functions/definitions.ts +20 -21
- package/src/blueprints/project-wizard/functions/index.ts +2 -2
- package/src/blueprints/project-wizard/functions/project-rules.ts +19 -18
- package/src/blueprints/project-wizard/functions/sync-triggers.ts +72 -77
- package/src/blueprints/project-wizard/index.ts +2 -2
- package/src/blueprints/testing.ts +14 -22
- package/src/blueprints/websearch/blueprint.conversations.json +1 -1
- package/src/blueprints/websearch/blueprint.test.ts +4 -4
- package/src/blueprints/websearch/blueprint.ts +2 -3
- package/src/blueprints/websearch/functions/definitions.ts +1 -1
- package/src/blueprints/websearch/functions/fetch.ts +1 -1
- package/src/blueprints/websearch/functions/index.ts +1 -1
- package/src/blueprints/websearch/index.ts +1 -1
- package/src/blueprints/websearch/toolkit.ts +2 -2
- package/src/crud/graph.test.ts +10 -12
- package/src/crud/graph.ts +125 -127
- package/src/functions/agent/definitions.ts +13 -10
- package/src/functions/agent/index.ts +1 -1
- package/src/functions/agent/prompt.conversations.json +1 -1
- package/src/functions/agent/prompt.test.ts +12 -16
- package/src/functions/agent/prompt.ts +47 -42
- package/src/functions/index.ts +0 -2
- package/src/sync/sync.ts +24 -14
- package/src/testing/plugins.tsx +9 -7
- package/src/types/Agent.ts +238 -0
- package/src/types/Chat.ts +2 -1
- package/src/types/McpServer.ts +37 -0
- package/src/types/Memory.ts +2 -1
- package/src/types/Plan.ts +3 -2
- package/src/types/index.ts +2 -1
- package/dist/lib/neutral/add-artifact-W2CRMEAZ.mjs.map +0 -7
- package/dist/lib/neutral/agent-CT44JSYM.mjs +0 -85
- package/dist/lib/neutral/agent-CT44JSYM.mjs.map +0 -7
- package/dist/lib/neutral/chunk-2SH4XUQR.mjs.map +0 -7
- package/dist/lib/neutral/chunk-6DPL2YY5.mjs.map +0 -7
- package/dist/lib/neutral/chunk-6FL4C6KD.mjs +0 -86
- package/dist/lib/neutral/chunk-6FL4C6KD.mjs.map +0 -7
- package/dist/lib/neutral/chunk-A4AVXKBT.mjs +0 -694
- package/dist/lib/neutral/chunk-A4AVXKBT.mjs.map +0 -7
- package/dist/lib/neutral/chunk-AGG6OZNB.mjs.map +0 -7
- package/dist/lib/neutral/chunk-AKMBURAD.mjs.map +0 -7
- package/dist/lib/neutral/chunk-B2PLQKOJ.mjs.map +0 -7
- package/dist/lib/neutral/chunk-BO4ZVH7M.mjs.map +0 -7
- package/dist/lib/neutral/chunk-HZM3HNAS.mjs +0 -78
- package/dist/lib/neutral/chunk-HZM3HNAS.mjs.map +0 -7
- package/dist/lib/neutral/chunk-ILZ2ODWC.mjs +0 -95
- package/dist/lib/neutral/chunk-ILZ2ODWC.mjs.map +0 -7
- package/dist/lib/neutral/chunk-KW45RMNS.mjs +0 -140
- package/dist/lib/neutral/chunk-KW45RMNS.mjs.map +0 -7
- package/dist/lib/neutral/chunk-LI6VMCJW.mjs +0 -27
- package/dist/lib/neutral/chunk-LI6VMCJW.mjs.map +0 -7
- package/dist/lib/neutral/chunk-MEZ4UFR6.mjs.map +0 -7
- package/dist/lib/neutral/chunk-TKJH3CAH.mjs.map +0 -7
- package/dist/lib/neutral/chunk-U26AX7D7.mjs +0 -76
- package/dist/lib/neutral/chunk-U26AX7D7.mjs.map +0 -7
- package/dist/lib/neutral/chunk-VBSCQN37.mjs.map +0 -7
- package/dist/lib/neutral/chunk-VDEDVOS6.mjs +0 -39
- package/dist/lib/neutral/chunk-VDEDVOS6.mjs.map +0 -7
- package/dist/lib/neutral/chunk-VHYUC3HO.mjs +0 -70
- package/dist/lib/neutral/chunk-VHYUC3HO.mjs.map +0 -7
- package/dist/lib/neutral/chunk-XT5ZSUS6.mjs +0 -363
- package/dist/lib/neutral/chunk-XT5ZSUS6.mjs.map +0 -7
- package/dist/lib/neutral/context-add-U5LSEQLG.mjs.map +0 -7
- package/dist/lib/neutral/context-remove-3YGXLVRA.mjs.map +0 -7
- package/dist/lib/neutral/create-P6I22VS5.mjs +0 -23
- package/dist/lib/neutral/create-P6I22VS5.mjs.map +0 -7
- package/dist/lib/neutral/create-project-NESP7QHJ.mjs +0 -36
- package/dist/lib/neutral/create-project-NESP7QHJ.mjs.map +0 -7
- package/dist/lib/neutral/delete-LHMZDJFA.mjs.map +0 -7
- package/dist/lib/neutral/document-create-53ZVNGFR.mjs +0 -57
- package/dist/lib/neutral/document-create-53ZVNGFR.mjs.map +0 -7
- package/dist/lib/neutral/enable-blueprints-4UMPKGUD.mjs.map +0 -7
- package/dist/lib/neutral/entity-extraction-EEMRVHPI.mjs +0 -196
- package/dist/lib/neutral/entity-extraction-EEMRVHPI.mjs.map +0 -7
- package/dist/lib/neutral/exa-P4G3DCYB.mjs +0 -28
- package/dist/lib/neutral/exa-P4G3DCYB.mjs.map +0 -7
- package/dist/lib/neutral/fetch-messages-AFX7ZAVE.mjs.map +0 -7
- package/dist/lib/neutral/get-context-LUOU7M3Z.mjs +0 -35
- package/dist/lib/neutral/get-context-LUOU7M3Z.mjs.map +0 -7
- package/dist/lib/neutral/mock-2ARYZ54S.mjs +0 -556
- package/dist/lib/neutral/mock-2ARYZ54S.mjs.map +0 -7
- package/dist/lib/neutral/object-create-7J7D53FT.mjs.map +0 -7
- package/dist/lib/neutral/object-delete-QFXUHJ2D.mjs.map +0 -7
- package/dist/lib/neutral/object-update-C73HRM5F.mjs.map +0 -7
- package/dist/lib/neutral/project-XFTFWHSY.mjs +0 -23
- package/dist/lib/neutral/project-rules-IYRR6OQE.mjs.map +0 -7
- package/dist/lib/neutral/prompt-MWQPSPDW.mjs.map +0 -7
- package/dist/lib/neutral/qualifier-KIBSTV6F.mjs.map +0 -7
- package/dist/lib/neutral/query-MN5B3MQF.mjs.map +0 -7
- package/dist/lib/neutral/query-ZMWWZ4I3.mjs.map +0 -7
- package/dist/lib/neutral/query-blueprints-EKHEZAGD.mjs.map +0 -7
- package/dist/lib/neutral/read-JJN7YXHI.mjs +0 -19
- package/dist/lib/neutral/read-JJN7YXHI.mjs.map +0 -7
- package/dist/lib/neutral/relation-create-YWV2TUKS.mjs.map +0 -7
- package/dist/lib/neutral/relation-delete-JGGA4CYQ.mjs.map +0 -7
- package/dist/lib/neutral/research-7JQEX7MU.mjs +0 -109
- package/dist/lib/neutral/research-7JQEX7MU.mjs.map +0 -7
- package/dist/lib/neutral/save-ZWWNTBOD.mjs.map +0 -7
- package/dist/lib/neutral/schema-add-7WKPPKW4.mjs.map +0 -7
- package/dist/lib/neutral/schema-list-MIAIKERK.mjs.map +0 -7
- package/dist/lib/neutral/sync-issues-GQFVEV4W.mjs.map +0 -7
- package/dist/lib/neutral/sync-triggers-MBKM6VIQ.mjs +0 -128
- package/dist/lib/neutral/sync-triggers-MBKM6VIQ.mjs.map +0 -7
- package/dist/lib/neutral/tag-add-IKD4ADDM.mjs.map +0 -7
- package/dist/lib/neutral/tag-remove-PCSKCFT2.mjs.map +0 -7
- package/dist/lib/neutral/update-HZ7A3ZA5.mjs +0 -20
- package/dist/lib/neutral/update-HZ7A3ZA5.mjs.map +0 -7
- package/dist/lib/neutral/update-blueprints-ZNWR7BBN.mjs.map +0 -7
- package/dist/lib/neutral/update-tasks-D5XKU3TE.mjs +0 -46
- package/dist/lib/neutral/update-tasks-D5XKU3TE.mjs.map +0 -7
- package/dist/types/src/blueprints/design/blueprint.d.ts +0 -4
- package/dist/types/src/blueprints/design/blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprints/design/blueprint.test.d.ts +0 -2
- package/dist/types/src/blueprints/design/blueprint.test.d.ts.map +0 -1
- package/dist/types/src/blueprints/design/index.d.ts +0 -2
- package/dist/types/src/blueprints/design/index.d.ts.map +0 -1
- package/dist/types/src/blueprints/markdown/blueprint.d.ts +0 -4
- package/dist/types/src/blueprints/markdown/blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprints/markdown/functions/create.d.ts +0 -8
- package/dist/types/src/blueprints/markdown/functions/create.d.ts.map +0 -1
- package/dist/types/src/blueprints/markdown/functions/definitions.d.ts +0 -45
- package/dist/types/src/blueprints/markdown/functions/definitions.d.ts.map +0 -1
- package/dist/types/src/blueprints/markdown/functions/index.d.ts +0 -4
- package/dist/types/src/blueprints/markdown/functions/index.d.ts.map +0 -1
- package/dist/types/src/blueprints/markdown/functions/read.d.ts +0 -17
- package/dist/types/src/blueprints/markdown/functions/read.d.ts.map +0 -1
- package/dist/types/src/blueprints/markdown/functions/update.d.ts +0 -16
- package/dist/types/src/blueprints/markdown/functions/update.d.ts.map +0 -1
- package/dist/types/src/blueprints/markdown/index.d.ts +0 -3
- package/dist/types/src/blueprints/markdown/index.d.ts.map +0 -1
- 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/types/src/blueprints/planning-old/blueprint.d.ts +0 -4
- package/dist/types/src/blueprints/planning-old/blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprints/planning-old/blueprint.test.d.ts +0 -2
- package/dist/types/src/blueprints/planning-old/blueprint.test.d.ts.map +0 -1
- package/dist/types/src/blueprints/planning-old/functions/definitions.d.ts +0 -31
- package/dist/types/src/blueprints/planning-old/functions/definitions.d.ts.map +0 -1
- package/dist/types/src/blueprints/planning-old/functions/index.d.ts +0 -4
- package/dist/types/src/blueprints/planning-old/functions/index.d.ts.map +0 -1
- package/dist/types/src/blueprints/planning-old/functions/read.d.ts +0 -17
- package/dist/types/src/blueprints/planning-old/functions/read.d.ts.map +0 -1
- package/dist/types/src/blueprints/planning-old/functions/task-list.d.ts +0 -74
- package/dist/types/src/blueprints/planning-old/functions/task-list.d.ts.map +0 -1
- package/dist/types/src/blueprints/planning-old/functions/task-list.test.d.ts +0 -2
- package/dist/types/src/blueprints/planning-old/functions/task-list.test.d.ts.map +0 -1
- package/dist/types/src/blueprints/planning-old/functions/update.d.ts +0 -19
- package/dist/types/src/blueprints/planning-old/functions/update.d.ts.map +0 -1
- package/dist/types/src/blueprints/planning-old/index.d.ts +0 -3
- package/dist/types/src/blueprints/planning-old/index.d.ts.map +0 -1
- package/dist/types/src/blueprints/research/blueprint.d.ts +0 -4
- package/dist/types/src/blueprints/research/blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprints/research/blueprint.test.d.ts +0 -2
- package/dist/types/src/blueprints/research/blueprint.test.d.ts.map +0 -1
- package/dist/types/src/blueprints/research/functions/definitions.d.ts +0 -21
- package/dist/types/src/blueprints/research/functions/definitions.d.ts.map +0 -1
- package/dist/types/src/blueprints/research/functions/document-create.d.ts +0 -12
- package/dist/types/src/blueprints/research/functions/document-create.d.ts.map +0 -1
- package/dist/types/src/blueprints/research/functions/index.d.ts +0 -4
- package/dist/types/src/blueprints/research/functions/index.d.ts.map +0 -1
- package/dist/types/src/blueprints/research/functions/research.d.ts +0 -18
- package/dist/types/src/blueprints/research/functions/research.d.ts.map +0 -1
- package/dist/types/src/blueprints/research/functions/research.test.d.ts +0 -2
- package/dist/types/src/blueprints/research/functions/research.test.d.ts.map +0 -1
- package/dist/types/src/blueprints/research/index.d.ts +0 -4
- package/dist/types/src/blueprints/research/index.d.ts.map +0 -1
- package/dist/types/src/blueprints/research/types/ResearchGraph.d.ts +0 -24
- package/dist/types/src/blueprints/research/types/ResearchGraph.d.ts.map +0 -1
- package/dist/types/src/blueprints/research/types/index.d.ts +0 -7
- package/dist/types/src/blueprints/research/types/index.d.ts.map +0 -1
- package/dist/types/src/functions/entity-extraction/definitions.d.ts +0 -182
- package/dist/types/src/functions/entity-extraction/definitions.d.ts.map +0 -1
- package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts +0 -4
- package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts.map +0 -1
- package/dist/types/src/functions/entity-extraction/entity-extraction.test.d.ts +0 -2
- package/dist/types/src/functions/entity-extraction/entity-extraction.test.d.ts.map +0 -1
- package/dist/types/src/functions/entity-extraction/index.d.ts +0 -4
- package/dist/types/src/functions/entity-extraction/index.d.ts.map +0 -1
- package/dist/types/src/functions/exa/data/exa-search-1748337321991.d.ts +0 -38
- package/dist/types/src/functions/exa/data/exa-search-1748337321991.d.ts.map +0 -1
- package/dist/types/src/functions/exa/data/exa-search-1748337331526.d.ts +0 -37
- package/dist/types/src/functions/exa/data/exa-search-1748337331526.d.ts.map +0 -1
- package/dist/types/src/functions/exa/data/exa-search-1748337344119.d.ts +0 -58
- package/dist/types/src/functions/exa/data/exa-search-1748337344119.d.ts.map +0 -1
- package/dist/types/src/functions/exa/data/index.d.ts +0 -3
- package/dist/types/src/functions/exa/data/index.d.ts.map +0 -1
- package/dist/types/src/functions/exa/definitions.d.ts +0 -9
- package/dist/types/src/functions/exa/definitions.d.ts.map +0 -1
- package/dist/types/src/functions/exa/exa.d.ts +0 -7
- package/dist/types/src/functions/exa/exa.d.ts.map +0 -1
- package/dist/types/src/functions/exa/index.d.ts +0 -4
- package/dist/types/src/functions/exa/index.d.ts.map +0 -1
- package/dist/types/src/functions/exa/mock.d.ts +0 -6
- package/dist/types/src/functions/exa/mock.d.ts.map +0 -1
- package/dist/types/src/types/Project.d.ts.map +0 -1
- package/src/blueprints/browser/blueprint.conversations.json +0 -1
- package/src/blueprints/design/blueprint.test.ts +0 -97
- package/src/blueprints/design/blueprint.ts +0 -41
- package/src/blueprints/design/index.ts +0 -5
- package/src/blueprints/markdown/blueprint.ts +0 -36
- package/src/blueprints/markdown/functions/create.ts +0 -20
- package/src/blueprints/markdown/functions/definitions.ts +0 -80
- package/src/blueprints/markdown/functions/index.ts +0 -13
- package/src/blueprints/markdown/functions/read.ts +0 -22
- package/src/blueprints/markdown/functions/update.ts +0 -22
- package/src/blueprints/markdown/index.ts +0 -11
- package/src/blueprints/planning-old/blueprint.test.ts +0 -122
- package/src/blueprints/planning-old/blueprint.ts +0 -106
- package/src/blueprints/planning-old/functions/definitions.ts +0 -53
- package/src/blueprints/planning-old/functions/index.ts +0 -12
- package/src/blueprints/planning-old/functions/read.ts +0 -24
- package/src/blueprints/planning-old/functions/task-list.test.ts +0 -99
- package/src/blueprints/planning-old/functions/task-list.ts +0 -165
- package/src/blueprints/planning-old/functions/update.ts +0 -31
- package/src/blueprints/planning-old/index.ts +0 -6
- package/src/blueprints/research/blueprint.test.ts +0 -7
- package/src/blueprints/research/blueprint.ts +0 -61
- package/src/blueprints/research/functions/definitions.ts +0 -87
- package/src/blueprints/research/functions/document-create.ts +0 -50
- package/src/blueprints/research/functions/index.ts +0 -12
- package/src/blueprints/research/functions/research-instructions.tpl +0 -106
- package/src/blueprints/research/functions/research.conversations.json +0 -1
- package/src/blueprints/research/functions/research.test.ts +0 -150
- package/src/blueprints/research/functions/research.ts +0 -137
- package/src/blueprints/research/index.ts +0 -7
- package/src/blueprints/research/types/ResearchGraph.ts +0 -62
- package/src/blueprints/research/types/index.ts +0 -32
- package/src/functions/entity-extraction/definitions.ts +0 -44
- package/src/functions/entity-extraction/entity-extraction.conversations.json +0 -1
- package/src/functions/entity-extraction/entity-extraction.test.ts +0 -74
- package/src/functions/entity-extraction/entity-extraction.ts +0 -159
- package/src/functions/entity-extraction/index.ts +0 -9
- package/src/functions/exa/data/exa-search-1748337321991.ts +0 -131
- package/src/functions/exa/data/exa-search-1748337331526.ts +0 -144
- package/src/functions/exa/data/exa-search-1748337344119.ts +0 -133
- package/src/functions/exa/data/index.ts +0 -11
- package/src/functions/exa/definitions.ts +0 -37
- package/src/functions/exa/exa.ts +0 -32
- package/src/functions/exa/index.ts +0 -12
- package/src/functions/exa/mock.ts +0 -62
- package/src/types/Project.ts +0 -201
- /package/dist/lib/neutral/{project-XFTFWHSY.mjs.map → project-VVXXUMAI.mjs.map} +0 -0
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/blueprints/markdown/functions/index.ts", "../../../src/blueprints/markdown/blueprint.ts", "../../../src/blueprints/design/blueprint.ts", "../../../src/blueprints/discord/functions/index.ts", "../../../src/blueprints/discord/blueprint.ts", "../../../src/blueprints/linear/functions/index.ts", "../../../src/blueprints/linear/blueprint.ts", "../../../src/blueprints/planning/functions/index.ts", "../../../src/blueprints/planning/blueprint.ts", "../../../src/blueprints/research/functions/index.ts", "../../../src/blueprints/research/blueprint.ts", "../../../src/blueprints/websearch/functions/index.ts", "../../../src/blueprints/websearch/blueprint.ts", "../../../src/blueprints/websearch/toolkit.ts", "../../../src/blueprints/browser/blueprint.ts", "../../../src/blueprints/database/functions/index.ts", "../../../src/blueprints/database/blueprint.ts", "../../../src/blueprints/memory/functions/index.ts", "../../../src/blueprints/memory/blueprint.ts", "../../../src/blueprints/automation/blueprint.ts", "../../../src/blueprints/blueprint-manager/functions/index.ts", "../../../src/blueprints/blueprint-manager/blueprint.ts", "../../../src/blueprints/project-wizard/functions/index.ts", "../../../src/blueprints/project-wizard/blueprint.ts", "../../../src/functions/entity-extraction/definitions.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport * from './definitions';\n\nexport const MarkdownHandlers = OperationHandlerSet.lazy(\n () => import('./create'),\n () => import('./read'),\n () => import('./update'),\n);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint } from '@dxos/blueprints';\nimport { Ref } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\nimport { trim } from '@dxos/util';\n\nimport { Create, Read, Update } from './functions';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.markdown';\n\nconst instructions = trim`\n You read, write & create markdown documents.\n`;\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Markdown',\n description: 'Work with markdown documents.',\n agentCanEnable: true,\n instructions: {\n source: Ref.make(Text.make(instructions)),\n },\n tools: Blueprint.toolDefinitions({ operations: [Create, Read, Update] }),\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint } from '@dxos/blueprints';\nimport { Ref } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\nimport { trim } from '@dxos/util';\n\nimport { MarkdownCreate, MarkdownRead, MarkdownUpdate } from '../markdown';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.design';\n\nconst instructions = trim`\n You manage a design spec based on the conversation.\n The design spec is a markdown document that is used to record the tasks.\n The design spec document follows a hierarchical structure, with nested markdown bulleted sections.\n Use the appropriate tools to read and write the design spec document.\n Maintain the document so that it can convey all relevant points from the conversation.\n When replying to the user, be terse with your comments about design doc handling.\n Do not announce when you read or write the design spec document.\n`;\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Design Spec',\n description: 'Preserve the conversation in the design spec.',\n instructions: {\n source: Ref.make(Text.make(instructions)),\n },\n tools: Blueprint.toolDefinitions({ operations: [MarkdownCreate, MarkdownRead, MarkdownUpdate] }),\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport * from './definitions';\n\nexport const DiscordHandlers = OperationHandlerSet.lazy(() => import('./fetch-messages'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint } from '@dxos/blueprints';\nimport { Ref } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\nimport { trim } from '@dxos/util';\n\nimport { FetchMessages } from './functions';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.discord';\n\n/**\n * Agent prompt instructions for managing hierarchical task lists.\n */\nconst instructions = trim`\n You are able to fetch messages from Discord servers.\n\n Known servers:\n\n DXOS serverId: 837138313172353095\n`;\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Discord',\n description: 'Discord integration.',\n instructions: {\n source: Ref.make(Text.make(instructions)),\n },\n tools: Blueprint.toolDefinitions({ operations: [FetchMessages] }),\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport * from './definitions';\n\nexport const LinearHandlers = OperationHandlerSet.lazy(() => import('./sync-issues'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint } from '@dxos/blueprints';\nimport { Ref } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\nimport { trim } from '@dxos/util';\n\nimport { SyncIssues } from './functions';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.linear';\n\n/**\n * Agent prompt instructions for managing hierarchical task lists.\n */\nconst instructions = trim`\n You are able to sync Linear workspaces.\n Sometimes sync does not complete in one go and you need to call the function again.\n\n Known workspaces:\n\n DXOS teamId: 1127c63a-6f77-4725-9229-50f6cd47321c\n`;\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Linear',\n description: 'Syncs Linear workspaces.',\n instructions: {\n source: Ref.make(Text.make(instructions)),\n },\n tools: Blueprint.toolDefinitions({ operations: [SyncIssues] }),\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport * from './definitions';\n\nexport const PlanningHandlers = OperationHandlerSet.lazy(() => import('./update-tasks'));\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint } from '@dxos/blueprints';\n\nimport { UpdateTasks } from './functions';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.planning';\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Planning',\n description: 'Plans and tracks complex tasks with artifact management.',\n tools: Blueprint.toolDefinitions({ operations: [UpdateTasks] }),\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport * from './definitions';\n\nexport const ResearchHandlers = OperationHandlerSet.lazy(\n () => import('./document-create'),\n () => import('./research'),\n);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint } from '@dxos/blueprints';\nimport { Ref } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\nimport { trim } from '@dxos/util';\n\nimport { Research, DocumentCreate } from './functions';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.research';\n\n/**\n * Agent prompt instructions for managing hierarchical task lists.\n */\nconst instructions = trim`\n {{! Research }}\n\n You are an analyst that does research tasks using tools that scrape the web and create structured data.\n Structured data extraction is an experimental feature -- only enable it if the user explicitly requests it in the prompt.\n Prefer updating existing notes instead of creating new ones.\n\n <structured_mode>\n When you are done, reply with the created objects.\n Do not print the data, instead reply with inline references to the created objects.\n Those will be later substituted with the pills representing the created objects.\n Print the rest of the created objects as block references after the main note.\n\n <example>\n Based on my research, Google was founded by @dxn:queue:data:B6INSIBY3CBEF4M5VZRYBCMAHQMPYK5AJ:01K24XMVHSZHS97SG1VTVQDM5Z:01K24XPK464FSCKVQJAB2H662M and @dxn:queue:data:B6INSIBY3CBEF4M5VZRYBCMAHQMPYK5AJ:01K24XMVHSZHS97SG1VTVQDM5Z:01K24XPK46K31DDW62PBW9H2ZQ\n\n <object><dxn>dxn:queue:data:B6INSIBY3CBEF4M5VZRYBCMAHQMPYK5AJ:01K24XMVHSZHS97SG1VTVQDM5Z:01K24XPK464FSCKVQJAB2H662M</dxn></object>\n <object><dxn>dxn:queue:data:B6INSIBY3CBEF4M5VZRYBCMAHQMPYK5AJ:01K24XMVHSZHS97SG1VTVQDM5Z:01K24XPK46K31DDW62PBW9H2ZQ</dxn></object>\n <object><dxn>dxn:queue:data:B6INSIBY3CBEF4M5VZRYBCMAHQMPYK5AJ:01K24XMVHSZHS97SG1VTVQDM5Z:01K24XPK46K31DDW62PBW92333</dxn></object>\n </example>\n </structured_mode>\n\n <unstructured_mode>\n Reply normally with the text mode of the result of your research.\n </unstructured_mode>\n`;\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Research',\n description: 'Researches the web and creates structured data.',\n instructions: {\n source: Ref.make(Text.make(instructions)),\n },\n tools: Blueprint.toolDefinitions({ operations: [DocumentCreate, Research] }),\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport * from './definitions';\n\nexport const WebSearchHandlers = OperationHandlerSet.lazy(() => import('./fetch'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint } from '@dxos/blueprints';\nimport { Ref } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\n\nimport { Fetch } from './functions';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.web-search';\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Web Search',\n description: 'Search the web.',\n agentCanEnable: true,\n instructions: {\n source: Ref.make(Text.make()),\n },\n tools: Blueprint.toolDefinitions({ operations: [Fetch], tools: ['AnthropicWebSearch'] }),\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as AnthropicTool from '@effect/ai-anthropic/AnthropicTool';\nimport * as Toolkit from '@effect/ai/Toolkit';\nimport * as Layer from 'effect/Layer';\n\nimport { GenericToolkit } from '@dxos/ai';\n\nexport const WebSearchToolkit = Toolkit.make(AnthropicTool.WebSearch_20250305({}));\n\nexport const WebSearchToolkitGeneric = GenericToolkit.make(WebSearchToolkit, Layer.empty);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint } from '@dxos/blueprints';\nimport { Ref } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\nimport { trim } from '@dxos/util';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.browser';\n\nconst instructions = trim`\n You are able to connect and use a virtual browser with persistent session.\n Browser tools are provided via MCP.\n`;\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Browser',\n description: 'Access to a real isolated browser.',\n agentCanEnable: true,\n instructions: {\n source: Ref.make(Text.make(instructions)),\n },\n mcpServers: [\n {\n // https://dash.cloudflare.com/950816f3f59b079880a1ae33fb0ec320/workers/services/view/playwright-mcp-example/production\n url: 'https://playwright-mcp-example.dxos.workers.dev/sse',\n protocol: 'sse',\n },\n ],\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport * from './definitions';\n\nexport const DatabaseHandlers = OperationHandlerSet.lazy(\n () => import('./context-add'),\n () => import('./context-remove'),\n () => import('./load'),\n () => import('./object-create'),\n () => import('./object-delete'),\n () => import('./object-update'),\n () => import('./query'),\n () => import('./relation-create'),\n () => import('./relation-delete'),\n () => import('./schema-add'),\n () => import('./schema-list'),\n () => import('./tag-add'),\n () => import('./tag-remove'),\n);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint } from '@dxos/blueprints';\nimport { Ref } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\nimport { trim } from '@dxos/util';\n\nimport {\n Query,\n Load,\n ObjectCreate,\n ObjectUpdate,\n ObjectDelete,\n SchemaAdd,\n SchemaList,\n ContextAdd,\n ContextRemove,\n RelationCreate,\n RelationDelete,\n TagAdd,\n TagRemove,\n} from './functions';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.database';\n\nconst instructions = trim`\n You can query, create, update, and delete objects in ECHO.\n You can manage schemas, relations, tags, and add objects to the chat context.\n`;\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Database',\n description: 'Query and manipulate objects in the ECHO database.',\n agentCanEnable: true,\n instructions: {\n source: Ref.make(Text.make(instructions)),\n },\n tools: Blueprint.toolDefinitions({\n operations: [\n ContextAdd,\n ContextRemove,\n Load,\n ObjectCreate,\n ObjectDelete,\n ObjectUpdate,\n Query,\n RelationCreate,\n RelationDelete,\n SchemaAdd,\n SchemaList,\n TagAdd,\n TagRemove,\n ],\n }),\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport * from './definitions';\n\nexport const MemoryHandlers = OperationHandlerSet.lazy(\n () => import('./save'),\n () => import('./query'),\n () => import('./delete'),\n);\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint } from '@dxos/blueprints';\nimport { Ref } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\nimport { trim } from '@dxos/util';\n\nimport { QueryMemories, SaveMemory, DeleteMemory } from './functions';\n\nconst BLUEPRINT_KEY = 'dxos.org/blueprint/memory';\n\nconst instructions = trim`\n You have the ability to save and recall memories.\n Memories are persistent knowledge units stored in the database.\n Use memories to remember facts, user preferences, decisions, and any knowledge that should persist across conversations.\n\n When the user asks you to remember something, save it as a memory with a descriptive title.\n When the user asks about something you might have stored, query your memories first.\n You can also delete outdated or incorrect memories.\n`;\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Memory',\n description: 'Persistent memory storage and retrieval.',\n agentCanEnable: true,\n instructions: {\n source: Ref.make(Text.make(instructions)),\n },\n tools: Blueprint.toolDefinitions({ operations: [SaveMemory, QueryMemories, DeleteMemory] }),\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint } from '@dxos/blueprints';\nimport { Ref } from '@dxos/echo';\nimport { Trigger } from '@dxos/functions';\nimport { Operation } from '@dxos/operation';\nimport { Text } from '@dxos/schema';\nimport { trim } from '@dxos/util';\n\nconst BLUEPRINT_KEY = 'dxos.org/blueprint/automation';\n\nconst instructions = trim`\n Automation allows you to automatically initiate actions based on events.\n Automations are configured by creating a trigger that references a function.\n Whenever event that matches the trigger occurs, the function is invoked.\n\n ## Configuration\n\n Triggers are configured by the properties of the Trigger object.\n - enabled: Must be true for trigger to run.\n - spec: Events that the trigger matches.\n - function: Ref to a ${Operation.PersistentOperation.typename} object that will be invoked. Query the functions present in the space first, and reference them in the trigger.\n - input: The spec of the input data that will be passed to the function.\n\n ## Input patterns\n\n Input to the invoked function is defined by the input property of the Trigger object.\n It's an object that supports constants or template strings.\n\n Example:\n\n {\n item: '{{event.item}}',\n instructions: 'Summarize and perform entity-extraction'\n mailbox: { '/': 'dxn:echo:AAA:ZZZ' }\n }\n\n ## Trigger kinds\n\n - Timer: Triggered by a cron schedule.\n - Queue: Subscribes and processes items begginging to end.\n Note: queues are the same as feeds. The queue DXN should be of form: dxn:queue:data:<space-id>:<queue-id>.\n - Subscription: Subscribes and processes database items based on a query.\n\n Avoid: email and webhook triggers.\n\n ## Editing triggers\n\n Triggers are represented as objects of type ${Trigger.Trigger.typename}.\n You need access to the Database blueprint to manipulate triggers.\n Read trigger schema before manipulating triggers.\n Having a Trigger object in the database is enough to setup an automation. \n\n ## Examples\n\n Timer:\n\n {\n \"function\": { \"/\": \"dxn:echo:AAA:ZZZ\" },\n \"enabled\": true,\n \"spec\": {\n \"kind\": \"timer\",\n \"cron\": \"*/5 * * * *\"\n }\n }\n\n Queue:\n\n {\n \"function\": { \"/\": \"dxn:echo:AAA:ZZZ\" },\n \"enabled\": true,\n \"spec\": {\n \"kind\": \"queue\",\n \"queue\": \"dxn:queue:data:XXX:YYY\"\n }\n }\n\n Subscription:\n\n {\n \"function\": { \"/\": \"dxn:echo:AAA:ZZZ\" },\n \"enabled\": true,\n \"spec\": {\n \"kind\": \"subscription\",\n \"query\": { \"ast\": { \"type\": \"select\", \"filter\": { \"type\": \"object\", \"typename\": \"dxn:type:org.dxos.type.person\" } } }\n }\n }\n`;\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Triggers',\n description: 'Trigger management and automation.',\n instructions: {\n source: Ref.make(Text.make(instructions)),\n },\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport * from './definitions';\n\nexport const BlueprintManagerHandlers = OperationHandlerSet.lazy(\n () => import('./query-blueprints'),\n () => import('./enable-blueprints'),\n () => import('./update-blueprints'),\n);\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint, Template } from '@dxos/blueprints';\nimport { trim } from '@dxos/util';\n\nimport { EnableBlueprints, QueryBlueprints, UpdateBlueprints } from './functions';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.blueprint-manager';\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Blueprint Manager',\n description: 'Query and enable blueprints in the current conversation.',\n instructions: Template.make({\n source: trim`\n You can query available blueprints and enable them in the current conversation.\n Use [query-blueprints] to refresh the list of available blueprints.\n Use [refresh-blueprints] to update blueprint objects stored in the database from the built-in registry when they have drifted.\n Use [enable-blueprints] to enable blueprints by their keys. Always call [query-blueprints] first.\n Only blueprints with agentCanEnable=true can be enabled by the agent.\n\n <available_blueprints>\n {{#each blueprints}}\n - {{key}} \"{{name}}\"{{#if description}} -- {{description}}{{/if}}{{#if agentCanEnable}} [agent-can-enable]{{/if}}\n {{/each}}\n </available_blueprints>\n\n NOTE: You must enable the blueprint to use it, only then the tools from that blueprint will appear.\n `,\n inputs: [\n {\n name: 'blueprints',\n kind: 'function',\n function: QueryBlueprints.meta.key,\n },\n ],\n }),\n tools: Blueprint.toolDefinitions({ operations: [QueryBlueprints, EnableBlueprints, UpdateBlueprints] }),\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport * from './definitions';\n\nexport const ProjectWizardHandlers = OperationHandlerSet.lazy(\n () => import('./create-project'),\n () => import('./project-rules'),\n () => import('./sync-triggers'),\n);\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint, Template } from '@dxos/blueprints';\nimport { trim } from '@dxos/util';\n\nimport { ProjectRules, CreateProject, SyncTriggers } from './functions';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.project-wizard';\n\n/**\n * Creates the Project blueprint. This is a function to avoid circular dependency issues.\n */\n// TODO(dmaretskyi): Combine with Project Blueprint\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Project Wizard',\n description: 'Help the user create a new project.',\n agentCanEnable: true,\n instructions: Template.make({\n source: trim`\n You are a wizard that helps the user create a new project.\n\n Projects are goal oriented and autonomously driven by the agent.\n Each project has a spec - the goal of the project.\n The spec also typically describes what actions to perform in reaction to events (emails).\n The project has a number of associated artifacts to work with. \n Projects can subscribe to emails.\n\n The project itself is an ECHO object and can be edited like any other object using the database blueprint.\n You can edit the project's spec, name, and other properties directly.\n If you edit the project's subscriptions array, you MUST call the sync-triggers function afterward to synchronize the triggers.\n\n IMPORTANT: Before attempting to create a project call the [project-rules] tool to get the rules for creating a project.\n `,\n }),\n tools: Blueprint.toolDefinitions({ operations: [ProjectRules, CreateProject, SyncTriggers] }),\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { AiService } from '@dxos/ai';\nimport { Database, Obj } from '@dxos/echo';\nimport { FunctionInvocationService, QueueService, TracingService } from '@dxos/functions';\nimport { Trace } from '@dxos/functions';\nimport { Operation } from '@dxos/operation';\nimport { Message } from '@dxos/types';\n\nexport const EntityExtraction = Operation.make({\n meta: {\n key: 'org.dxos.functions.entity-extraction',\n name: 'Entity Extraction',\n description: 'Extracts entities from emails and transcripts.',\n },\n input: Schema.Struct({\n source: Message.Message.annotations({\n description: 'Email or transcript to extract entities from.',\n }),\n // TODO(dmaretskyi): Consider making this an array of blueprints instead.\n instructions: Schema.optional(Schema.String).annotations({\n description: 'Instructions extraction process.',\n }),\n }),\n output: Schema.Struct({\n entities: Schema.optional(\n Schema.Array(Obj.Unknown).annotations({\n description: 'Extracted entities.',\n }),\n ),\n }),\n services: [\n AiService.AiService,\n Database.Service,\n TracingService,\n FunctionInvocationService,\n QueueService,\n Trace.TraceService,\n ],\n});\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,2BAA2B;AAI7B,IAAMC,mBAAmBC,oBAAoBC,KAClD,MAAM,OAAO,uBAAA,GACb,MAAM,OAAO,qBAAA,GACb,MAAM,OAAO,uBAAA,CAAA;;;ACNf,SAASC,iBAAiB;AAC1B,SAASC,WAAW;AACpB,SAASC,YAAY;AACrB,SAASC,YAAY;AAIrB,IAAMC,gBAAgB;AAEtB,IAAMC,eAAeC;;;AAIrB,IAAMC,OAAO,MACXC,UAAUD,KAAK;EACbE,KAAKL;EACLM,MAAM;EACNC,aAAa;EACbC,gBAAgB;EAChBP,cAAc;IACZQ,QAAQC,IAAIP,KAAKQ,KAAKR,KAAKF,YAAAA,CAAAA;EAC7B;EACAW,OAAOR,UAAUS,gBAAgB;IAAEC,YAAY;MAACC;MAAQC;MAAMC;;EAAQ,CAAA;AACxE,CAAA;AAEF,IAAMC,YAAiD;EACrDb,KAAKL;EACLG;AACF;AAEA,IAAA,oBAAee;;;AC9Bf,SAASC,aAAAA,kBAAiB;AAC1B,SAASC,OAAAA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,cAAO;IACnBC,QAAQC,QAAQA,QAAQC,YAAY;MAClCL,aAAa;IACf,CAAA;;IAEAM,cAAqBC,gBAAgBC,aAAM,EAAEH,YAAY;MACvDL,aAAa;IACf,CAAA;EACF,CAAA;EACAS,QAAeP,cAAO;IACpBQ,UAAiBH,gBACRI,aAAMC,IAAIC,OAAO,EAAER,YAAY;MACpCL,aAAa;IACf,CAAA,CAAA;EAEJ,CAAA;EACAc,UAAU;IACRC,UAAUA;IACVC,SAASC;IACTC;IACAC;IACAC;IACAC,MAAMC;;AAEV,CAAA;",
|
|
6
|
-
"names": ["OperationHandlerSet", "MarkdownHandlers", "OperationHandlerSet", "lazy", "Blueprint", "Ref", "Text", "trim", "BLUEPRINT_KEY", "instructions", "trim", "make", "Blueprint", "key", "name", "description", "agentCanEnable", "source", "Ref", "Text", "tools", "toolDefinitions", "operations", "Create", "Read", "Update", "blueprint", "Blueprint", "Ref", "Text", "trim", "BLUEPRINT_KEY", "instructions", "trim", "make", "Blueprint", "key", "name", "description", "source", "Ref", "Text", "tools", "toolDefinitions", "operations", "MarkdownCreate", "MarkdownRead", "MarkdownUpdate", "blueprint", "blueprint_default", "OperationHandlerSet", "DiscordHandlers", "OperationHandlerSet", "lazy", "Blueprint", "Ref", "Text", "trim", "BLUEPRINT_KEY", "instructions", "trim", "make", "Blueprint", "key", "name", "description", "source", "Ref", "Text", "tools", "toolDefinitions", "operations", "FetchMessages", "blueprint", "blueprint_default", "OperationHandlerSet", "LinearHandlers", "OperationHandlerSet", "lazy", "Blueprint", "Ref", "Text", "trim", "BLUEPRINT_KEY", "instructions", "trim", "make", "Blueprint", "key", "name", "description", "source", "Ref", "Text", "tools", "toolDefinitions", "operations", "SyncIssues", "blueprint", "blueprint_default", "OperationHandlerSet", "PlanningHandlers", "OperationHandlerSet", "lazy", "Blueprint", "BLUEPRINT_KEY", "make", "Blueprint", "key", "name", "description", "tools", "toolDefinitions", "operations", "UpdateTasks", "blueprint", "blueprint_default", "OperationHandlerSet", "ResearchHandlers", "OperationHandlerSet", "lazy", "Blueprint", "Ref", "Text", "trim", "BLUEPRINT_KEY", "instructions", "trim", "make", "Blueprint", "key", "name", "description", "source", "Ref", "Text", "tools", "toolDefinitions", "operations", "DocumentCreate", "Research", "blueprint", "blueprint_default", "OperationHandlerSet", "WebSearchHandlers", "OperationHandlerSet", "lazy", "Blueprint", "Ref", "Text", "BLUEPRINT_KEY", "make", "Blueprint", "key", "name", "description", "agentCanEnable", "instructions", "source", "Ref", "Text", "tools", "toolDefinitions", "operations", "Fetch", "blueprint", "blueprint_default", "AnthropicTool", "Toolkit", "Layer", "GenericToolkit", "WebSearchToolkit", "make", "WebSearch_20250305", "WebSearchToolkitGeneric", "GenericToolkit", "empty", "Blueprint", "Ref", "Text", "trim", "BLUEPRINT_KEY", "instructions", "trim", "make", "Blueprint", "key", "name", "description", "agentCanEnable", "source", "Ref", "Text", "mcpServers", "url", "protocol", "blueprint", "blueprint_default", "OperationHandlerSet", "DatabaseHandlers", "OperationHandlerSet", "lazy", "Blueprint", "Ref", "Text", "trim", "BLUEPRINT_KEY", "instructions", "trim", "make", "Blueprint", "key", "name", "description", "agentCanEnable", "source", "Ref", "Text", "tools", "toolDefinitions", "operations", "ContextAdd", "ContextRemove", "Load", "ObjectCreate", "ObjectDelete", "ObjectUpdate", "Query", "RelationCreate", "RelationDelete", "SchemaAdd", "SchemaList", "TagAdd", "TagRemove", "blueprint", "blueprint_default", "OperationHandlerSet", "MemoryHandlers", "OperationHandlerSet", "lazy", "Blueprint", "Ref", "Text", "trim", "BLUEPRINT_KEY", "instructions", "trim", "make", "Blueprint", "key", "name", "description", "agentCanEnable", "source", "Ref", "Text", "tools", "toolDefinitions", "operations", "SaveMemory", "QueryMemories", "DeleteMemory", "blueprint", "blueprint_default", "Blueprint", "Ref", "Trigger", "Operation", "Text", "trim", "BLUEPRINT_KEY", "instructions", "trim", "Operation", "PersistentOperation", "typename", "Trigger", "make", "Blueprint", "key", "name", "description", "source", "Ref", "Text", "blueprint", "blueprint_default", "OperationHandlerSet", "BlueprintManagerHandlers", "OperationHandlerSet", "lazy", "Blueprint", "Template", "trim", "BLUEPRINT_KEY", "make", "Blueprint", "key", "name", "description", "instructions", "Template", "source", "trim", "inputs", "kind", "function", "QueryBlueprints", "meta", "tools", "toolDefinitions", "operations", "EnableBlueprints", "UpdateBlueprints", "blueprint", "blueprint_default", "OperationHandlerSet", "ProjectWizardHandlers", "OperationHandlerSet", "lazy", "Blueprint", "Template", "trim", "BLUEPRINT_KEY", "make", "Blueprint", "key", "name", "description", "agentCanEnable", "instructions", "Template", "source", "trim", "tools", "toolDefinitions", "operations", "ProjectRules", "CreateProject", "SyncTriggers", "blueprint", "blueprint_default", "Schema", "AiService", "Database", "Obj", "FunctionInvocationService", "QueueService", "TracingService", "Trace", "Operation", "Message", "EntityExtraction", "Operation", "make", "meta", "key", "name", "description", "input", "Struct", "source", "Message", "annotations", "instructions", "optional", "String", "output", "entities", "Array", "Obj", "Unknown", "services", "AiService", "Database", "Service", "TracingService", "FunctionInvocationService", "QueueService", "Trace", "TraceService"]
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/blueprints/discord/functions/definitions.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { CredentialsService, TracingService } from '@dxos/functions';\nimport { Operation } from '@dxos/operation';\n\n// TODO(dmaretskyi): Extract.\nconst TimeRangeSchema = Schema.String.pipe(Schema.pattern(/\\d+(s|m|h|d)/)).annotations({\n description: 'Time range. 1d - 1 day, 2h - 2 hours, 30m - 30 minutes, 15s - 15 seconds.',\n examples: ['1d', '2h', '30m', '15s'],\n});\n\nexport const TimeRange = Object.assign(TimeRangeSchema, {\n toSeconds(timeRange: string) {\n const match = timeRange.match(/(\\d+)(s|m|h|d)/);\n if (!match) {\n throw new Error(`Invalid time range: ${timeRange}`);\n }\n const [_, amount, unit] = match;\n switch (unit) {\n case 's':\n return Number(amount);\n case 'm':\n return Number(amount) * 60;\n case 'h':\n return Number(amount) * 60 * 60;\n case 'd':\n return Number(amount) * 24 * 60 * 60;\n default:\n throw new Error(`Invalid time range unit: ${unit}`);\n }\n },\n});\n\nexport const FetchMessages = Operation.make({\n meta: {\n key: 'org.dxos.function.fetch-discord-messages',\n name: 'Sync Discord messages',\n },\n input: Schema.Struct({\n serverId: Schema.String.annotations({\n description: 'The ID of the server to fetch messages from.',\n }),\n channelId: Schema.optional(Schema.String).annotations({\n description:\n 'The ID of the channel to fetch messages from. Will crawl all channels from the server if not specified.',\n }),\n after: Schema.optional(Schema.Number).annotations({\n description:\n 'Fetch messages that were sent after a given date. Unix timestamp in seconds. Exclusive with `last`.',\n }),\n last: TimeRange.annotations({\n description:\n 'Time range to fetch most recent messages. Specifies the range in the past, from now. \"1d\" would fetch messages from the last 24 hours.',\n }),\n limit: Schema.optional(Schema.Number).annotations({\n description: 'The maximum number of messages to fetch.',\n }),\n pageSize: Schema.optional(Schema.Number).annotations({\n description: 'The number of messages to fetch per page.',\n }),\n ignoreUsernames: Schema.optional(Schema.Array(Schema.String)).annotations({\n description: 'Exclude messages from these usernames.',\n }),\n }),\n output: Schema.Any,\n services: [CredentialsService, TracingService],\n});\n"],
|
|
5
|
-
"mappings": ";AAIA,YAAYA,YAAY;AAExB,SAASC,oBAAoBC,sBAAsB;AACnD,SAASC,iBAAiB;AAG1B,IAAMC,kBAAyBC,cAAOC,KAAYC,eAAQ,cAAA,CAAA,EAAiBC,YAAY;EACrFC,aAAa;EACbC,UAAU;IAAC;IAAM;IAAM;IAAO;;AAChC,CAAA;AAEO,IAAMC,YAAYC,OAAOC,OAAOT,iBAAiB;EACtDU,UAAUC,WAAiB;AACzB,UAAMC,QAAQD,UAAUC,MAAM,gBAAA;AAC9B,QAAI,CAACA,OAAO;AACV,YAAM,IAAIC,MAAM,uBAAuBF,SAAAA,EAAW;IACpD;AACA,UAAM,CAACG,GAAGC,QAAQC,IAAAA,IAAQJ;AAC1B,YAAQI,MAAAA;MACN,KAAK;AACH,eAAOC,OAAOF,MAAAA;MAChB,KAAK;AACH,eAAOE,OAAOF,MAAAA,IAAU;MAC1B,KAAK;AACH,eAAOE,OAAOF,MAAAA,IAAU,KAAK;MAC/B,KAAK;AACH,eAAOE,OAAOF,MAAAA,IAAU,KAAK,KAAK;MACpC;AACE,cAAM,IAAIF,MAAM,4BAA4BG,IAAAA,EAAM;IACtD;EACF;AACF,CAAA;AAEO,IAAME,gBAAgBC,UAAUC,KAAK;EAC1CC,MAAM;IACJC,KAAK;IACLC,MAAM;EACR;EACAC,OAAcC,cAAO;IACnBC,UAAiBzB,cAAOG,YAAY;MAClCC,aAAa;IACf,CAAA;IACAsB,WAAkBC,gBAAgB3B,aAAM,EAAEG,YAAY;MACpDC,aACE;IACJ,CAAA;IACAwB,OAAcD,gBAAgBX,aAAM,EAAEb,YAAY;MAChDC,aACE;IACJ,CAAA;IACAyB,MAAMvB,UAAUH,YAAY;MAC1BC,aACE;IACJ,CAAA;IACA0B,OAAcH,gBAAgBX,aAAM,EAAEb,YAAY;MAChDC,aAAa;IACf,CAAA;IACA2B,UAAiBJ,gBAAgBX,aAAM,EAAEb,YAAY;MACnDC,aAAa;IACf,CAAA;IACA4B,iBAAwBL,gBAAgBM,aAAajC,aAAM,CAAA,EAAGG,YAAY;MACxEC,aAAa;IACf,CAAA;EACF,CAAA;EACA8B,QAAeC;EACfC,UAAU;IAACC;IAAoBC;;AACjC,CAAA;",
|
|
6
|
-
"names": ["Schema", "CredentialsService", "TracingService", "Operation", "TimeRangeSchema", "String", "pipe", "pattern", "annotations", "description", "examples", "TimeRange", "Object", "assign", "toSeconds", "timeRange", "match", "Error", "_", "amount", "unit", "Number", "FetchMessages", "Operation", "make", "meta", "key", "name", "input", "Struct", "serverId", "channelId", "optional", "after", "last", "limit", "pageSize", "ignoreUsernames", "Array", "output", "Any", "services", "CredentialsService", "TracingService"]
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/blueprints/database/functions/definitions.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { AiContextService } from '@dxos/assistant';\nimport { Database, Obj, Ref, Relation, Tag } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\nimport { trim } from '@dxos/util';\n\nexport const Query = Operation.make({\n meta: {\n key: 'org.dxos.function.database.query',\n name: 'Query',\n description: trim`\n Query for objects in ECHO.\n Use this tool when searching for information in the space (both automerge and queues).\n Currently, two types of queries are supported:\n - Full-text search - terms may appear anywhere in the object.\n - Type-based search - objects of a specific type.\n You can use them together, for example, to search for objects of a specific type that match a full-text query.\n Important: Whem querying by typename, make sure to list the schema first, to get the exact typename.\n\n Omit both typename and text to search for all objects.\n\n <output_format>\n You can choose to either return the full object data, or just the DXN, type and label.\n When expecting a lot of results, run with includeContent=false to not pollute the context, and then load specific objects using the load tool.\n\n You can choose to get the content right away, if you don't expect a lot of results.\n To load content right away, run with includeContent=true.\n When loading content, set an appropriate limit on the number of results to avoid overwhelming the context.\n </output_format>\n\n <example description=\"All tasks related to Cyberdyne and Bob\">\n {\n \"typename\": \"org.dxos.type.task\",\n \"text\": \"cyberdyne bob\",\n }\n </example>\n\n <example description=\"Financial report Q1 2026\">\n {\n \"typename\": \"org.dxos.type.document\",\n \"text\": \"financial report Q1 2026\",\n \"includeContent\": true\n \"limit\": 3\n }\n </example>\n `,\n },\n input: Schema.Struct({\n typename: Schema.optional(\n Schema.String.annotations({\n description: 'The typename of the objects to list.',\n example: 'org.dxos.type.task',\n }),\n ),\n text: Schema.optional(\n Schema.String.annotations({\n description: 'Full text search query.',\n example: 'email cyberdyne bob',\n }),\n ),\n includeContent: Schema.optional(\n Schema.Boolean.annotations({\n description: 'Include the full object data in the response.',\n default: false,\n }),\n ),\n limit: Schema.optional(\n Schema.Number.annotations({\n description: 'The maximum number of results to return.',\n default: 10,\n }),\n ),\n includeQueues: Schema.optional(\n Schema.Boolean.annotations({\n description: 'Search in queues as well as spaces. Only use this if searching for emails.',\n default: false,\n }),\n ),\n }),\n output: Schema.Array(Schema.Unknown),\n services: [Database.Service],\n});\n\nexport const Load = Operation.make({\n meta: {\n key: 'org.dxos.function.database.load',\n name: 'Load object',\n description: trim`\n Loads the object or relation content.\n Can load multiple objects at at time.\n Use the to read the data when you have a DXN.\n Call this tool with an array of one or more DXNs or object IDs.\n When use see a reference ({ '/': 'dxn:...' }), you can call this function to load the object.\n Note that returned data is only a snapshot in time, and might have changed since the object was last loaded.\n `,\n },\n input: Schema.Struct({\n refs: Schema.Array(Ref.Ref(Obj.Unknown)),\n }),\n output: Schema.Unknown,\n services: [Database.Service],\n});\n\nexport const ObjectCreate = Operation.make({\n meta: {\n key: 'org.dxos.function.database.object-create',\n name: 'Create object',\n description: trim`\n Creates a new object and adds it to the current space.\n Get the schema from the schema-list tool and ensure that the data matches the corresponding schema.\n References are provided in the following format: { \"/\": \"dxn:...\" }.\n Reference examples: { \"/\": \"dxn:echo:@:01KG7R1ZXWFMWQ4DA1Q6TN1DG4\" }, { \"/\": \"dxn:queue:data:01KG7R1ZXWFMWQ4DA1Q6TN1DG4:01KG7R1ZXWFMWQ4DA1Q6TN1DG4\" }\n `,\n },\n input: Schema.Struct({\n typename: Schema.String,\n data: Schema.Any,\n }),\n output: Schema.Unknown,\n services: [Database.Service],\n});\n\nexport const ObjectUpdate = Operation.make({\n meta: {\n key: 'org.dxos.function.database.object-update',\n name: 'Update object',\n description: trim`\n Updates the object properties.\n References are provided in the following format: { \"/\": \"dxn:...\" }.\n Reference examples: { \"/\": \"dxn:echo:@:01KG7R1ZXWFMWQ4DA1Q6TN1DG4\" }, { \"/\": \"dxn:queue:data:01KG7R1ZXWFMWQ4DA1Q6TN1DG4:01KG7R1ZXWFMWQ4DA1Q6TN1DG4\" }\n `,\n },\n input: Schema.Struct({\n obj: Ref.Ref(Obj.Unknown),\n properties: Schema.Record({ key: Schema.String, value: Schema.Any }),\n }),\n output: Schema.Unknown,\n services: [Database.Service],\n});\n\nexport const ObjectDelete = Operation.make({\n meta: {\n key: 'org.dxos.function.database.object-delete',\n name: 'Delete object',\n description: trim`\n Deletes the object.\n `,\n },\n input: Schema.Struct({\n obj: Ref.Ref(Obj.Unknown),\n }),\n output: Schema.Void,\n services: [Database.Service],\n});\n\nexport const SchemaAdd = Operation.make({\n meta: {\n key: 'org.dxos.function.database.schema-add',\n name: 'Add schema',\n description: trim`\n Adds a schema to the space.\n The name will be used when displayed to the user.\n `,\n },\n input: Schema.Struct({\n name: Schema.String,\n typename: Schema.String.annotations({\n description: 'The typename of the schema in the format of \"com.example.type.type\".',\n }),\n jsonSchema: Schema.Any,\n }),\n output: Schema.Void,\n services: [Database.Service],\n});\n\nexport const SchemaList = Operation.make({\n meta: {\n key: 'org.dxos.function.database.schema-list',\n name: 'List schemas',\n description: trim`\n Lists schemas definitions.\n `,\n },\n input: Schema.Struct({\n limit: Schema.optional(Schema.Number),\n }),\n output: Schema.Array(Schema.Unknown),\n services: [Database.Service],\n});\n\nexport const ContextAdd = Operation.make({\n meta: {\n key: 'org.dxos.function.database.context-add',\n name: 'Add to context',\n description: trim`\n Adds the object to the chat context.\n Use this it for objects that are useful long-term for the conversation.\n `,\n },\n input: Schema.Struct({\n obj: Ref.Ref(Obj.Unknown).annotations({\n description: 'Object to add to the chat context.',\n }),\n }),\n output: Schema.Void,\n services: [AiContextService],\n});\n\nexport const ContextRemove = Operation.make({\n meta: {\n key: 'org.dxos.function.database.context-remove',\n name: 'Remove from context',\n description: trim`\n Removes the object from the chat context.\n Use this it for objects that are no longer useful for the conversation.\n `,\n },\n input: Schema.Struct({\n obj: Ref.Ref(Obj.Unknown).annotations({\n description: 'Object to remove from the chat context.',\n }),\n }),\n output: Schema.Void,\n services: [AiContextService],\n});\n\nexport const RelationCreate = Operation.make({\n meta: {\n key: 'org.dxos.function.database.relation-create',\n name: 'Create relation',\n description: trim`\n Creates a new relation and adds it to the current space.\n Get the schema from the schema-list tool and ensure that the data matches the corresponding schema.\n `,\n },\n input: Schema.Struct({\n typename: Schema.String,\n source: Ref.Ref(Obj.Unknown),\n target: Ref.Ref(Obj.Unknown),\n properties: Schema.Any.annotations({\n description: 'The data to be stored in the relation.',\n }),\n }),\n output: Schema.Unknown,\n services: [Database.Service],\n});\n\nexport const RelationDelete = Operation.make({\n meta: {\n key: 'org.dxos.function.database.relation-delete',\n name: 'Delete relation',\n description: trim`\n Deletes the relation.\n `,\n },\n input: Schema.Struct({\n rel: Ref.Ref(Relation.Unknown),\n }),\n output: Schema.Void,\n services: [Database.Service],\n});\n\nexport const TagAdd = Operation.make({\n meta: {\n key: 'org.dxos.function.database.tag-add',\n name: 'Add tag',\n description: trim`\n Adds a tag to an object.\n Tags are objects of type ${Tag.Tag.typename}.\n You must search database for available tags, or create a new one.\n `,\n },\n input: Schema.Struct({\n tag: Ref.Ref(Obj.Unknown),\n obj: Ref.Ref(Obj.Unknown),\n }),\n output: Schema.Unknown,\n services: [Database.Service],\n});\n\nexport const TagRemove = Operation.make({\n meta: {\n key: 'org.dxos.function.database.tag-remove',\n name: 'Remove tag',\n description: trim`\n Removes a tag from an object.\n Tags are objects of type ${Tag.Tag.typename}.\n `,\n },\n input: Schema.Struct({\n tag: Ref.Ref(Obj.Unknown),\n obj: Ref.Ref(Obj.Unknown),\n }),\n output: Schema.Unknown,\n services: [Database.Service],\n});\n"],
|
|
5
|
-
"mappings": ";AAIA,YAAYA,YAAY;AAExB,SAASC,wBAAwB;AACjC,SAASC,UAAUC,KAAKC,KAAKC,UAAUC,WAAW;AAClD,SAASC,iBAAiB;AAC1B,SAASC,YAAY;AAEd,IAAMC,QAAQC,UAAUC,KAAK;EAClCC,MAAM;IACJC,KAAK;IACLC,MAAM;IACNC,aAAaC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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operation", "trim", "Query", "Operation", "make", "meta", "key", "name", "description", "trim", "input", "Struct", "typename", "optional", "String", "annotations", "example", "text", "includeContent", "Boolean", "default", "limit", "Number", "includeQueues", "output", "Array", "Unknown", "services", "Database", "Service", "Load", "refs", "Ref", "Obj", "ObjectCreate", "data", "Any", "ObjectUpdate", "obj", "properties", "Record", "value", "ObjectDelete", "Void", "SchemaAdd", "jsonSchema", "SchemaList", "ContextAdd", "AiContextService", "ContextRemove", "RelationCreate", "source", "target", "RelationDelete", "rel", "Relation", "TagAdd", "Tag", "tag", "TagRemove"]
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/blueprints/project/functions/definitions.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2026 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { AiService, GenericToolkit } from '@dxos/ai';\nimport { AiContextService } from '@dxos/assistant';\nimport { Database, Feed, Obj, Ref } from '@dxos/echo';\nimport { QueueService, TracingService, TriggerEvent } from '@dxos/functions';\nimport { Trace } from '@dxos/functions';\nimport { Operation, OperationRegistry } from '@dxos/operation';\n\nimport { Project } from '../../../types';\n\nexport const Agent = Operation.make({\n meta: {\n key: 'org.dxos.function.project.agent',\n name: 'Project Agent',\n description: 'Agentic worker that drives the project autonomously.',\n },\n input: Schema.Struct({\n project: Schema.suspend(() => Ref.Ref(Project.Project)),\n prompt: Schema.optional(Schema.String),\n event: Schema.optional(TriggerEvent.TriggerEvent),\n }),\n output: Schema.Void,\n services: [\n AiService.AiService,\n Database.Service,\n QueueService,\n Feed.FeedService,\n OperationRegistry.Service,\n // @deprecated TracingService kept for backward compat with tool handlers.\n TracingService,\n Trace.TraceService,\n GenericToolkit.GenericToolkitProvider,\n ],\n});\n\nexport const Qualifier = Operation.make({\n meta: {\n key: 'org.dxos.function.project.qualifier',\n name: 'Project Qualifier',\n description:\n 'Qualifier that determines if the event is relevant to the project. Puts the data into the input queue of the project.',\n },\n input: Schema.Struct({\n project: Schema.suspend(() => Ref.Ref(Project.Project)),\n event: TriggerEvent.TriggerEvent,\n }),\n output: Schema.Void,\n services: [AiService.AiService, Database.Service],\n});\n\nexport const GetContext = Operation.make({\n meta: {\n key: 'org.dxos.function.project.get-context',\n name: 'Get Project Context',\n description: 'Get the context of an project.',\n },\n input: Schema.Struct({}),\n output: Schema.Struct({\n id: Schema.String,\n name: Schema.String,\n spec: Schema.String,\n plan: Schema.String,\n artifacts: Schema.Array(\n Schema.Struct({\n name: Schema.String,\n type: Schema.optional(Schema.String),\n dxn: Schema.optional(Schema.String),\n }),\n ),\n }),\n services: [AiContextService, Database.Service],\n});\n\nexport const AddArtifact = Operation.make({\n meta: {\n key: 'org.dxos.function.project.add-artifact',\n name: 'Add artifact',\n description: 'Adds a new artifact.',\n },\n input: Schema.Struct({\n name: Schema.String.annotations({\n description: 'The name of the artifact to add.',\n }),\n artifact: Ref.Ref(Obj.Unknown).annotations({\n description: 'The artifact to add. Do NOT guess or try to generate the ID.',\n }),\n }),\n output: Schema.Void,\n services: [AiContextService, Database.Service],\n});\n"],
|
|
5
|
-
"mappings": ";;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,WAAWC,sBAAsB;AAC1C,SAASC,wBAAwB;AACjC,SAASC,UAAUC,MAAMC,KAAKC,WAAW;AACzC,SAASC,cAAcC,gBAAgBC,oBAAoB;AAC3D,SAASC,aAAa;AACtB,SAASC,WAAWC,yBAAyB;AAItC,IAAMC,QAAQC,UAAUC,KAAK;EAClCC,MAAM;IACJC,KAAK;IACLC,MAAM;IACNC,aAAa;EACf;EACAC,OAAcC,cAAO;IACnBC,SAAgBC,eAAQ,MAAMC,IAAIA,IAAIC,gBAAQA,OAAO,CAAA;IACrDC,QAAeC,gBAAgBC,aAAM;IACrCC,OAAcF,gBAASG,aAAaA,YAAY;EAClD,CAAA;EACAC,QAAeC;EACfC,UAAU;IACRC,UAAUA;IACVC,SAASC;IACTC;IACAC,KAAKC;IACLC,kBAAkBJ;;IAElBK;IACAC,MAAMC;IACNC,eAAeC;;AAEnB,CAAA;AAEO,IAAMC,YAAYhC,UAAUC,KAAK;EACtCC,MAAM;IACJC,KAAK;IACLC,MAAM;IACNC,aACE;EACJ;EACAC,OAAcC,cAAO;IACnBC,SAAgBC,eAAQ,MAAMC,IAAIA,IAAIC,gBAAQA,OAAO,CAAA;IACrDI,OAAOC,aAAaA;EACtB,CAAA;EACAC,QAAeC;EACfC,UAAU;IAACC,UAAUA;IAAWC,SAASC;;AAC3C,CAAA;AAEO,IAAMW,aAAajC,UAAUC,KAAK;EACvCC,MAAM;IACJC,KAAK;IACLC,MAAM;IACNC,aAAa;EACf;EACAC,OAAcC,cAAO,CAAC,CAAA;EACtBU,QAAeV,cAAO;IACpB2B,IAAWpB;IACXV,MAAaU;IACbqB,MAAarB;IACbsB,MAAatB;IACbuB,WAAkBC,aACT/B,cAAO;MACZH,MAAaU;MACbyB,MAAa1B,gBAAgBC,aAAM;MACnC0B,KAAY3B,gBAAgBC,aAAM;IACpC,CAAA,CAAA;EAEJ,CAAA;EACAK,UAAU;IAACsB;IAAkBpB,SAASC;;AACxC,CAAA;AAEO,IAAMoB,cAAc1C,UAAUC,KAAK;EACxCC,MAAM;IACJC,KAAK;IACLC,MAAM;IACNC,aAAa;EACf;EACAC,OAAcC,cAAO;IACnBH,MAAaU,cAAO6B,YAAY;MAC9BtC,aAAa;IACf,CAAA;IACAuC,UAAUlC,IAAIA,IAAImC,IAAIC,OAAO,EAAEH,YAAY;MACzCtC,aAAa;IACf,CAAA;EACF,CAAA;EACAY,QAAeC;EACfC,UAAU;IAACsB;IAAkBpB,SAASC;;AACxC,CAAA;",
|
|
6
|
-
"names": ["Schema", "AiService", "GenericToolkit", "AiContextService", "Database", "Feed", "Obj", "Ref", "QueueService", "TracingService", "TriggerEvent", "Trace", "Operation", "OperationRegistry", "Agent", "Operation", "make", "meta", "key", "name", "description", "input", "Struct", "project", "suspend", "Ref", "Project", "prompt", "optional", "String", "event", "TriggerEvent", "output", "Void", "services", "AiService", "Database", "Service", "QueueService", "Feed", "FeedService", "OperationRegistry", "TracingService", "Trace", "TraceService", "GenericToolkit", "GenericToolkitProvider", "Qualifier", "GetContext", "id", "spec", "plan", "artifacts", "Array", "type", "dxn", "AiContextService", "AddArtifact", "annotations", "artifact", "Obj", "Unknown"]
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/blueprints/memory/functions/definitions.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2026 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Database, Ref } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\n\nimport { Memory } from '../../../types/Memory';\n\nexport const QueryMemories = Operation.make({\n meta: {\n key: 'org.dxos.function.memory.query',\n name: 'Query memories',\n description:\n 'Search for stored memories using full-text search. Returns memories matching the query terms. Use this to recall previously saved knowledge, facts, or preferences.',\n },\n input: Schema.Struct({\n text: Schema.optional(\n Schema.String.annotations({\n description: 'Full-text search query. Omit to list all memories.',\n examples: ['new york trip date plan', 'favorite color', 'project cyberdyne'],\n }),\n ),\n limit: Schema.optional(\n Schema.Number.annotations({\n description: 'Maximum number of results to return.',\n default: 10,\n }),\n ),\n }),\n output: Schema.Array(Schema.Unknown),\n services: [Database.Service],\n});\n\nexport const SaveMemory = Operation.make({\n meta: {\n key: 'org.dxos.function.memory.save',\n name: 'Save memory',\n description:\n 'Saves a new memory to the database. Use this to persist knowledge, facts, preferences, or any information that should be remembered across conversations.',\n },\n input: Schema.Struct({\n title: Schema.String.annotations({\n description: 'Short descriptive title for the memory.',\n }),\n content: Schema.String.annotations({\n description:\n 'The content of the memory. Can be a fact, preference, instruction, or any knowledge worth persisting.',\n }),\n }),\n output: Schema.Unknown,\n services: [Database.Service],\n});\n\nexport const DeleteMemory = Operation.make({\n meta: {\n key: 'org.dxos.function.memory.delete',\n name: 'Delete memory',\n description: 'Deletes a memory from the database. Use this to remove outdated or incorrect memories.',\n },\n input: Schema.Struct({\n memory: Ref.Ref(Memory),\n }),\n output: Schema.Void,\n services: [Database.Service],\n});\n"],
|
|
5
|
-
"mappings": ";;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,UAAUC,WAAW;AAC9B,SAASC,iBAAiB;AAInB,IAAMC,gBAAgBC,UAAUC,KAAK;EAC1CC,MAAM;IACJC,KAAK;IACLC,MAAM;IACNC,aACE;EACJ;EACAC,OAAcC,cAAO;IACnBC,MAAaC,gBACJC,cAAOC,YAAY;MACxBN,aAAa;MACbO,UAAU;QAAC;QAA2B;QAAkB;;IAC1D,CAAA,CAAA;IAEFC,OAAcJ,gBACLK,cAAOH,YAAY;MACxBN,aAAa;MACbU,SAAS;IACX,CAAA,CAAA;EAEJ,CAAA;EACAC,QAAeC,aAAaC,cAAO;EACnCC,UAAU;IAACC,SAASC;;AACtB,CAAA;AAEO,IAAMC,aAAatB,UAAUC,KAAK;EACvCC,MAAM;IACJC,KAAK;IACLC,MAAM;IACNC,aACE;EACJ;EACAC,OAAcC,cAAO;IACnBgB,OAAcb,cAAOC,YAAY;MAC/BN,aAAa;IACf,CAAA;IACAmB,SAAgBd,cAAOC,YAAY;MACjCN,aACE;IACJ,CAAA;EACF,CAAA;EACAW,QAAeE;EACfC,UAAU;IAACC,SAASC;;AACtB,CAAA;AAEO,IAAMI,eAAezB,UAAUC,KAAK;EACzCC,MAAM;IACJC,KAAK;IACLC,MAAM;IACNC,aAAa;EACf;EACAC,OAAcC,cAAO;IACnBmB,QAAQC,IAAIA,IAAIC,MAAAA;EAClB,CAAA;EACAZ,QAAea;EACfV,UAAU;IAACC,SAASC;;AACtB,CAAA;",
|
|
6
|
-
"names": ["Schema", "Database", "Ref", "Operation", "QueryMemories", "Operation", "make", "meta", "key", "name", "description", "input", "Struct", "text", "optional", "String", "annotations", "examples", "limit", "Number", "default", "output", "Array", "Unknown", "services", "Database", "Service", "SaveMemory", "title", "content", "DeleteMemory", "memory", "Ref", "Memory", "Void"]
|
|
7
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
// src/sync/sync.ts
|
|
2
|
-
import * as Effect from "effect/Effect";
|
|
3
|
-
import { Filter, Obj, Query, Ref } from "@dxos/echo";
|
|
4
|
-
import { Database } from "@dxos/echo";
|
|
5
|
-
import { failedInvariant } from "@dxos/invariant";
|
|
6
|
-
import { log } from "@dxos/log";
|
|
7
|
-
var __dxlog_file = "/__w/dxos/dxos/packages/core/assistant-toolkit/src/sync/sync.ts";
|
|
8
|
-
var syncObjects = Effect.fn("syncObjects")(function* (objs, { foreignKeyId }) {
|
|
9
|
-
return yield* Effect.forEach(objs, Effect.fnUntraced(function* (obj) {
|
|
10
|
-
for (const key of Object.keys(obj)) {
|
|
11
|
-
if (typeof key !== "string" || key === "id") continue;
|
|
12
|
-
if (!Ref.isRef(obj[key])) continue;
|
|
13
|
-
const ref = obj[key];
|
|
14
|
-
if (!ref.target) continue;
|
|
15
|
-
if (Obj.getDXN(ref.target).isLocalObjectId()) {
|
|
16
|
-
const [target] = yield* syncObjects([
|
|
17
|
-
ref.target
|
|
18
|
-
], {
|
|
19
|
-
foreignKeyId
|
|
20
|
-
});
|
|
21
|
-
obj[key] = Ref.make(target);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
const schema = Obj.getSchema(obj) ?? failedInvariant("No schema.");
|
|
25
|
-
const foreignId = Obj.getKeys(obj, foreignKeyId)[0]?.id ?? failedInvariant("No foreign key.");
|
|
26
|
-
const [existing] = yield* Database.runQuery(Query.select(Filter.foreignKeys(schema, [
|
|
27
|
-
{
|
|
28
|
-
source: foreignKeyId,
|
|
29
|
-
id: foreignId
|
|
30
|
-
}
|
|
31
|
-
])));
|
|
32
|
-
log("sync object", {
|
|
33
|
-
type: Obj.getTypename(obj),
|
|
34
|
-
foreignId,
|
|
35
|
-
existing: existing ? Obj.getDXN(existing) : void 0
|
|
36
|
-
}, {
|
|
37
|
-
F: __dxlog_file,
|
|
38
|
-
L: 48,
|
|
39
|
-
S: this,
|
|
40
|
-
C: (f, a) => f(...a)
|
|
41
|
-
});
|
|
42
|
-
if (!existing) {
|
|
43
|
-
yield* Database.add(obj);
|
|
44
|
-
return obj;
|
|
45
|
-
} else {
|
|
46
|
-
copyObjectData(existing, obj);
|
|
47
|
-
return existing;
|
|
48
|
-
}
|
|
49
|
-
}), {
|
|
50
|
-
concurrency: 1
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
var copyObjectData = (existing, newObj) => {
|
|
54
|
-
Obj.change(existing, (obj) => {
|
|
55
|
-
for (const key of Object.keys(newObj)) {
|
|
56
|
-
if (typeof key !== "string" || key === "id") continue;
|
|
57
|
-
if (typeof newObj[key] !== "string" && typeof newObj[key] !== "number" && typeof newObj[key] !== "boolean" && !Ref.isRef(newObj[key])) continue;
|
|
58
|
-
obj[key] = newObj[key];
|
|
59
|
-
}
|
|
60
|
-
for (const key of Object.keys(obj)) {
|
|
61
|
-
if (typeof key !== "string" || key === "id") continue;
|
|
62
|
-
if (!(key in newObj)) {
|
|
63
|
-
delete obj[key];
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
for (const foreignKey of Obj.getMeta(newObj).keys) {
|
|
67
|
-
Obj.deleteKeys(obj, foreignKey.source);
|
|
68
|
-
Obj.getMeta(obj).keys.push({
|
|
69
|
-
...foreignKey
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
export {
|
|
76
|
-
syncObjects
|
|
77
|
-
};
|
|
78
|
-
//# sourceMappingURL=chunk-HZM3HNAS.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/sync/sync.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Filter, Obj, Query, Ref } from '@dxos/echo';\nimport { Database } from '@dxos/echo';\nimport { failedInvariant } from '@dxos/invariant';\nimport { log } from '@dxos/log';\n\n/**\n * Syncs objects to the database.\n * If there's an object with a matching foreign key in the database, it will be updated.\n * Otherwise, a new object will be added.\n * Recursively syncs top-level refs.\n *\n * @param opts.foreignKeyId - The key to use for matching objects.\n */\nexport const syncObjects: (\n objs: Obj.Unknown[],\n opts: { foreignKeyId: string },\n) => Effect.Effect<Obj.Unknown[], never, Database.Service> = Effect.fn('syncObjects')(function* (\n objs,\n { foreignKeyId },\n) {\n return yield* Effect.forEach(\n objs,\n Effect.fnUntraced(function* (obj) {\n // Sync referenced objects.\n for (const key of Object.keys(obj)) {\n if (typeof key !== 'string' || key === 'id') continue;\n if (!Ref.isRef((obj as any)[key])) continue;\n const ref: Ref.Unknown = (obj as any)[key];\n if (!ref.target) continue;\n if (Obj.getDXN(ref.target).isLocalObjectId()) {\n // obj not persisted to db.\n const [target] = yield* syncObjects([ref.target], { foreignKeyId });\n (obj as any)[key] = Ref.make(target);\n }\n }\n\n const schema = Obj.getSchema(obj) ?? failedInvariant('No schema.');\n const foreignId = Obj.getKeys(obj, foreignKeyId)[0]?.id ?? failedInvariant('No foreign key.');\n const [existing] = yield* Database.runQuery(\n Query.select(Filter.foreignKeys(schema, [{ source: foreignKeyId, id: foreignId }])),\n );\n log('sync object', {\n type: Obj.getTypename(obj),\n foreignId,\n existing: existing ? Obj.getDXN(existing) : undefined,\n });\n if (!existing) {\n yield* Database.add(obj);\n return obj;\n } else {\n copyObjectData(existing, obj);\n return existing;\n }\n }),\n { concurrency: 1 },\n );\n});\n\nconst copyObjectData = (existing: Obj.Unknown, newObj: Obj.Unknown) => {\n Obj.change(existing, (obj) => {\n // Copy properties from newObj to existing.\n for (const key of Object.keys(newObj)) {\n if (typeof key !== 'string' || key === 'id') continue;\n if (\n typeof (newObj as any)[key] !== 'string' &&\n typeof (newObj as any)[key] !== 'number' &&\n typeof (newObj as any)[key] !== 'boolean' &&\n !Ref.isRef((newObj as any)[key])\n )\n continue;\n (obj as any)[key] = (newObj as any)[key];\n }\n\n // Delete properties that don't exist in newObj.\n for (const key of Object.keys(obj)) {\n if (typeof key !== 'string' || key === 'id') continue;\n if (!(key in newObj)) {\n delete (obj as any)[key];\n }\n }\n\n // Update foreign keys.\n for (const foreignKey of Obj.getMeta(newObj).keys) {\n Obj.deleteKeys(obj, foreignKey.source);\n // TODO(dmaretskyi): Doesn't work: `Obj.getMeta(existing).keys.push(foreignKey);`\n Obj.getMeta(obj).keys.push({ ...foreignKey });\n }\n });\n};\n"],
|
|
5
|
-
"mappings": ";AAIA,YAAYA,YAAY;AAExB,SAASC,QAAQC,KAAKC,OAAOC,WAAW;AACxC,SAASC,gBAAgB;AACzB,SAASC,uBAAuB;AAChC,SAASC,WAAW;;AAUb,IAAMC,cAGuDC,UAAG,aAAA,EAAe,WACpFC,MACA,EAAEC,aAAY,GAAE;AAEhB,SAAO,OAAcC,eACnBF,MACOG,kBAAW,WAAWC,KAAG;AAE9B,eAAWC,OAAOC,OAAOC,KAAKH,GAAAA,GAAM;AAClC,UAAI,OAAOC,QAAQ,YAAYA,QAAQ,KAAM;AAC7C,UAAI,CAACX,IAAIc,MAAOJ,IAAYC,GAAAA,CAAI,EAAG;AACnC,YAAMI,MAAoBL,IAAYC,GAAAA;AACtC,UAAI,CAACI,IAAIC,OAAQ;AACjB,UAAIlB,IAAImB,OAAOF,IAAIC,MAAM,EAAEE,gBAAe,GAAI;AAE5C,cAAM,CAACF,MAAAA,IAAU,OAAOZ,YAAY;UAACW,IAAIC;WAAS;UAAET;QAAa,CAAA;AAChEG,YAAYC,GAAAA,IAAOX,IAAImB,KAAKH,MAAAA;MAC/B;IACF;AAEA,UAAMI,SAAStB,IAAIuB,UAAUX,GAAAA,KAAQR,gBAAgB,YAAA;AACrD,UAAMoB,YAAYxB,IAAIyB,QAAQb,KAAKH,YAAAA,EAAc,CAAA,GA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KAAK4B,KAAK;QAAE,GAAGH;MAAW,CAAA;IAC7C;EACF,CAAA;AACF;",
|
|
6
|
-
"names": ["Effect", "Filter", "Obj", "Query", "Ref", "Database", "failedInvariant", "log", "syncObjects", "fn", "objs", "foreignKeyId", "forEach", "fnUntraced", "obj", "key", "Object", "keys", "isRef", "ref", "target", "getDXN", "isLocalObjectId", "make", "schema", "getSchema", "foreignId", "getKeys", "id", "existing", "runQuery", "select", "foreignKeys", "source", "type", "getTypename", "undefined", "add", "copyObjectData", "concurrency", "newObj", "change", "foreignKey", "getMeta", "deleteKeys", "push"]
|
|
7
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
// src/blueprints/research/functions/definitions.ts
|
|
2
|
-
import * as Schema from "effect/Schema";
|
|
3
|
-
import { AiService } from "@dxos/ai";
|
|
4
|
-
import { Database, Obj, Ref } from "@dxos/echo";
|
|
5
|
-
import { FunctionInvocationService, TracingService } from "@dxos/functions";
|
|
6
|
-
import { Operation } from "@dxos/operation";
|
|
7
|
-
import { trim } from "@dxos/util";
|
|
8
|
-
var Research = Operation.make({
|
|
9
|
-
meta: {
|
|
10
|
-
key: "org.dxos.function.research",
|
|
11
|
-
name: "Research",
|
|
12
|
-
description: trim`
|
|
13
|
-
Search the web to research information about the given subject.
|
|
14
|
-
Inserts structured data into the research graph.
|
|
15
|
-
Creates a research summary and returns the objects created.
|
|
16
|
-
`
|
|
17
|
-
},
|
|
18
|
-
input: Schema.Struct({
|
|
19
|
-
query: Schema.String.annotations({
|
|
20
|
-
description: trim`
|
|
21
|
-
The search query.
|
|
22
|
-
If doing research on an object then load it first and pass it as JSON.
|
|
23
|
-
`
|
|
24
|
-
}),
|
|
25
|
-
instructions: Schema.optional(Schema.String).annotations({
|
|
26
|
-
description: trim`
|
|
27
|
-
The instructions for the research agent.
|
|
28
|
-
`
|
|
29
|
-
}),
|
|
30
|
-
// TOOD(burdon): Move to context.
|
|
31
|
-
mockSearch: Schema.optional(Schema.Boolean).annotations({
|
|
32
|
-
description: "Whether to use the mock search tool.",
|
|
33
|
-
default: false
|
|
34
|
-
}),
|
|
35
|
-
entityExtraction: Schema.optional(Schema.Boolean).annotations({
|
|
36
|
-
description: trim`
|
|
37
|
-
Whether to extract structured entities from the research.
|
|
38
|
-
Experimental feature only enable if user explicitly requests it.
|
|
39
|
-
`,
|
|
40
|
-
default: false
|
|
41
|
-
})
|
|
42
|
-
}),
|
|
43
|
-
output: Schema.Struct({
|
|
44
|
-
document: Schema.optional(Schema.String).annotations({
|
|
45
|
-
description: "The generated research document."
|
|
46
|
-
}),
|
|
47
|
-
objects: Schema.Array(Schema.Unknown).annotations({
|
|
48
|
-
description: "Structured objects created during the research process."
|
|
49
|
-
})
|
|
50
|
-
}),
|
|
51
|
-
services: [
|
|
52
|
-
AiService.AiService,
|
|
53
|
-
Database.Service,
|
|
54
|
-
TracingService,
|
|
55
|
-
FunctionInvocationService
|
|
56
|
-
]
|
|
57
|
-
});
|
|
58
|
-
var DocumentCreate = Operation.make({
|
|
59
|
-
meta: {
|
|
60
|
-
key: "org.dxos.function.research.document-create",
|
|
61
|
-
name: "Create research document",
|
|
62
|
-
description: "Creates a note summarizing the research."
|
|
63
|
-
},
|
|
64
|
-
input: Schema.Struct({
|
|
65
|
-
subject: Ref.Ref(Obj.Unknown).annotations({
|
|
66
|
-
description: trim`
|
|
67
|
-
ID of the object (organization, contact, etc.) for which the research was performed.
|
|
68
|
-
`
|
|
69
|
-
}),
|
|
70
|
-
name: Schema.String.annotations({
|
|
71
|
-
description: "Name of the document."
|
|
72
|
-
}),
|
|
73
|
-
content: Schema.String.annotations({
|
|
74
|
-
description: trim`
|
|
75
|
-
Content of the note.
|
|
76
|
-
Supports (and are prefered) references to research objects using @ syntax and <object> tags (refer to research blueprint instructions).
|
|
77
|
-
`
|
|
78
|
-
})
|
|
79
|
-
}),
|
|
80
|
-
output: Schema.Struct({
|
|
81
|
-
document: Schema.String.annotations({
|
|
82
|
-
description: "DXN of the created document."
|
|
83
|
-
})
|
|
84
|
-
}),
|
|
85
|
-
services: [
|
|
86
|
-
Database.Service,
|
|
87
|
-
TracingService
|
|
88
|
-
]
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
export {
|
|
92
|
-
Research,
|
|
93
|
-
DocumentCreate
|
|
94
|
-
};
|
|
95
|
-
//# sourceMappingURL=chunk-ILZ2ODWC.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/blueprints/research/functions/definitions.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { AiService } from '@dxos/ai';\nimport { Database, Obj, Ref } from '@dxos/echo';\nimport { FunctionInvocationService, TracingService } from '@dxos/functions';\nimport { Operation } from '@dxos/operation';\nimport { trim } from '@dxos/util';\n\nexport const Research = Operation.make({\n meta: {\n key: 'org.dxos.function.research',\n name: 'Research',\n description: trim`\n Search the web to research information about the given subject.\n Inserts structured data into the research graph. \n Creates a research summary and returns the objects created.\n `,\n },\n input: Schema.Struct({\n query: Schema.String.annotations({\n description: trim`\n The search query.\n If doing research on an object then load it first and pass it as JSON.\n `,\n }),\n instructions: Schema.optional(Schema.String).annotations({\n description: trim`\n The instructions for the research agent. \n `,\n }),\n // TOOD(burdon): Move to context.\n mockSearch: Schema.optional(Schema.Boolean).annotations({\n description: 'Whether to use the mock search tool.',\n default: false,\n }),\n entityExtraction: Schema.optional(Schema.Boolean).annotations({\n description: trim`\n Whether to extract structured entities from the research. \n Experimental feature only enable if user explicitly requests it.\n `,\n default: false,\n }),\n }),\n output: Schema.Struct({\n document: Schema.optional(Schema.String).annotations({\n description: 'The generated research document.',\n }),\n objects: Schema.Array(Schema.Unknown).annotations({\n description: 'Structured objects created during the research process.',\n }),\n }),\n services: [AiService.AiService, Database.Service, TracingService, FunctionInvocationService],\n});\n\nexport const DocumentCreate = Operation.make({\n meta: {\n key: 'org.dxos.function.research.document-create',\n name: 'Create research document',\n description: 'Creates a note summarizing the research.',\n },\n input: Schema.Struct({\n subject: Ref.Ref(Obj.Unknown).annotations({\n description: trim`\n ID of the object (organization, contact, etc.) for which the research was performed. \n `,\n }),\n name: Schema.String.annotations({\n description: 'Name of the document.',\n }),\n content: Schema.String.annotations({\n description: trim`\n Content of the note. \n Supports (and are prefered) references to research objects using @ syntax and <object> tags (refer to research blueprint instructions).\n `,\n }),\n }),\n output: Schema.Struct({\n document: Schema.String.annotations({\n description: 'DXN of the created document.',\n }),\n }),\n services: [Database.Service, TracingService],\n});\n"],
|
|
5
|
-
"mappings": ";AAIA,YAAYA,YAAY;AAExB,SAASC,iBAAiB;AAC1B,SAASC,UAAUC,KAAKC,WAAW;AACnC,SAASC,2BAA2BC,sBAAsB;AAC1D,SAASC,iBAAiB;AAC1B,SAASC,YAAY;AAEd,IAAMC,WAAWC,UAAUC,KAAK;EACrCC,MAAM;IACJC,KAAK;IACLC,MAAM;IACNC,aAAaC;;;;;EAKf;EACAC,OAAcC,cAAO;IACnBC,OAAcC,cAAOC,YAAY;MAC/BN,aAAaC;;;;IAIf,CAAA;IACAM,cAAqBC,gBAAgBH,aAAM,EAAEC,YAAY;MACvDN,aAAaC;;;IAGf,CAAA;;IAEAQ,YAAmBD,gBAAgBE,cAAO,EAAEJ,YAAY;MACtDN,aAAa;MACbW,SAAS;IACX,CAAA;IACAC,kBAAyBJ,gBAAgBE,cAAO,EAAEJ,YAAY;MAC5DN,aAAaC;;;;MAIbU,SAAS;IACX,CAAA;EACF,CAAA;EACAE,QAAeV,cAAO;IACpBW,UAAiBN,gBAAgBH,aAAM,EAAEC,YAAY;MACnDN,aAAa;IACf,CAAA;IACAe,SAAgBC,aAAaC,cAAO,EAAEX,YAAY;MAChDN,aAAa;IACf,CAAA;EACF,CAAA;EACAkB,UAAU;IAACC,UAAUA;IAAWC,SAASC;IAASC;IAAgBC;;AACpE,CAAA;AAEO,IAAMC,iBAAiB7B,UAAUC,KAAK;EAC3CC,MAAM;IACJC,KAAK;IACLC,MAAM;IACNC,aAAa;EACf;EACAE,OAAcC,cAAO;IACnBsB,SAASC,IAAIA,IAAIC,IAAIV,OAAO,EAAEX,YAAY;MACxCN,aAAaC;;;IAGf,CAAA;IACAF,MAAaM,cAAOC,YAAY;MAC9BN,aAAa;IACf,CAAA;IACA4B,SAAgBvB,cAAOC,YAAY;MACjCN,aAAaC;;;;IAIf,CAAA;EACF,CAAA;EACAY,QAAeV,cAAO;IACpBW,UAAiBT,cAAOC,YAAY;MAClCN,aAAa;IACf,CAAA;EACF,CAAA;EACAkB,UAAU;IAACE,SAASC;IAASC;;AAC/B,CAAA;",
|
|
6
|
-
"names": ["Schema", "AiService", "Database", "Obj", "Ref", "FunctionInvocationService", "TracingService", "Operation", "trim", "Research", "Operation", "make", "meta", "key", "name", "description", "trim", "input", "Struct", "query", "String", "annotations", "instructions", "optional", "mockSearch", "Boolean", "default", "entityExtraction", "output", "document", "objects", "Array", "Unknown", "services", "AiService", "Database", "Service", "TracingService", "FunctionInvocationService", "DocumentCreate", "subject", "Ref", "Obj", "content"]
|
|
7
|
-
}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Plan_exports
|
|
3
|
-
} from "./chunk-2SH4XUQR.mjs";
|
|
4
|
-
|
|
5
|
-
// src/blueprints/planning/functions/definitions.ts
|
|
6
|
-
import * as Schema from "effect/Schema";
|
|
7
|
-
import { AiContextService } from "@dxos/assistant";
|
|
8
|
-
import { Database } from "@dxos/echo";
|
|
9
|
-
import { Operation } from "@dxos/operation";
|
|
10
|
-
import { trim } from "@dxos/util";
|
|
11
|
-
var INSTRUCTIONS = trim`
|
|
12
|
-
TASK MANAGEMENT TOOL - USAGE GUIDELINES
|
|
13
|
-
|
|
14
|
-
This tool maintains an organized task list during work sessions to track progress, break down objectives, and ensure thoroughness. After creating initial tasks, update them silently without announcing changes to the user.
|
|
15
|
-
|
|
16
|
-
=== CORE USAGE PRINCIPLES ===
|
|
17
|
-
|
|
18
|
-
Create and manage tasks for: multi-step objectives requiring 3+ distinct actions, complex projects needing careful sequencing, user requests for task organization, multiple deliverables provided together, new instructions (capture as tasks immediately with new IDs), completed work (mark done and add follow-ups), and active work (mark as 'in-progress', limit one at a time).
|
|
19
|
-
|
|
20
|
-
Skip task management for: single straightforward actions, simple requests achievable in 1-2 steps, informational queries, quick lookups or clarifications, and avoid creating verification tasks unless requested.
|
|
21
|
-
|
|
22
|
-
=== TOOL SPECIFICATION ===
|
|
23
|
-
|
|
24
|
-
update-tasks requires an array of task objects. Each task object contains:
|
|
25
|
-
- id (string, required): unique identifier like "task_1" or "research_sources"
|
|
26
|
-
- title (string, optional): update to clarify or refine task description
|
|
27
|
-
- status (string, optional): 'todo' | 'in-progress' | 'done'
|
|
28
|
-
|
|
29
|
-
Task status meanings: 'todo' means not yet started, 'in-progress' means currently being worked on, 'done' means completed successfully.
|
|
30
|
-
|
|
31
|
-
=== OPERATIONAL GUIDELINES ===
|
|
32
|
-
|
|
33
|
-
Update tasks in real-time as work progresses. Mark tasks 'done' immediately upon completion. Maintain only ONE task with 'in-progress' status at a time. Complete current tasks before starting new ones. Use specific, actionable task titles. Break complex work into manageable logical pieces. Batch task updates with other actions when possible for efficiency.
|
|
34
|
-
|
|
35
|
-
=== USAGE EXAMPLES ===
|
|
36
|
-
|
|
37
|
-
<example type="research_project">
|
|
38
|
-
<user_message>I need to research sustainable packaging options and write a report comparing costs and environmental impact.</user_message>
|
|
39
|
-
<assistant_action>
|
|
40
|
-
Creates tasks:
|
|
41
|
-
1. {id: "research_materials", title: "Research sustainable packaging materials", status: "in-progress"}
|
|
42
|
-
2. {id: "compare_costs", title: "Compile cost comparison data", status: "todo"}
|
|
43
|
-
3. {id: "assess_impact", title: "Evaluate environmental impact metrics", status: "todo"}
|
|
44
|
-
4. {id: "draft_report", title: "Write comparative analysis report", status: "todo"}
|
|
45
|
-
|
|
46
|
-
Begins research work immediately in same response.
|
|
47
|
-
</assistant_action>
|
|
48
|
-
<reasoning>Multi-phase project requiring systematic tracking across research, analysis, and writing stages.</reasoning>
|
|
49
|
-
</example>
|
|
50
|
-
|
|
51
|
-
<example type="event_planning">
|
|
52
|
-
<user_message>Help me plan a team retreat - venue, agenda, catering, and send invitations.</user_message>
|
|
53
|
-
<assistant_action>
|
|
54
|
-
Creates tasks:
|
|
55
|
-
1. {id: "venue_options", title: "Research and recommend venues", status: "in-progress"}
|
|
56
|
-
2. {id: "draft_agenda", title: "Create retreat agenda", status: "todo"}
|
|
57
|
-
3. {id: "arrange_catering", title: "Coordinate catering options", status: "todo"}
|
|
58
|
-
4. {id: "send_invites", title: "Draft and send invitations", status: "todo"}
|
|
59
|
-
</assistant_action>
|
|
60
|
-
<reasoning>Multiple distinct deliverables with dependencies requiring organized tracking.</reasoning>
|
|
61
|
-
</example>
|
|
62
|
-
|
|
63
|
-
<example type="document_analysis">
|
|
64
|
-
<user_message>Review this 30-page contract for key terms, risks, and negotiation points.</user_message>
|
|
65
|
-
<assistant_action>
|
|
66
|
-
Creates tasks:
|
|
67
|
-
1. {id: "extract_key_terms", title: "Identify key contractual terms", status: "in-progress"}
|
|
68
|
-
2. {id: "flag_risks", title: "Flag potential risks and liabilities", status: "todo"}
|
|
69
|
-
3. {id: "negotiation_points", title: "Compile negotiation recommendations", status: "todo"}
|
|
70
|
-
4. {id: "summary_doc", title: "Prepare executive summary", status: "todo"}
|
|
71
|
-
</assistant_action>
|
|
72
|
-
<reasoning>Substantial analysis work requiring methodical breakdown and systematic review.</reasoning>
|
|
73
|
-
</example>
|
|
74
|
-
|
|
75
|
-
<example type="multiple_deliverables">
|
|
76
|
-
<user_message>I need: 1) competitor analysis for three companies, 2) SWOT analysis, 3) market positioning recommendations.</user_message>
|
|
77
|
-
<assistant_action>
|
|
78
|
-
Creates tasks:
|
|
79
|
-
1. {id: "competitor_research", title: "Research three competitor companies", status: "in-progress"}
|
|
80
|
-
2. {id: "swot_analysis", title: "Develop SWOT analysis", status: "todo"}
|
|
81
|
-
3. {id: "positioning_recs", title: "Create market positioning recommendations", status: "todo"}
|
|
82
|
-
</assistant_action>
|
|
83
|
-
<reasoning>User provided numbered list of distinct deliverables requiring separate effort.</reasoning>
|
|
84
|
-
</example>
|
|
85
|
-
|
|
86
|
-
<example type="skip_simple_question">
|
|
87
|
-
<user_message>What's the difference between renewable and sustainable energy?</user_message>
|
|
88
|
-
<assistant_action>Provides explanation directly without creating tasks.</assistant_action>
|
|
89
|
-
<reasoning>Informational request with no actionable work to complete or track.</reasoning>
|
|
90
|
-
</example>
|
|
91
|
-
|
|
92
|
-
<example type="skip_quick_lookup">
|
|
93
|
-
<user_message>Find the population of Tokyo.</user_message>
|
|
94
|
-
<assistant_action>Searches and provides answer without task tracking.</assistant_action>
|
|
95
|
-
<reasoning>Single straightforward lookup completable immediately.</reasoning>
|
|
96
|
-
</example>
|
|
97
|
-
|
|
98
|
-
<example type="skip_trivial_task">
|
|
99
|
-
<user_message>Summarize this 2-paragraph email.</user_message>
|
|
100
|
-
<assistant_action>Provides summary directly without creating tasks.</assistant_action>
|
|
101
|
-
<reasoning>Single simple action requiring no breakdown or progress tracking.</reasoning>
|
|
102
|
-
</example>
|
|
103
|
-
|
|
104
|
-
<example type="skip_single_action">
|
|
105
|
-
<user_message>Check if my flight is on time.</user_message>
|
|
106
|
-
<assistant_action>Performs lookup and reports status without task management.</assistant_action>
|
|
107
|
-
<reasoning>One-step action with immediate completion, no organizational benefit from tasks.</reasoning>
|
|
108
|
-
</example>
|
|
109
|
-
|
|
110
|
-
=== BEST PRACTICES ===
|
|
111
|
-
|
|
112
|
-
For task creation: use descriptive unique IDs reflecting the work, start first task as 'in-progress', batch initial creation with beginning work. For progress tracking: update status immediately upon completion, keep only one 'in-progress' task unless parallel work is natural, add follow-up tasks as they emerge. For task breakdown: aim for reasonably-scoped tasks, group related small actions into logical units, split tasks requiring different approaches.
|
|
113
|
-
|
|
114
|
-
When uncertain whether to use task management, err on the side of creating tasks. Proactive organization demonstrates thoroughness and ensures comprehensive work completion.
|
|
115
|
-
`;
|
|
116
|
-
var TaskProps = Schema.Struct({
|
|
117
|
-
id: Plan_exports.TaskId,
|
|
118
|
-
title: Schema.String,
|
|
119
|
-
status: Schema.Literal("todo", "in-progress", "done")
|
|
120
|
-
});
|
|
121
|
-
var UpdateTasks = Operation.make({
|
|
122
|
-
meta: {
|
|
123
|
-
key: "org.dxos.function.planning.update-tasks",
|
|
124
|
-
name: "Update tasks",
|
|
125
|
-
description: INSTRUCTIONS
|
|
126
|
-
},
|
|
127
|
-
input: Schema.Struct({
|
|
128
|
-
tasks: Schema.Array(TaskProps)
|
|
129
|
-
}),
|
|
130
|
-
output: Schema.Any,
|
|
131
|
-
services: [
|
|
132
|
-
AiContextService,
|
|
133
|
-
Database.Service
|
|
134
|
-
]
|
|
135
|
-
});
|
|
136
|
-
|
|
137
|
-
export {
|
|
138
|
-
UpdateTasks
|
|
139
|
-
};
|
|
140
|
-
//# sourceMappingURL=chunk-KW45RMNS.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/blueprints/planning/functions/definitions.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2026 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { AiContextService } from '@dxos/assistant';\nimport { Database } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\nimport { trim } from '@dxos/util';\n\nimport { Plan } from '../../../types';\n\nconst INSTRUCTIONS = trim`\nTASK MANAGEMENT TOOL - USAGE GUIDELINES\n\nThis tool maintains an organized task list during work sessions to track progress, break down objectives, and ensure thoroughness. After creating initial tasks, update them silently without announcing changes to the user.\n\n=== CORE USAGE PRINCIPLES ===\n\nCreate and manage tasks for: multi-step objectives requiring 3+ distinct actions, complex projects needing careful sequencing, user requests for task organization, multiple deliverables provided together, new instructions (capture as tasks immediately with new IDs), completed work (mark done and add follow-ups), and active work (mark as 'in-progress', limit one at a time).\n\nSkip task management for: single straightforward actions, simple requests achievable in 1-2 steps, informational queries, quick lookups or clarifications, and avoid creating verification tasks unless requested.\n\n=== TOOL SPECIFICATION ===\n\nupdate-tasks requires an array of task objects. Each task object contains:\n- id (string, required): unique identifier like \"task_1\" or \"research_sources\"\n- title (string, optional): update to clarify or refine task description\n- status (string, optional): 'todo' | 'in-progress' | 'done'\n\nTask status meanings: 'todo' means not yet started, 'in-progress' means currently being worked on, 'done' means completed successfully.\n\n=== OPERATIONAL GUIDELINES ===\n\nUpdate tasks in real-time as work progresses. Mark tasks 'done' immediately upon completion. Maintain only ONE task with 'in-progress' status at a time. Complete current tasks before starting new ones. Use specific, actionable task titles. Break complex work into manageable logical pieces. Batch task updates with other actions when possible for efficiency.\n\n=== USAGE EXAMPLES ===\n\n<example type=\"research_project\">\n<user_message>I need to research sustainable packaging options and write a report comparing costs and environmental impact.</user_message>\n<assistant_action>\nCreates tasks:\n1. {id: \"research_materials\", title: \"Research sustainable packaging materials\", status: \"in-progress\"}\n2. {id: \"compare_costs\", title: \"Compile cost comparison data\", status: \"todo\"}\n3. {id: \"assess_impact\", title: \"Evaluate environmental impact metrics\", status: \"todo\"}\n4. {id: \"draft_report\", title: \"Write comparative analysis report\", status: \"todo\"}\n\nBegins research work immediately in same response.\n</assistant_action>\n<reasoning>Multi-phase project requiring systematic tracking across research, analysis, and writing stages.</reasoning>\n</example>\n\n<example type=\"event_planning\">\n<user_message>Help me plan a team retreat - venue, agenda, catering, and send invitations.</user_message>\n<assistant_action>\nCreates tasks:\n1. {id: \"venue_options\", title: \"Research and recommend venues\", status: \"in-progress\"}\n2. {id: \"draft_agenda\", title: \"Create retreat agenda\", status: \"todo\"}\n3. {id: \"arrange_catering\", title: \"Coordinate catering options\", status: \"todo\"}\n4. {id: \"send_invites\", title: \"Draft and send invitations\", status: \"todo\"}\n</assistant_action>\n<reasoning>Multiple distinct deliverables with dependencies requiring organized tracking.</reasoning>\n</example>\n\n<example type=\"document_analysis\">\n<user_message>Review this 30-page contract for key terms, risks, and negotiation points.</user_message>\n<assistant_action>\nCreates tasks:\n1. {id: \"extract_key_terms\", title: \"Identify key contractual terms\", status: \"in-progress\"}\n2. {id: \"flag_risks\", title: \"Flag potential risks and liabilities\", status: \"todo\"}\n3. {id: \"negotiation_points\", title: \"Compile negotiation recommendations\", status: \"todo\"}\n4. {id: \"summary_doc\", title: \"Prepare executive summary\", status: \"todo\"}\n</assistant_action>\n<reasoning>Substantial analysis work requiring methodical breakdown and systematic review.</reasoning>\n</example>\n\n<example type=\"multiple_deliverables\">\n<user_message>I need: 1) competitor analysis for three companies, 2) SWOT analysis, 3) market positioning recommendations.</user_message>\n<assistant_action>\nCreates tasks:\n1. {id: \"competitor_research\", title: \"Research three competitor companies\", status: \"in-progress\"}\n2. {id: \"swot_analysis\", title: \"Develop SWOT analysis\", status: \"todo\"}\n3. {id: \"positioning_recs\", title: \"Create market positioning recommendations\", status: \"todo\"}\n</assistant_action>\n<reasoning>User provided numbered list of distinct deliverables requiring separate effort.</reasoning>\n</example>\n\n<example type=\"skip_simple_question\">\n<user_message>What's the difference between renewable and sustainable energy?</user_message>\n<assistant_action>Provides explanation directly without creating tasks.</assistant_action>\n<reasoning>Informational request with no actionable work to complete or track.</reasoning>\n</example>\n\n<example type=\"skip_quick_lookup\">\n<user_message>Find the population of Tokyo.</user_message>\n<assistant_action>Searches and provides answer without task tracking.</assistant_action>\n<reasoning>Single straightforward lookup completable immediately.</reasoning>\n</example>\n\n<example type=\"skip_trivial_task\">\n<user_message>Summarize this 2-paragraph email.</user_message>\n<assistant_action>Provides summary directly without creating tasks.</assistant_action>\n<reasoning>Single simple action requiring no breakdown or progress tracking.</reasoning>\n</example>\n\n<example type=\"skip_single_action\">\n<user_message>Check if my flight is on time.</user_message>\n<assistant_action>Performs lookup and reports status without task management.</assistant_action>\n<reasoning>One-step action with immediate completion, no organizational benefit from tasks.</reasoning>\n</example>\n\n=== BEST PRACTICES ===\n\nFor task creation: use descriptive unique IDs reflecting the work, start first task as 'in-progress', batch initial creation with beginning work. For progress tracking: update status immediately upon completion, keep only one 'in-progress' task unless parallel work is natural, add follow-up tasks as they emerge. For task breakdown: aim for reasonably-scoped tasks, group related small actions into logical units, split tasks requiring different approaches.\n\nWhen uncertain whether to use task management, err on the side of creating tasks. Proactive organization demonstrates thoroughness and ensures comprehensive work completion.\n`;\n\nconst TaskProps = Schema.Struct({\n id: Plan.TaskId,\n title: Schema.String,\n status: Schema.Literal('todo', 'in-progress', 'done'),\n});\n\nexport const UpdateTasks = Operation.make({\n meta: {\n key: 'org.dxos.function.planning.update-tasks',\n name: 'Update tasks',\n description: INSTRUCTIONS,\n },\n input: Schema.Struct({\n tasks: Schema.Array(TaskProps),\n }),\n output: Schema.Any,\n services: [AiContextService, Database.Service],\n});\n"],
|
|
5
|
-
"mappings": ";;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,wBAAwB;AACjC,SAASC,gBAAgB;AACzB,SAASC,iBAAiB;AAC1B,SAASC,YAAY;AAIrB,IAAMC,eAAeC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0GrB,IAAMC,YAAmBC,cAAO;EAC9BC,IAAIC,aAAKC;EACTC,OAAcC;EACdC,QAAeC,eAAQ,QAAQ,eAAe,MAAA;AAChD,CAAA;AAEO,IAAMC,cAAcC,UAAUC,KAAK;EACxCC,MAAM;IACJC,KAAK;IACLC,MAAM;IACNC,aAAajB;EACf;EACAkB,OAAcf,cAAO;IACnBgB,OAAcC,aAAMlB,SAAAA;EACtB,CAAA;EACAmB,QAAeC;EACfC,UAAU;IAACC;IAAkBC,SAASC;;AACxC,CAAA;",
|
|
6
|
-
"names": ["Schema", "AiContextService", "Database", "Operation", "trim", "INSTRUCTIONS", "trim", "TaskProps", "Struct", "id", "Plan", "TaskId", "title", "String", "status", "Literal", "UpdateTasks", "Operation", "make", "meta", "key", "name", "description", "input", "tasks", "Array", "output", "Any", "services", "AiContextService", "Database", "Service"]
|
|
7
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// src/blueprints/linear/functions/definitions.ts
|
|
2
|
-
import * as Schema from "effect/Schema";
|
|
3
|
-
import { Database } from "@dxos/echo";
|
|
4
|
-
import { CredentialsService } from "@dxos/functions";
|
|
5
|
-
import { Operation } from "@dxos/operation";
|
|
6
|
-
var SyncIssues = Operation.make({
|
|
7
|
-
meta: {
|
|
8
|
-
key: "org.dxos.function.linear.sync-issues",
|
|
9
|
-
name: "Linear",
|
|
10
|
-
description: "Sync issues from Linear."
|
|
11
|
-
},
|
|
12
|
-
input: Schema.Struct({
|
|
13
|
-
team: Schema.String.annotations({
|
|
14
|
-
description: "Linear team id."
|
|
15
|
-
})
|
|
16
|
-
}),
|
|
17
|
-
output: Schema.Any,
|
|
18
|
-
services: [
|
|
19
|
-
CredentialsService,
|
|
20
|
-
Database.Service
|
|
21
|
-
]
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
export {
|
|
25
|
-
SyncIssues
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=chunk-LI6VMCJW.mjs.map
|