@dxos/plugin-automation 0.7.5-staging.2ff1350 → 0.7.5-staging.e6154f3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/AutomationPanel-ITYXSN5Z.mjs +132 -0
- package/dist/lib/browser/AutomationPanel-ITYXSN5Z.mjs.map +7 -0
- package/dist/lib/browser/{chunk-HZSTXZWK.mjs → chunk-OFDNNRLE.mjs} +3 -8
- package/dist/lib/browser/chunk-OFDNNRLE.mjs.map +7 -0
- package/dist/lib/browser/chunk-U7QLNY2S.mjs +8 -0
- package/dist/lib/browser/chunk-U7QLNY2S.mjs.map +7 -0
- package/dist/lib/browser/chunk-WY2C7JY4.mjs +119 -0
- package/dist/lib/browser/chunk-WY2C7JY4.mjs.map +7 -0
- package/dist/lib/browser/complementary-panel-4CPOJL4Y.mjs +56 -0
- package/dist/lib/browser/complementary-panel-4CPOJL4Y.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +18 -395
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react-surface-SAPMN4PF.mjs +27 -0
- package/dist/lib/browser/react-surface-SAPMN4PF.mjs.map +7 -0
- package/dist/lib/node/{chunk-V4L7LTWM.cjs → AutomationPanel-X33HHDMQ.cjs} +19 -132
- package/dist/lib/node/AutomationPanel-X33HHDMQ.cjs.map +7 -0
- package/dist/lib/node/chunk-7Q5SNGCL.cjs +148 -0
- package/dist/lib/node/chunk-7Q5SNGCL.cjs.map +7 -0
- package/dist/lib/node/chunk-CB5OB6JH.cjs +40 -0
- package/dist/lib/node/chunk-CB5OB6JH.cjs.map +7 -0
- package/dist/lib/node/{chunk-BAQRBGOJ.cjs → chunk-ORMEYEBE.cjs} +6 -12
- package/dist/lib/node/chunk-ORMEYEBE.cjs.map +7 -0
- package/dist/lib/node/complementary-panel-ZYJJ42ZU.cjs +72 -0
- package/dist/lib/node/complementary-panel-ZYJJ42ZU.cjs.map +7 -0
- package/dist/lib/node/index.cjs +33 -396
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-IXKIJFRP.cjs → react-surface-2WRVAPGR.cjs} +9 -34
- package/dist/lib/node/react-surface-2WRVAPGR.cjs.map +7 -0
- package/dist/lib/node-esm/AutomationPanel-HY3GB4BT.mjs +133 -0
- package/dist/lib/node-esm/AutomationPanel-HY3GB4BT.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-IG4GSWZN.mjs → chunk-6MUUH67V.mjs} +3 -8
- package/dist/lib/node-esm/chunk-6MUUH67V.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-R3P2WPBQ.mjs +10 -0
- package/dist/lib/node-esm/chunk-R3P2WPBQ.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-UDD2VA6G.mjs +120 -0
- package/dist/lib/node-esm/chunk-UDD2VA6G.mjs.map +7 -0
- package/dist/lib/node-esm/complementary-panel-S42RIIAY.mjs +57 -0
- package/dist/lib/node-esm/complementary-panel-S42RIIAY.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +18 -395
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/react-surface-QWLPOYXO.mjs +28 -0
- package/dist/lib/node-esm/react-surface-QWLPOYXO.mjs.map +7 -0
- package/dist/types/src/AutomationPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/{ai-client.d.ts → complementary-panel.d.ts} +2 -3
- package/dist/types/src/capabilities/complementary-panel.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +1 -180
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts.map +1 -1
- package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts.map +1 -1
- package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +0 -11
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +0 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/testing/index.d.ts +0 -1
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/test-functions.d.ts +0 -2
- package/dist/types/src/testing/test-functions.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +1 -112
- package/dist/types/src/translations.d.ts.map +1 -1
- package/package.json +21 -74
- package/src/AutomationPlugin.tsx +7 -76
- package/src/capabilities/complementary-panel.ts +56 -0
- package/src/capabilities/index.ts +1 -5
- package/src/capabilities/react-surface.tsx +3 -23
- package/src/components/AutomationPanel/AutomationPanel.stories.tsx +1 -2
- package/src/components/AutomationPanel/AutomationPanel.tsx +56 -49
- package/src/components/TriggerEditor/TriggerEditor.stories.tsx +1 -2
- package/src/components/index.ts +0 -8
- package/src/index.ts +2 -3
- package/src/meta.ts +1 -4
- package/src/testing/index.ts +0 -1
- package/src/testing/test-functions.ts +0 -7
- package/src/translations.ts +1 -37
- package/dist/lib/browser/AutomationPanel-NCKK3CFN.mjs +0 -8
- package/dist/lib/browser/AutomationPanel-NCKK3CFN.mjs.map +0 -7
- package/dist/lib/browser/ChatContainer-AZPLZJ5H.mjs +0 -12
- package/dist/lib/browser/ChatContainer-AZPLZJ5H.mjs.map +0 -7
- package/dist/lib/browser/ai-client-T2PBJISL.mjs +0 -22
- package/dist/lib/browser/ai-client-T2PBJISL.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-F22H4YBQ.mjs +0 -111
- package/dist/lib/browser/app-graph-builder-F22H4YBQ.mjs.map +0 -7
- package/dist/lib/browser/chunk-67KDIIM6.mjs +0 -15
- package/dist/lib/browser/chunk-67KDIIM6.mjs.map +0 -7
- package/dist/lib/browser/chunk-HZSTXZWK.mjs.map +0 -7
- package/dist/lib/browser/chunk-L2YLAKCS.mjs +0 -151
- package/dist/lib/browser/chunk-L2YLAKCS.mjs.map +0 -7
- package/dist/lib/browser/chunk-LJ7F4KDM.mjs +0 -243
- package/dist/lib/browser/chunk-LJ7F4KDM.mjs.map +0 -7
- package/dist/lib/browser/chunk-M4MWUOUC.mjs +0 -382
- package/dist/lib/browser/chunk-M4MWUOUC.mjs.map +0 -7
- package/dist/lib/browser/chunk-U435IUIA.mjs +0 -1775
- package/dist/lib/browser/chunk-U435IUIA.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-MONKAKTY.mjs +0 -30
- package/dist/lib/browser/intent-resolver-MONKAKTY.mjs.map +0 -7
- package/dist/lib/browser/react-surface-7QWCWE4K.mjs +0 -58
- package/dist/lib/browser/react-surface-7QWCWE4K.mjs.map +0 -7
- package/dist/lib/browser/types/index.mjs +0 -24
- package/dist/lib/browser/types/index.mjs.map +0 -7
- package/dist/lib/node/AutomationPanel-6COLKRIB.cjs +0 -26
- package/dist/lib/node/AutomationPanel-6COLKRIB.cjs.map +0 -7
- package/dist/lib/node/ChatContainer-SBEUFMQ3.cjs +0 -33
- package/dist/lib/node/ChatContainer-SBEUFMQ3.cjs.map +0 -7
- package/dist/lib/node/ai-client-L5GUSAER.cjs +0 -38
- package/dist/lib/node/ai-client-L5GUSAER.cjs.map +0 -7
- package/dist/lib/node/app-graph-builder-OCSH5R6U.cjs +0 -123
- package/dist/lib/node/app-graph-builder-OCSH5R6U.cjs.map +0 -7
- package/dist/lib/node/chunk-BAQRBGOJ.cjs.map +0 -7
- package/dist/lib/node/chunk-BZFAEBME.cjs +0 -1747
- package/dist/lib/node/chunk-BZFAEBME.cjs.map +0 -7
- package/dist/lib/node/chunk-K3F5JNZ6.cjs +0 -394
- package/dist/lib/node/chunk-K3F5JNZ6.cjs.map +0 -7
- package/dist/lib/node/chunk-NUOYHYAF.cjs +0 -174
- package/dist/lib/node/chunk-NUOYHYAF.cjs.map +0 -7
- package/dist/lib/node/chunk-V4L7LTWM.cjs.map +0 -7
- package/dist/lib/node/chunk-VNBYGJ4K.cjs +0 -34
- package/dist/lib/node/chunk-VNBYGJ4K.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-KQGTYVF2.cjs +0 -45
- package/dist/lib/node/intent-resolver-KQGTYVF2.cjs.map +0 -7
- package/dist/lib/node/react-surface-IXKIJFRP.cjs.map +0 -7
- package/dist/lib/node/types/index.cjs +0 -46
- package/dist/lib/node/types/index.cjs.map +0 -7
- package/dist/lib/node-esm/AutomationPanel-3MPIAO7R.mjs +0 -9
- package/dist/lib/node-esm/AutomationPanel-3MPIAO7R.mjs.map +0 -7
- package/dist/lib/node-esm/ChatContainer-JCDLYMDZ.mjs +0 -13
- package/dist/lib/node-esm/ChatContainer-JCDLYMDZ.mjs.map +0 -7
- package/dist/lib/node-esm/ai-client-45LZLW7V.mjs +0 -23
- package/dist/lib/node-esm/ai-client-45LZLW7V.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-XSM7DETF.mjs +0 -112
- package/dist/lib/node-esm/app-graph-builder-XSM7DETF.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-53FFD4VO.mjs +0 -1776
- package/dist/lib/node-esm/chunk-53FFD4VO.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-AWAU4BHR.mjs +0 -244
- package/dist/lib/node-esm/chunk-AWAU4BHR.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-IG4GSWZN.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-K5NNSGIV.mjs +0 -152
- package/dist/lib/node-esm/chunk-K5NNSGIV.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-RAT3GSJP.mjs +0 -383
- package/dist/lib/node-esm/chunk-RAT3GSJP.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-SS7U6GCX.mjs +0 -16
- package/dist/lib/node-esm/chunk-SS7U6GCX.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-XSZRLU6V.mjs +0 -31
- package/dist/lib/node-esm/intent-resolver-XSZRLU6V.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-FZAAAXGR.mjs +0 -59
- package/dist/lib/node-esm/react-surface-FZAAAXGR.mjs.map +0 -7
- package/dist/lib/node-esm/types/index.mjs +0 -25
- package/dist/lib/node-esm/types/index.mjs.map +0 -7
- package/dist/types/src/capabilities/ai-client.d.ts.map +0 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -181
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/capabilities.d.ts +0 -5
- package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/components/AmbientDialog/AmbientDialog.d.ts +0 -7
- package/dist/types/src/components/AmbientDialog/AmbientDialog.d.ts.map +0 -1
- package/dist/types/src/components/AmbientDialog/AmbientDialog.stories.d.ts +0 -8
- package/dist/types/src/components/AmbientDialog/AmbientDialog.stories.d.ts.map +0 -1
- package/dist/types/src/components/AmbientDialog/index.d.ts +0 -2
- package/dist/types/src/components/AmbientDialog/index.d.ts.map +0 -1
- package/dist/types/src/components/AssistantDialog/AssistantDialog.d.ts +0 -6
- package/dist/types/src/components/AssistantDialog/AssistantDialog.d.ts.map +0 -1
- package/dist/types/src/components/AssistantDialog/index.d.ts +0 -2
- package/dist/types/src/components/AssistantDialog/index.d.ts.map +0 -1
- package/dist/types/src/components/ChatContainer/ChatContainer.d.ts +0 -6
- package/dist/types/src/components/ChatContainer/ChatContainer.d.ts.map +0 -1
- package/dist/types/src/components/ChatContainer/index.d.ts +0 -4
- package/dist/types/src/components/ChatContainer/index.d.ts.map +0 -1
- package/dist/types/src/components/Prompt/Prompt.d.ts +0 -13
- package/dist/types/src/components/Prompt/Prompt.d.ts.map +0 -1
- package/dist/types/src/components/Prompt/Prompt.stories.d.ts +0 -9
- package/dist/types/src/components/Prompt/Prompt.stories.d.ts.map +0 -1
- package/dist/types/src/components/Prompt/PromptBar.d.ts +0 -10
- package/dist/types/src/components/Prompt/PromptBar.d.ts.map +0 -1
- package/dist/types/src/components/Prompt/autocomplete.d.ts +0 -21
- package/dist/types/src/components/Prompt/autocomplete.d.ts.map +0 -1
- package/dist/types/src/components/Prompt/index.d.ts +0 -3
- package/dist/types/src/components/Prompt/index.d.ts.map +0 -1
- package/dist/types/src/components/PromptEditor/PromptEditor.d.ts +0 -9
- package/dist/types/src/components/PromptEditor/PromptEditor.d.ts.map +0 -1
- package/dist/types/src/components/PromptEditor/PromptEditor.stories.d.ts +0 -6
- package/dist/types/src/components/PromptEditor/PromptEditor.stories.d.ts.map +0 -1
- package/dist/types/src/components/PromptEditor/index.d.ts +0 -2
- package/dist/types/src/components/PromptEditor/index.d.ts.map +0 -1
- package/dist/types/src/components/PromptEditor/prompt-extension.d.ts +0 -4
- package/dist/types/src/components/PromptEditor/prompt-extension.d.ts.map +0 -1
- package/dist/types/src/components/PromptEditor/types.d.ts +0 -18
- package/dist/types/src/components/PromptEditor/types.d.ts.map +0 -1
- package/dist/types/src/components/ServiceRegistry/ServiceRegistry.d.ts +0 -5
- package/dist/types/src/components/ServiceRegistry/ServiceRegistry.d.ts.map +0 -1
- package/dist/types/src/components/ServiceRegistry/ServiceRegistry.stories.d.ts +0 -8
- package/dist/types/src/components/ServiceRegistry/ServiceRegistry.stories.d.ts.map +0 -1
- package/dist/types/src/components/ServiceRegistry/index.d.ts +0 -2
- package/dist/types/src/components/ServiceRegistry/index.d.ts.map +0 -1
- package/dist/types/src/components/Thread/Thread.d.ts +0 -15
- package/dist/types/src/components/Thread/Thread.d.ts.map +0 -1
- package/dist/types/src/components/Thread/Thread.stories.d.ts +0 -11
- package/dist/types/src/components/Thread/Thread.stories.d.ts.map +0 -1
- package/dist/types/src/components/Thread/ThreadContainer.d.ts +0 -8
- package/dist/types/src/components/Thread/ThreadContainer.d.ts.map +0 -1
- package/dist/types/src/components/Thread/ThreadContainer.stories.d.ts +0 -15
- package/dist/types/src/components/Thread/ThreadContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/Thread/ThreadMessage.d.ts +0 -13
- package/dist/types/src/components/Thread/ThreadMessage.d.ts.map +0 -1
- package/dist/types/src/components/Thread/ToolInvocations.d.ts +0 -13
- package/dist/types/src/components/Thread/ToolInvocations.d.ts.map +0 -1
- package/dist/types/src/components/Thread/index.d.ts +0 -3
- package/dist/types/src/components/Thread/index.d.ts.map +0 -1
- package/dist/types/src/components/Thread/reducer.d.ts +0 -12
- package/dist/types/src/components/Thread/reducer.d.ts.map +0 -1
- package/dist/types/src/components/Toolbox/Toolbox.d.ts +0 -19
- package/dist/types/src/components/Toolbox/Toolbox.d.ts.map +0 -1
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts +0 -8
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts.map +0 -1
- package/dist/types/src/components/Toolbox/index.d.ts +0 -2
- package/dist/types/src/components/Toolbox/index.d.ts.map +0 -1
- package/dist/types/src/hooks/email.d.ts +0 -4
- package/dist/types/src/hooks/email.d.ts.map +0 -1
- package/dist/types/src/hooks/index.d.ts +0 -7
- package/dist/types/src/hooks/index.d.ts.map +0 -1
- package/dist/types/src/hooks/invocation-handler.d.ts +0 -5
- package/dist/types/src/hooks/invocation-handler.d.ts.map +0 -1
- package/dist/types/src/hooks/processor.d.ts +0 -75
- package/dist/types/src/hooks/processor.d.ts.map +0 -1
- package/dist/types/src/hooks/processor.test.d.ts +0 -2
- package/dist/types/src/hooks/processor.test.d.ts.map +0 -1
- package/dist/types/src/hooks/useChatProcessor.d.ts +0 -7
- package/dist/types/src/hooks/useChatProcessor.d.ts.map +0 -1
- package/dist/types/src/hooks/useLocalTriggerManager.d.ts +0 -3
- package/dist/types/src/hooks/useLocalTriggerManager.d.ts.map +0 -1
- package/dist/types/src/hooks/useMessageQueue.d.ts +0 -41
- package/dist/types/src/hooks/useMessageQueue.d.ts.map +0 -1
- package/dist/types/src/hooks/useServices.d.ts +0 -7
- package/dist/types/src/hooks/useServices.d.ts.map +0 -1
- package/dist/types/src/hooks/useTextInputEvents.d.ts +0 -13
- package/dist/types/src/hooks/useTextInputEvents.d.ts.map +0 -1
- package/dist/types/src/presets.d.ts +0 -9
- package/dist/types/src/presets.d.ts.map +0 -1
- package/dist/types/src/testing/test-services.d.ts +0 -5
- package/dist/types/src/testing/test-services.d.ts.map +0 -1
- package/dist/types/src/tools/function.d.ts +0 -5
- package/dist/types/src/tools/function.d.ts.map +0 -1
- package/dist/types/src/tools/index.d.ts +0 -3
- package/dist/types/src/tools/index.d.ts.map +0 -1
- package/dist/types/src/tools/openapi.d.ts +0 -10
- package/dist/types/src/tools/openapi.d.ts.map +0 -1
- package/dist/types/src/tools/openapi.test.d.ts +0 -2
- package/dist/types/src/tools/openapi.test.d.ts.map +0 -1
- package/dist/types/src/types/index.d.ts +0 -4
- package/dist/types/src/types/index.d.ts.map +0 -1
- package/dist/types/src/types/registry.d.ts +0 -10
- package/dist/types/src/types/registry.d.ts.map +0 -1
- package/dist/types/src/types/schema.d.ts +0 -221
- package/dist/types/src/types/schema.d.ts.map +0 -1
- package/dist/types/src/types/types.d.ts +0 -19
- package/dist/types/src/types/types.d.ts.map +0 -1
- package/src/capabilities/ai-client.ts +0 -19
- package/src/capabilities/app-graph-builder.ts +0 -100
- package/src/capabilities/capabilities.ts +0 -12
- package/src/capabilities/intent-resolver.ts +0 -26
- package/src/components/AmbientDialog/AmbientDialog.stories.tsx +0 -81
- package/src/components/AmbientDialog/AmbientDialog.tsx +0 -103
- package/src/components/AmbientDialog/index.ts +0 -5
- package/src/components/AssistantDialog/AssistantDialog.tsx +0 -23
- package/src/components/AssistantDialog/index.ts +0 -5
- package/src/components/ChatContainer/ChatContainer.tsx +0 -19
- package/src/components/ChatContainer/index.ts +0 -9
- package/src/components/Prompt/Prompt.stories.tsx +0 -79
- package/src/components/Prompt/Prompt.tsx +0 -79
- package/src/components/Prompt/PromptBar.tsx +0 -100
- package/src/components/Prompt/autocomplete.ts +0 -212
- package/src/components/Prompt/index.ts +0 -6
- package/src/components/PromptEditor/PromptEditor.stories.tsx +0 -64
- package/src/components/PromptEditor/PromptEditor.tsx +0 -222
- package/src/components/PromptEditor/index.ts +0 -5
- package/src/components/PromptEditor/prompt-extension.ts +0 -43
- package/src/components/PromptEditor/types.tsx +0 -28
- package/src/components/ServiceRegistry/ServiceRegistry.stories.tsx +0 -49
- package/src/components/ServiceRegistry/ServiceRegistry.tsx +0 -76
- package/src/components/ServiceRegistry/index.ts +0 -5
- package/src/components/Thread/Thread.stories.tsx +0 -210
- package/src/components/Thread/Thread.tsx +0 -106
- package/src/components/Thread/ThreadContainer.stories.tsx +0 -245
- package/src/components/Thread/ThreadContainer.tsx +0 -67
- package/src/components/Thread/ThreadMessage.tsx +0 -187
- package/src/components/Thread/ToolInvocations.tsx +0 -86
- package/src/components/Thread/index.ts +0 -6
- package/src/components/Thread/reducer.ts +0 -52
- package/src/components/Toolbox/Toolbox.stories.tsx +0 -66
- package/src/components/Toolbox/Toolbox.tsx +0 -89
- package/src/components/Toolbox/index.ts +0 -5
- package/src/hooks/email.ts +0 -49
- package/src/hooks/index.ts +0 -11
- package/src/hooks/invocation-handler.ts +0 -109
- package/src/hooks/processor.test.ts +0 -15
- package/src/hooks/processor.ts +0 -218
- package/src/hooks/useChatProcessor.tsx +0 -75
- package/src/hooks/useLocalTriggerManager.ts +0 -82
- package/src/hooks/useMessageQueue.ts +0 -23
- package/src/hooks/useServices.ts +0 -28
- package/src/hooks/useTextInputEvents.ts +0 -49
- package/src/presets.ts +0 -248
- package/src/testing/test-services.ts +0 -131
- package/src/tools/function.ts +0 -47
- package/src/tools/index.ts +0 -6
- package/src/tools/openapi.test.ts +0 -224
- package/src/tools/openapi.ts +0 -331
- package/src/types/index.ts +0 -7
- package/src/types/registry.ts +0 -26
- package/src/types/schema.ts +0 -132
- package/src/types/types.ts +0 -22
- package/src/typings.d.ts +0 -9
package/dist/lib/node/index.cjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,452 +17,87 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
var node_exports = {};
|
|
20
30
|
__export(node_exports, {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
AUTOMATION_PLUGIN: () => import_chunk_BAQRBGOJ.AUTOMATION_PLUGIN,
|
|
24
|
-
ApiAuthorization: () => import_chunk_NUOYHYAF.ApiAuthorization,
|
|
25
|
-
AssistantDialog: () => import_chunk_K3F5JNZ6.AssistantDialog,
|
|
26
|
-
AutomationAction: () => import_chunk_NUOYHYAF.AutomationAction,
|
|
27
|
-
AutomationPanel: () => import_chunk_K3F5JNZ6.AutomationPanel,
|
|
31
|
+
AUTOMATION_PLUGIN: () => import_chunk_ORMEYEBE.AUTOMATION_PLUGIN,
|
|
32
|
+
AutomationPanel: () => import_chunk_CB5OB6JH.AutomationPanel,
|
|
28
33
|
AutomationPlugin: () => AutomationPlugin,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
ChainPromptType: () => import_chunk_NUOYHYAF.ChainPromptType,
|
|
32
|
-
ChainType: () => import_chunk_NUOYHYAF.ChainType,
|
|
33
|
-
ChatContainer: () => import_chunk_K3F5JNZ6.ChatContainer,
|
|
34
|
-
PromptEditor: () => import_chunk_K3F5JNZ6.PromptEditor,
|
|
35
|
-
ServiceRegistry: () => import_chunk_K3F5JNZ6.ServiceRegistry,
|
|
36
|
-
ServiceType: () => import_chunk_NUOYHYAF.ServiceType,
|
|
37
|
-
Thread: () => import_chunk_BZFAEBME.Thread,
|
|
38
|
-
ThreadContainer: () => import_chunk_BZFAEBME.ThreadContainer,
|
|
39
|
-
Toolbox: () => import_chunk_BZFAEBME.Toolbox,
|
|
40
|
-
ToolboxContainer: () => import_chunk_BZFAEBME.ToolboxContainer,
|
|
41
|
-
TriggerEditor: () => import_chunk_V4L7LTWM.TriggerEditor,
|
|
42
|
-
categoryIcons: () => import_chunk_NUOYHYAF.categoryIcons,
|
|
43
|
-
chainPresets: () => chainPresets,
|
|
44
|
-
meta: () => import_chunk_BAQRBGOJ.meta,
|
|
45
|
-
str: () => str
|
|
34
|
+
TriggerEditor: () => import_chunk_7Q5SNGCL.TriggerEditor,
|
|
35
|
+
meta: () => import_chunk_ORMEYEBE.meta
|
|
46
36
|
});
|
|
47
37
|
module.exports = __toCommonJS(node_exports);
|
|
48
|
-
var
|
|
49
|
-
var
|
|
50
|
-
var
|
|
51
|
-
var import_chunk_VNBYGJ4K = require("./chunk-VNBYGJ4K.cjs");
|
|
52
|
-
var import_chunk_NUOYHYAF = require("./chunk-NUOYHYAF.cjs");
|
|
53
|
-
var import_chunk_BAQRBGOJ = require("./chunk-BAQRBGOJ.cjs");
|
|
38
|
+
var import_chunk_CB5OB6JH = require("./chunk-CB5OB6JH.cjs");
|
|
39
|
+
var import_chunk_7Q5SNGCL = require("./chunk-7Q5SNGCL.cjs");
|
|
40
|
+
var import_chunk_ORMEYEBE = require("./chunk-ORMEYEBE.cjs");
|
|
54
41
|
var import_app_framework = require("@dxos/app-framework");
|
|
55
42
|
var import_functions = require("@dxos/functions");
|
|
56
43
|
var import_plugin_client = require("@dxos/plugin-client");
|
|
57
44
|
var import_plugin_deck = require("@dxos/plugin-deck");
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var import_live_object = require("@dxos/live-object");
|
|
45
|
+
var import_app_framework2 = require("@dxos/app-framework");
|
|
46
|
+
var ComplementaryPanel = (0, import_app_framework2.lazy)(() => import("./complementary-panel-ZYJJ42ZU.cjs"));
|
|
47
|
+
var ReactSurface = (0, import_app_framework2.lazy)(() => import("./react-surface-2WRVAPGR.cjs"));
|
|
62
48
|
var translations_default = [
|
|
63
49
|
{
|
|
64
50
|
"en-US": {
|
|
65
|
-
[
|
|
66
|
-
"typename label": "AI Chat"
|
|
67
|
-
},
|
|
68
|
-
[import_chunk_BAQRBGOJ.AUTOMATION_PLUGIN]: {
|
|
69
|
-
"open ambient chat label": "Open AI chat",
|
|
51
|
+
[import_chunk_ORMEYEBE.AUTOMATION_PLUGIN]: {
|
|
70
52
|
"plugin name": "Automation",
|
|
71
|
-
"object placeholder": "New prompt",
|
|
72
|
-
"create object label": "Create prompt",
|
|
73
|
-
"create trigger label": "Create trigger",
|
|
74
|
-
"create stack section label": "Create prompt",
|
|
75
|
-
"command placeholder": "Enter slash command...",
|
|
76
|
-
"template placeholder": "Enter template...",
|
|
77
|
-
"value placeholder": "Enter value...",
|
|
78
|
-
"select preset template placeholder": "Select preset",
|
|
79
|
-
"open automation panel label": "Show Automations",
|
|
80
53
|
"automation panel label": "Automations",
|
|
81
|
-
"
|
|
82
|
-
"assistant dialog title": "Assistant",
|
|
83
|
-
"open assistant label": "Open assistant",
|
|
84
|
-
"chat input placeholder": "Ask a question...",
|
|
85
|
-
"chat stop": "Cancel request.",
|
|
86
|
-
"function select label": "Function",
|
|
87
|
-
"function select placeholder": "Select function",
|
|
88
|
-
"function enabled": "Enabled",
|
|
89
|
-
"trigger select label": "Trigger",
|
|
90
|
-
"trigger select placeholder": "Trigger type",
|
|
54
|
+
"new trigger label": "New Trigger",
|
|
91
55
|
"trigger type timer": "Timer",
|
|
92
56
|
"trigger type webhook": "Webhook",
|
|
93
57
|
"trigger type websocket": "Websocket",
|
|
94
58
|
"trigger type subscription": "Subscription",
|
|
95
59
|
"trigger type email": "Email",
|
|
96
60
|
"trigger type queue": "Queue",
|
|
97
|
-
"trigger filter": "Filter",
|
|
98
|
-
"trigger cron": "Cron",
|
|
99
|
-
"trigger method": "Method",
|
|
100
|
-
"trigger endpoint": "Endpoint",
|
|
101
61
|
"trigger copy url": "Copy URL",
|
|
102
62
|
"trigger copy email": "Copy Email",
|
|
103
63
|
"trigger meta add": "Add",
|
|
104
64
|
"trigger meta remove": "Remove",
|
|
105
|
-
"trigger meta prop name placeholder": "New meta property name"
|
|
106
|
-
"prompt placeholder": "Ask a question...",
|
|
107
|
-
"microphone button": "Click to speak",
|
|
108
|
-
"cancel processing button": "Stop processing"
|
|
65
|
+
"trigger meta prop name placeholder": "New meta property name"
|
|
109
66
|
}
|
|
110
67
|
}
|
|
111
68
|
}
|
|
112
69
|
];
|
|
113
|
-
var AutomationPlugin = () => (0, import_app_framework.definePlugin)(
|
|
70
|
+
var AutomationPlugin = () => (0, import_app_framework.definePlugin)(import_chunk_ORMEYEBE.meta, [
|
|
114
71
|
(0, import_app_framework.defineModule)({
|
|
115
|
-
id: `${
|
|
72
|
+
id: `${import_chunk_ORMEYEBE.meta.id}/module/translations`,
|
|
116
73
|
activatesOn: import_app_framework.Events.SetupTranslations,
|
|
117
74
|
activate: () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.Translations, translations_default)
|
|
118
75
|
}),
|
|
119
76
|
(0, import_app_framework.defineModule)({
|
|
120
|
-
id: `${
|
|
121
|
-
activatesOn: import_app_framework.Events.SetupMetadata,
|
|
122
|
-
activate: () => [
|
|
123
|
-
(0, import_app_framework.contributes)(import_app_framework.Capabilities.Metadata, {
|
|
124
|
-
id: import_chunk_NUOYHYAF.ChainType.typename,
|
|
125
|
-
metadata: {
|
|
126
|
-
placeholder: [
|
|
127
|
-
"object placeholder",
|
|
128
|
-
{
|
|
129
|
-
ns: import_chunk_BAQRBGOJ.AUTOMATION_PLUGIN
|
|
130
|
-
}
|
|
131
|
-
],
|
|
132
|
-
icon: "ph--magic-wand--regular",
|
|
133
|
-
// TODO(wittjosiah): Move out of metadata.
|
|
134
|
-
loadReferences: async (chain) => await import_echo.RefArray.loadAll(chain.prompts ?? [])
|
|
135
|
-
}
|
|
136
|
-
}),
|
|
137
|
-
(0, import_app_framework.contributes)(import_app_framework.Capabilities.Metadata, {
|
|
138
|
-
id: import_chunk_NUOYHYAF.AIChatType.typename,
|
|
139
|
-
metadata: {
|
|
140
|
-
placeholder: [
|
|
141
|
-
"object placeholder",
|
|
142
|
-
{
|
|
143
|
-
ns: import_chunk_BAQRBGOJ.AUTOMATION_PLUGIN
|
|
144
|
-
}
|
|
145
|
-
],
|
|
146
|
-
icon: "ph--atom--regular"
|
|
147
|
-
}
|
|
148
|
-
})
|
|
149
|
-
]
|
|
150
|
-
}),
|
|
151
|
-
(0, import_app_framework.defineModule)({
|
|
152
|
-
id: `${import_chunk_BAQRBGOJ.meta.id}/module/object-form`,
|
|
153
|
-
activatesOn: import_plugin_client.ClientEvents.SetupSchema,
|
|
154
|
-
activate: () => (0, import_app_framework.contributes)(import_plugin_space.SpaceCapabilities.ObjectForm, (0, import_types.defineObjectForm)({
|
|
155
|
-
objectSchema: import_chunk_NUOYHYAF.AIChatType,
|
|
156
|
-
getIntent: (_, options) => (0, import_app_framework.createIntent)(import_chunk_NUOYHYAF.AutomationAction.CreateChat, {
|
|
157
|
-
spaceId: options.space.id
|
|
158
|
-
})
|
|
159
|
-
}))
|
|
160
|
-
}),
|
|
161
|
-
(0, import_app_framework.defineModule)({
|
|
162
|
-
id: `${import_chunk_BAQRBGOJ.meta.id}/module/schema`,
|
|
77
|
+
id: `${import_chunk_ORMEYEBE.meta.id}/module/schema`,
|
|
163
78
|
activatesOn: import_plugin_client.ClientEvents.SetupSchema,
|
|
164
79
|
activate: () => (0, import_app_framework.contributes)(import_plugin_client.ClientCapabilities.Schema, [
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
import_functions.FunctionTrigger,
|
|
168
|
-
import_chunk_NUOYHYAF.ServiceType
|
|
80
|
+
import_functions.FunctionType,
|
|
81
|
+
import_functions.FunctionTrigger
|
|
169
82
|
])
|
|
170
83
|
}),
|
|
171
84
|
(0, import_app_framework.defineModule)({
|
|
172
|
-
id: `${
|
|
85
|
+
id: `${import_chunk_ORMEYEBE.meta.id}/module/complementary-panels`,
|
|
173
86
|
activatesOn: import_plugin_deck.DeckEvents.SetupComplementaryPanels,
|
|
174
|
-
activate:
|
|
175
|
-
(0, import_app_framework.contributes)(import_plugin_deck.DeckCapabilities.ComplementaryPanel, {
|
|
176
|
-
id: "service-registry",
|
|
177
|
-
label: [
|
|
178
|
-
"service registry label",
|
|
179
|
-
{
|
|
180
|
-
ns: import_chunk_BAQRBGOJ.AUTOMATION_PLUGIN
|
|
181
|
-
}
|
|
182
|
-
],
|
|
183
|
-
icon: "ph--plugs--regular"
|
|
184
|
-
}),
|
|
185
|
-
(0, import_app_framework.contributes)(import_plugin_deck.DeckCapabilities.ComplementaryPanel, {
|
|
186
|
-
id: "automation",
|
|
187
|
-
label: [
|
|
188
|
-
"automation panel label",
|
|
189
|
-
{
|
|
190
|
-
ns: import_chunk_BAQRBGOJ.AUTOMATION_PLUGIN
|
|
191
|
-
}
|
|
192
|
-
],
|
|
193
|
-
icon: "ph--magic-wand--regular",
|
|
194
|
-
filter: (node) => (0, import_echo.isEchoObject)(node.data) && !!(0, import_echo.getSpace)(node.data)
|
|
195
|
-
})
|
|
196
|
-
]
|
|
87
|
+
activate: ComplementaryPanel
|
|
197
88
|
}),
|
|
198
89
|
(0, import_app_framework.defineModule)({
|
|
199
|
-
id: `${
|
|
90
|
+
id: `${import_chunk_ORMEYEBE.meta.id}/module/react-surface`,
|
|
200
91
|
activatesOn: import_app_framework.Events.SetupReactSurface,
|
|
201
|
-
|
|
202
|
-
activatesBefore: [
|
|
203
|
-
import_app_framework.Events.SetupArtifactDefinition
|
|
204
|
-
],
|
|
205
|
-
activate: import_chunk_BZFAEBME.ReactSurface
|
|
206
|
-
}),
|
|
207
|
-
(0, import_app_framework.defineModule)({
|
|
208
|
-
id: `${import_chunk_BAQRBGOJ.meta.id}/module/app-graph-builder`,
|
|
209
|
-
activatesOn: import_app_framework.Events.SetupAppGraph,
|
|
210
|
-
activate: import_chunk_BZFAEBME.AppGraphBuilder
|
|
211
|
-
}),
|
|
212
|
-
(0, import_app_framework.defineModule)({
|
|
213
|
-
id: `${import_chunk_BAQRBGOJ.meta.id}/module/intent-resolver`,
|
|
214
|
-
activatesOn: import_app_framework.Events.SetupIntentResolver,
|
|
215
|
-
activate: import_chunk_BZFAEBME.IntentResolver
|
|
216
|
-
}),
|
|
217
|
-
(0, import_app_framework.defineModule)({
|
|
218
|
-
id: `${import_chunk_BAQRBGOJ.meta.id}/module/ai-client`,
|
|
219
|
-
activatesOn: import_plugin_client.ClientEvents.ClientReady,
|
|
220
|
-
activate: import_chunk_BZFAEBME.AiClient
|
|
92
|
+
activate: ReactSurface
|
|
221
93
|
})
|
|
222
94
|
]);
|
|
223
|
-
var str = (...text) => text.filter((value) => value !== void 0 && value !== false).flat().join("\n");
|
|
224
|
-
var chainPresets = [
|
|
225
|
-
{
|
|
226
|
-
id: "dxos.org/prompt/translate",
|
|
227
|
-
title: "Translate",
|
|
228
|
-
createPrompt: () => (0, import_live_object.create)(import_chunk_NUOYHYAF.ChainPromptType, {
|
|
229
|
-
command: "say",
|
|
230
|
-
template: str(
|
|
231
|
-
// prettier-ignore
|
|
232
|
-
"Translate the following into {language}:",
|
|
233
|
-
"",
|
|
234
|
-
"---",
|
|
235
|
-
"",
|
|
236
|
-
"{input}"
|
|
237
|
-
),
|
|
238
|
-
inputs: [
|
|
239
|
-
{
|
|
240
|
-
type: import_chunk_NUOYHYAF.ChainInputType.VALUE,
|
|
241
|
-
name: "language",
|
|
242
|
-
value: "japanese"
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
type: import_chunk_NUOYHYAF.ChainInputType.PASS_THROUGH,
|
|
246
|
-
name: "input"
|
|
247
|
-
}
|
|
248
|
-
]
|
|
249
|
-
})
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
id: "dxos.org/prompt/chess",
|
|
253
|
-
title: "Chess",
|
|
254
|
-
createPrompt: () => (0, import_live_object.create)(import_chunk_NUOYHYAF.ChainPromptType, {
|
|
255
|
-
command: "hint",
|
|
256
|
-
template: str(
|
|
257
|
-
// prettier-ignore
|
|
258
|
-
"You are a machine that is an expert chess player.",
|
|
259
|
-
"",
|
|
260
|
-
"The move history of the current game is: {history}",
|
|
261
|
-
"",
|
|
262
|
-
"Suggest the next move and very briefly explain your strategy in a couple of sentences."
|
|
263
|
-
),
|
|
264
|
-
inputs: [
|
|
265
|
-
{
|
|
266
|
-
type: import_chunk_NUOYHYAF.ChainInputType.CONTEXT,
|
|
267
|
-
name: "history",
|
|
268
|
-
value: "object.pgn"
|
|
269
|
-
}
|
|
270
|
-
]
|
|
271
|
-
})
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
id: "dxos.org/prompt/mermaid",
|
|
275
|
-
title: "Mermaid",
|
|
276
|
-
createPrompt: () => (0, import_live_object.create)(import_chunk_NUOYHYAF.ChainPromptType, {
|
|
277
|
-
command: "draw",
|
|
278
|
-
template: str(
|
|
279
|
-
// prettier-ignore
|
|
280
|
-
"Create a simplified mermaid graph representing the text below.",
|
|
281
|
-
"Do not explain anything.",
|
|
282
|
-
"",
|
|
283
|
-
"---",
|
|
284
|
-
"",
|
|
285
|
-
"{input}"
|
|
286
|
-
),
|
|
287
|
-
inputs: [
|
|
288
|
-
{
|
|
289
|
-
type: import_chunk_NUOYHYAF.ChainInputType.PASS_THROUGH,
|
|
290
|
-
name: "input"
|
|
291
|
-
}
|
|
292
|
-
]
|
|
293
|
-
})
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
id: "dxos.org/prompt/list",
|
|
297
|
-
title: "List",
|
|
298
|
-
createPrompt: () => (0, import_live_object.create)(import_chunk_NUOYHYAF.ChainPromptType, {
|
|
299
|
-
command: "list",
|
|
300
|
-
template: str(
|
|
301
|
-
// prettier-ignore
|
|
302
|
-
"You are a machine that only replies with valid, iterable RFC8259 compliant JSON in your responses.",
|
|
303
|
-
"Your entire response should be a single array of JSON objects.",
|
|
304
|
-
"",
|
|
305
|
-
"Your entire response should be a map where the key is the type and the value is a single array of JSON objects conforming to the following types:",
|
|
306
|
-
"",
|
|
307
|
-
"{schema}",
|
|
308
|
-
"",
|
|
309
|
-
"---",
|
|
310
|
-
"",
|
|
311
|
-
"{question}"
|
|
312
|
-
),
|
|
313
|
-
inputs: [
|
|
314
|
-
{
|
|
315
|
-
type: import_chunk_NUOYHYAF.ChainInputType.SCHEMA,
|
|
316
|
-
name: "schema",
|
|
317
|
-
value: "example.com/type/project"
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
type: import_chunk_NUOYHYAF.ChainInputType.PASS_THROUGH,
|
|
321
|
-
name: "question"
|
|
322
|
-
}
|
|
323
|
-
]
|
|
324
|
-
})
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
id: "dxos.org/prompt/base",
|
|
328
|
-
title: "RAG",
|
|
329
|
-
createPrompt: () => (0, import_live_object.create)(import_chunk_NUOYHYAF.ChainPromptType, {
|
|
330
|
-
command: "rag",
|
|
331
|
-
template: str(
|
|
332
|
-
// prettier-ignore
|
|
333
|
-
"Very briefly answer the question based only on the following context and say if you don't know the answer.",
|
|
334
|
-
// 'answer the question using the following context as well as your training data:',
|
|
335
|
-
"",
|
|
336
|
-
"{context}",
|
|
337
|
-
"",
|
|
338
|
-
"---",
|
|
339
|
-
"",
|
|
340
|
-
"question: {question}"
|
|
341
|
-
),
|
|
342
|
-
inputs: [
|
|
343
|
-
{
|
|
344
|
-
type: import_chunk_NUOYHYAF.ChainInputType.RETRIEVER,
|
|
345
|
-
name: "context"
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
type: import_chunk_NUOYHYAF.ChainInputType.CONTEXT,
|
|
349
|
-
name: "question",
|
|
350
|
-
value: "object.text"
|
|
351
|
-
}
|
|
352
|
-
]
|
|
353
|
-
})
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
id: "dxos.org/prompt/lookup",
|
|
357
|
-
title: "Lookup",
|
|
358
|
-
createPrompt: () => (0, import_live_object.create)(import_chunk_NUOYHYAF.ChainPromptType, {
|
|
359
|
-
command: "lookup",
|
|
360
|
-
template: str(
|
|
361
|
-
// prettier-ignore
|
|
362
|
-
"Lookup and very briefly summarize the following topic in one or two sentences:",
|
|
363
|
-
"",
|
|
364
|
-
"---",
|
|
365
|
-
"",
|
|
366
|
-
"{input}"
|
|
367
|
-
),
|
|
368
|
-
inputs: [
|
|
369
|
-
{
|
|
370
|
-
type: import_chunk_NUOYHYAF.ChainInputType.CONTEXT,
|
|
371
|
-
name: "input",
|
|
372
|
-
value: "text"
|
|
373
|
-
}
|
|
374
|
-
]
|
|
375
|
-
})
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
id: "dxos.org/prompt/extract",
|
|
379
|
-
title: "Extract",
|
|
380
|
-
createPrompt: () => (0, import_live_object.create)(import_chunk_NUOYHYAF.ChainPromptType, {
|
|
381
|
-
command: "extract",
|
|
382
|
-
template: str(
|
|
383
|
-
// prettier-ignore
|
|
384
|
-
"List all people and companies mentioned in the text below.",
|
|
385
|
-
"",
|
|
386
|
-
"You are a machine that only replies with valid, iterable RFC8259 compliant JSON in your responses.",
|
|
387
|
-
"Your entire response should be a map where the key is the type and the value is a single array of JSON objects conforming to the following types:",
|
|
388
|
-
"",
|
|
389
|
-
"{contact}",
|
|
390
|
-
"{company}",
|
|
391
|
-
"",
|
|
392
|
-
"---",
|
|
393
|
-
"",
|
|
394
|
-
"{input}"
|
|
395
|
-
),
|
|
396
|
-
inputs: [
|
|
397
|
-
{
|
|
398
|
-
type: import_chunk_NUOYHYAF.ChainInputType.SCHEMA,
|
|
399
|
-
name: "contact",
|
|
400
|
-
value: "example.com/type/contact"
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
type: import_chunk_NUOYHYAF.ChainInputType.SCHEMA,
|
|
404
|
-
name: "company",
|
|
405
|
-
value: "example.com/type/organization"
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
type: import_chunk_NUOYHYAF.ChainInputType.CONTEXT,
|
|
409
|
-
name: "input",
|
|
410
|
-
value: "text"
|
|
411
|
-
}
|
|
412
|
-
]
|
|
413
|
-
})
|
|
414
|
-
},
|
|
415
|
-
{
|
|
416
|
-
id: "dxos.org/prompt/discord",
|
|
417
|
-
title: "Summarize",
|
|
418
|
-
createPrompt: () => (0, import_live_object.create)(import_chunk_NUOYHYAF.ChainPromptType, {
|
|
419
|
-
command: "summarize",
|
|
420
|
-
template: str(
|
|
421
|
-
// prettier-ignore
|
|
422
|
-
"Summarize what the team is working on and format it as a markdown table without any explanation.",
|
|
423
|
-
"",
|
|
424
|
-
"---",
|
|
425
|
-
"",
|
|
426
|
-
"{context}"
|
|
427
|
-
),
|
|
428
|
-
inputs: [
|
|
429
|
-
{
|
|
430
|
-
type: import_chunk_NUOYHYAF.ChainInputType.RESOLVER,
|
|
431
|
-
name: "context",
|
|
432
|
-
value: "discord.messages.recent"
|
|
433
|
-
}
|
|
434
|
-
]
|
|
435
|
-
})
|
|
436
|
-
}
|
|
437
|
-
];
|
|
438
95
|
// Annotate the CommonJS export names for ESM import in node:
|
|
439
96
|
0 && (module.exports = {
|
|
440
|
-
AIChatType,
|
|
441
|
-
ASSISTANT_DIALOG,
|
|
442
97
|
AUTOMATION_PLUGIN,
|
|
443
|
-
ApiAuthorization,
|
|
444
|
-
AssistantDialog,
|
|
445
|
-
AutomationAction,
|
|
446
98
|
AutomationPanel,
|
|
447
99
|
AutomationPlugin,
|
|
448
|
-
ChainInputSchema,
|
|
449
|
-
ChainInputType,
|
|
450
|
-
ChainPromptType,
|
|
451
|
-
ChainType,
|
|
452
|
-
ChatContainer,
|
|
453
|
-
PromptEditor,
|
|
454
|
-
ServiceRegistry,
|
|
455
|
-
ServiceType,
|
|
456
|
-
Thread,
|
|
457
|
-
ThreadContainer,
|
|
458
|
-
Toolbox,
|
|
459
|
-
ToolboxContainer,
|
|
460
100
|
TriggerEditor,
|
|
461
|
-
|
|
462
|
-
chainPresets,
|
|
463
|
-
meta,
|
|
464
|
-
str
|
|
101
|
+
meta
|
|
465
102
|
});
|
|
466
103
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/AutomationPlugin.tsx", "../../../src/
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { FunctionTrigger } from '@dxos/functions';\nimport { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';\nimport { DeckCapabilities, DeckEvents } from '@dxos/plugin-deck';\nimport { SpaceCapabilities } from '@dxos/plugin-space';\nimport { defineObjectForm } from '@dxos/plugin-space/types';\nimport { RefArray, isEchoObject, getSpace } from '@dxos/react-client/echo';\n\nimport { AiClient, AppGraphBuilder, IntentResolver, ReactSurface } from './capabilities';\nimport { AUTOMATION_PLUGIN, meta } from './meta';\nimport translations from './translations';\nimport { AutomationAction, ChainPromptType, ChainType, AIChatType, ServiceType } from './types';\n\n// TODO(wittjosiah): Rename to AssistantPlugin?\nexport const AutomationPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/metadata`,\n activatesOn: Events.SetupMetadata,\n activate: () => [\n contributes(Capabilities.Metadata, {\n id: ChainType.typename,\n metadata: {\n placeholder: ['object placeholder', { ns: AUTOMATION_PLUGIN }],\n icon: 'ph--magic-wand--regular',\n // TODO(wittjosiah): Move out of metadata.\n loadReferences: async (chain: ChainType) => await RefArray.loadAll(chain.prompts ?? []),\n },\n }),\n contributes(Capabilities.Metadata, {\n id: AIChatType.typename,\n metadata: {\n placeholder: ['object placeholder', { ns: AUTOMATION_PLUGIN }],\n icon: 'ph--atom--regular',\n },\n }),\n ],\n }),\n defineModule({\n id: `${meta.id}/module/object-form`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () =>\n contributes(\n SpaceCapabilities.ObjectForm,\n defineObjectForm({\n objectSchema: AIChatType,\n getIntent: (_, options) => createIntent(AutomationAction.CreateChat, { spaceId: options.space.id }),\n }),\n ),\n }),\n defineModule({\n id: `${meta.id}/module/schema`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () =>\n contributes(ClientCapabilities.Schema, [ChainType, ChainPromptType, FunctionTrigger, ServiceType]),\n }),\n defineModule({\n id: `${meta.id}/module/complementary-panels`,\n activatesOn: DeckEvents.SetupComplementaryPanels,\n activate: () => [\n contributes(DeckCapabilities.ComplementaryPanel, {\n id: 'service-registry',\n label: ['service registry label', { ns: AUTOMATION_PLUGIN }],\n icon: 'ph--plugs--regular',\n }),\n contributes(DeckCapabilities.ComplementaryPanel, {\n id: 'automation',\n label: ['automation panel label', { ns: AUTOMATION_PLUGIN }],\n icon: 'ph--magic-wand--regular',\n filter: (node) => isEchoObject(node.data) && !!getSpace(node.data),\n }),\n ],\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n // TODO(wittjosiah): Should occur before the chat is loaded when surfaces activation is more granular.\n activatesBefore: [Events.SetupArtifactDefinition],\n activate: ReactSurface,\n }),\n defineModule({\n id: `${meta.id}/module/app-graph-builder`,\n activatesOn: Events.SetupAppGraph,\n activate: AppGraphBuilder,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\n defineModule({\n id: `${meta.id}/module/ai-client`,\n activatesOn: ClientEvents.ClientReady,\n activate: AiClient,\n }),\n ]);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { AUTOMATION_PLUGIN } from './meta';\nimport { AIChatType } from './types';\n\nexport default [\n {\n 'en-US': {\n [AIChatType.typename]: {\n 'typename label': 'AI Chat',\n },\n [AUTOMATION_PLUGIN]: {\n 'open ambient chat label': 'Open AI chat',\n 'plugin name': 'Automation',\n 'object placeholder': 'New prompt',\n 'create object label': 'Create prompt',\n 'create trigger label': 'Create trigger',\n 'create stack section label': 'Create prompt',\n 'command placeholder': 'Enter slash command...',\n 'template placeholder': 'Enter template...',\n 'value placeholder': 'Enter value...',\n 'select preset template placeholder': 'Select preset',\n 'open automation panel label': 'Show Automations',\n 'automation panel label': 'Automations',\n 'service registry label': 'Service Registry',\n\n 'assistant dialog title': 'Assistant',\n 'open assistant label': 'Open assistant',\n\n 'chat input placeholder': 'Ask a question...',\n 'chat stop': 'Cancel request.',\n\n 'function select label': 'Function',\n 'function select placeholder': 'Select function',\n 'function enabled': 'Enabled',\n\n 'trigger select label': 'Trigger',\n 'trigger select placeholder': 'Trigger type',\n\n 'trigger type timer': 'Timer',\n 'trigger type webhook': 'Webhook',\n 'trigger type websocket': 'Websocket',\n 'trigger type subscription': 'Subscription',\n 'trigger type email': 'Email',\n 'trigger type queue': 'Queue',\n\n 'trigger filter': 'Filter',\n 'trigger cron': 'Cron',\n 'trigger method': 'Method',\n 'trigger endpoint': 'Endpoint',\n\n 'trigger copy url': 'Copy URL',\n 'trigger copy email': 'Copy Email',\n\n 'trigger meta add': 'Add',\n 'trigger meta remove': 'Remove',\n 'trigger meta prop name placeholder': 'New meta property name',\n\n 'prompt placeholder': 'Ask a question...',\n 'microphone button': 'Click to speak',\n 'cancel processing button': 'Stop processing',\n },\n },\n },\n];\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { create } from '@dxos/live-object';\n\nimport { ChainInputType, ChainPromptType } from './types';\n\nexport const str = (...text: (string | undefined | boolean)[]): string =>\n text\n .filter((value) => value !== undefined && value !== false)\n .flat()\n .join('\\n');\n\nexport type Preset = {\n id: string;\n title: string;\n createPrompt: () => ChainPromptType;\n};\n\nexport const chainPresets: Preset[] = [\n {\n id: 'dxos.org/prompt/translate',\n title: 'Translate',\n createPrompt: () =>\n create(ChainPromptType, {\n command: 'say',\n template: str(\n // prettier-ignore\n 'Translate the following into {language}:',\n '',\n '---',\n '',\n '{input}',\n ),\n inputs: [\n {\n type: ChainInputType.VALUE,\n name: 'language',\n value: 'japanese',\n },\n {\n type: ChainInputType.PASS_THROUGH,\n name: 'input',\n },\n // TODO(burdon): Message.\n // {\n // type: ChainInputType.CONTEXT,\n // name: 'input',\n // value: 'object.text',\n // },\n ],\n }),\n },\n {\n id: 'dxos.org/prompt/chess',\n title: 'Chess',\n createPrompt: () =>\n create(ChainPromptType, {\n command: 'hint',\n template: str(\n // prettier-ignore\n 'You are a machine that is an expert chess player.',\n '',\n 'The move history of the current game is: {history}',\n '',\n 'Suggest the next move and very briefly explain your strategy in a couple of sentences.',\n ),\n inputs: [\n {\n type: ChainInputType.CONTEXT,\n name: 'history',\n value: 'object.pgn',\n },\n ],\n }),\n },\n {\n id: 'dxos.org/prompt/mermaid',\n title: 'Mermaid',\n createPrompt: () =>\n create(ChainPromptType, {\n command: 'draw',\n template: str(\n // prettier-ignore\n 'Create a simplified mermaid graph representing the text below.',\n 'Do not explain anything.',\n '',\n '---',\n '',\n '{input}',\n ),\n inputs: [\n {\n type: ChainInputType.PASS_THROUGH,\n name: 'input',\n },\n ],\n }),\n },\n {\n id: 'dxos.org/prompt/list',\n title: 'List',\n createPrompt: () =>\n create(ChainPromptType, {\n command: 'list',\n template: str(\n // prettier-ignore\n 'You are a machine that only replies with valid, iterable RFC8259 compliant JSON in your responses.',\n 'Your entire response should be a single array of JSON objects.',\n '',\n 'Your entire response should be a map where the key is the type and the value is a single array of JSON objects conforming to the following types:',\n '',\n '{schema}',\n '',\n '---',\n '',\n '{question}',\n ),\n inputs: [\n {\n type: ChainInputType.SCHEMA,\n name: 'schema',\n value: 'example.com/type/project',\n },\n {\n type: ChainInputType.PASS_THROUGH,\n name: 'question',\n },\n ],\n }),\n },\n {\n id: 'dxos.org/prompt/base',\n title: 'RAG',\n createPrompt: () =>\n create(ChainPromptType, {\n command: 'rag',\n template: str(\n // prettier-ignore\n \"Very briefly answer the question based only on the following context and say if you don't know the answer.\",\n // 'answer the question using the following context as well as your training data:',\n '',\n '{context}',\n '',\n '---',\n '',\n 'question: {question}',\n ),\n inputs: [\n {\n type: ChainInputType.RETRIEVER,\n name: 'context',\n },\n {\n type: ChainInputType.CONTEXT,\n name: 'question',\n value: 'object.text',\n },\n ],\n }),\n },\n {\n id: 'dxos.org/prompt/lookup',\n title: 'Lookup',\n createPrompt: () =>\n create(ChainPromptType, {\n command: 'lookup',\n template: str(\n // prettier-ignore\n 'Lookup and very briefly summarize the following topic in one or two sentences:',\n '',\n '---',\n '',\n '{input}',\n ),\n inputs: [\n {\n type: ChainInputType.CONTEXT,\n name: 'input',\n value: 'text',\n },\n ],\n }),\n },\n {\n id: 'dxos.org/prompt/extract',\n title: 'Extract',\n createPrompt: () =>\n create(ChainPromptType, {\n command: 'extract',\n template: str(\n // prettier-ignore\n 'List all people and companies mentioned in the text below.',\n '',\n 'You are a machine that only replies with valid, iterable RFC8259 compliant JSON in your responses.',\n 'Your entire response should be a map where the key is the type and the value is a single array of JSON objects conforming to the following types:',\n '',\n '{contact}',\n '{company}',\n '',\n '---',\n '',\n '{input}',\n ),\n inputs: [\n {\n type: ChainInputType.SCHEMA,\n name: 'contact',\n value: 'example.com/type/contact',\n },\n {\n type: ChainInputType.SCHEMA,\n name: 'company',\n value: 'example.com/type/organization',\n },\n {\n type: ChainInputType.CONTEXT,\n name: 'input',\n value: 'text',\n },\n ],\n }),\n },\n {\n id: 'dxos.org/prompt/discord',\n title: 'Summarize',\n createPrompt: () =>\n create(ChainPromptType, {\n command: 'summarize',\n template: str(\n // prettier-ignore\n 'Summarize what the team is working on and format it as a markdown table without any explanation.',\n '',\n '---',\n '',\n '{context}',\n ),\n inputs: [\n {\n type: ChainInputType.RESOLVER,\n name: 'context',\n value: 'discord.messages.recent',\n },\n ],\n }),\n },\n];\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["
|
|
3
|
+
"sources": ["../../../src/AutomationPlugin.tsx", "../../../src/capabilities/index.ts", "../../../src/translations.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Capabilities, contributes, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { FunctionType, FunctionTrigger } from '@dxos/functions';\nimport { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';\nimport { DeckEvents } from '@dxos/plugin-deck';\n\nimport { ComplementaryPanel, ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport translations from './translations';\n\nexport const AutomationPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/schema`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () => contributes(ClientCapabilities.Schema, [FunctionType, FunctionTrigger]),\n }),\n defineModule({\n id: `${meta.id}/module/complementary-panels`,\n activatesOn: DeckEvents.SetupComplementaryPanels,\n activate: ComplementaryPanel,\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: ReactSurface,\n }),\n ]);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const ComplementaryPanel = lazy(() => import('./complementary-panel'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { AUTOMATION_PLUGIN } from './meta';\n\nexport default [\n {\n 'en-US': {\n [AUTOMATION_PLUGIN]: {\n 'plugin name': 'Automation',\n 'automation panel label': 'Automations',\n\n 'new trigger label': 'New Trigger',\n 'trigger type timer': 'Timer',\n 'trigger type webhook': 'Webhook',\n 'trigger type websocket': 'Websocket',\n 'trigger type subscription': 'Subscription',\n 'trigger type email': 'Email',\n 'trigger type queue': 'Queue',\n\n 'trigger copy url': 'Copy URL',\n 'trigger copy email': 'Copy Email',\n\n 'trigger meta add': 'Add',\n 'trigger meta remove': 'Remove',\n 'trigger meta prop name placeholder': 'New meta property name',\n },\n },\n },\n];\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,2BAA8E;AAC9E,uBAA8C;AAC9C,2BAAiD;AACjD,yBAA2B;ACH3B,IAAAA,wBAAqB;AAEd,IAAMC,yBAAqBC,4BAAK,MAAM,OAAO,oCAAA,CAAA;AAC7C,IAAMC,mBAAeD,4BAAK,MAAM,OAAO,8BAAA,CAAA;ACD9C,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACE,uCAAAA,GAAoB;QACnB,eAAe;QACf,0BAA0B;QAE1B,qBAAqB;QACrB,sBAAsB;QACtB,wBAAwB;QACxB,0BAA0B;QAC1B,6BAA6B;QAC7B,sBAAsB;QACtB,sBAAsB;QAEtB,oBAAoB;QACpB,sBAAsB;QAEtB,oBAAoB;QACpB,uBAAuB;QACvB,sCAAsC;MACxC;IACF;EACF;;AFhBK,IAAMC,mBAAmB,UAC9BC,mCAAaC,4BAAM;MACjBC,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,4BAAOC;IACpBC,UAAU,UAAMC,kCAAYC,kCAAaC,cAAcC,oBAAAA;EACzD,CAAA;MACAT,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaQ,kCAAaC;IAC1BN,UAAU,UAAMC,kCAAYM,wCAAmBC,QAAQ;MAACC;MAAcC;KAAgB;EACxF,CAAA;MACAf,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAac,8BAAWC;IACxBZ,UAAUZ;EACZ,CAAA;MACAO,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,4BAAOe;IACpBb,UAAUV;EACZ,CAAA;CACD;",
|
|
6
|
+
"names": ["import_app_framework", "ComplementaryPanel", "lazy", "ReactSurface", "AUTOMATION_PLUGIN", "AutomationPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "ClientEvents", "SetupSchema", "ClientCapabilities", "Schema", "FunctionType", "FunctionTrigger", "DeckEvents", "SetupComplementaryPanels", "SetupReactSurface"]
|
|
7
7
|
}
|