@dxos/plugin-automation 0.7.5-labs.ff2ff30 → 0.7.5-main.5ae2ba8
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-R4JH4TLE.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 +21 -377
- 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-QXIHYOMF.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-EQYHOTGG.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 +36 -378
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-LWDY7SQG.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-EMVA6QUT.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 +21 -377
- 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 +1 -2
- 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.d.ts +1 -2
- package/dist/types/src/components/TriggerEditor/TriggerEditor.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 +1 -12
- 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 -94
- package/dist/types/src/translations.d.ts.map +1 -1
- package/package.json +23 -73
- package/src/AutomationPlugin.tsx +9 -64
- 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 -29
- package/dist/lib/browser/AutomationPanel-VW2XIUPU.mjs +0 -8
- package/dist/lib/browser/AutomationPanel-VW2XIUPU.mjs.map +0 -7
- package/dist/lib/browser/ChatContainer-5TAVTN3T.mjs +0 -12
- package/dist/lib/browser/ChatContainer-5TAVTN3T.mjs.map +0 -7
- package/dist/lib/browser/ai-client-5CNY6JBF.mjs +0 -22
- package/dist/lib/browser/ai-client-5CNY6JBF.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-FZGK55G7.mjs +0 -197
- package/dist/lib/browser/app-graph-builder-FZGK55G7.mjs.map +0 -7
- package/dist/lib/browser/chunk-2H2EUYXL.mjs +0 -15
- package/dist/lib/browser/chunk-2H2EUYXL.mjs.map +0 -7
- package/dist/lib/browser/chunk-DVE33EZL.mjs +0 -1602
- package/dist/lib/browser/chunk-DVE33EZL.mjs.map +0 -7
- package/dist/lib/browser/chunk-MJK7GL5P.mjs +0 -307
- package/dist/lib/browser/chunk-MJK7GL5P.mjs.map +0 -7
- package/dist/lib/browser/chunk-NQFZ6XRX.mjs +0 -243
- package/dist/lib/browser/chunk-NQFZ6XRX.mjs.map +0 -7
- package/dist/lib/browser/chunk-Q4IMHYGH.mjs +0 -150
- package/dist/lib/browser/chunk-Q4IMHYGH.mjs.map +0 -7
- package/dist/lib/browser/chunk-R4JH4TLE.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-BWAXKT27.mjs +0 -29
- package/dist/lib/browser/intent-resolver-BWAXKT27.mjs.map +0 -7
- package/dist/lib/browser/react-surface-ILBDBZCN.mjs +0 -58
- package/dist/lib/browser/react-surface-ILBDBZCN.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-G6EDDYWW.cjs +0 -26
- package/dist/lib/node/AutomationPanel-G6EDDYWW.cjs.map +0 -7
- package/dist/lib/node/ChatContainer-EN24W3K4.cjs +0 -33
- package/dist/lib/node/ChatContainer-EN24W3K4.cjs.map +0 -7
- package/dist/lib/node/ai-client-FKLPDELV.cjs +0 -38
- package/dist/lib/node/ai-client-FKLPDELV.cjs.map +0 -7
- package/dist/lib/node/app-graph-builder-T76NYV42.cjs +0 -212
- package/dist/lib/node/app-graph-builder-T76NYV42.cjs.map +0 -7
- package/dist/lib/node/chunk-CJGJXNY3.cjs +0 -1586
- package/dist/lib/node/chunk-CJGJXNY3.cjs.map +0 -7
- package/dist/lib/node/chunk-EQYHOTGG.cjs.map +0 -7
- package/dist/lib/node/chunk-GB7245FH.cjs +0 -173
- package/dist/lib/node/chunk-GB7245FH.cjs.map +0 -7
- package/dist/lib/node/chunk-HMBKP6VG.cjs +0 -324
- package/dist/lib/node/chunk-HMBKP6VG.cjs.map +0 -7
- package/dist/lib/node/chunk-QXIHYOMF.cjs.map +0 -7
- package/dist/lib/node/chunk-U5Z7LFWB.cjs +0 -34
- package/dist/lib/node/chunk-U5Z7LFWB.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-C6OKFVEW.cjs +0 -44
- package/dist/lib/node/intent-resolver-C6OKFVEW.cjs.map +0 -7
- package/dist/lib/node/react-surface-LWDY7SQG.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-V3IWQAMO.mjs +0 -9
- package/dist/lib/node-esm/AutomationPanel-V3IWQAMO.mjs.map +0 -7
- package/dist/lib/node-esm/ChatContainer-CNTY3C2D.mjs +0 -13
- package/dist/lib/node-esm/ChatContainer-CNTY3C2D.mjs.map +0 -7
- package/dist/lib/node-esm/ai-client-XGNA6SJ5.mjs +0 -23
- package/dist/lib/node-esm/ai-client-XGNA6SJ5.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-IJQEN7WT.mjs +0 -198
- package/dist/lib/node-esm/app-graph-builder-IJQEN7WT.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-6HLBYDUI.mjs +0 -244
- package/dist/lib/node-esm/chunk-6HLBYDUI.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-DNCXRGAF.mjs +0 -151
- package/dist/lib/node-esm/chunk-DNCXRGAF.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-EMVA6QUT.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-IJRTDSKN.mjs +0 -16
- package/dist/lib/node-esm/chunk-IJRTDSKN.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-QP47VJT6.mjs +0 -1603
- package/dist/lib/node-esm/chunk-QP47VJT6.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ZLIAMW45.mjs +0 -308
- package/dist/lib/node-esm/chunk-ZLIAMW45.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-DCP4ZDBA.mjs +0 -30
- package/dist/lib/node-esm/intent-resolver-DCP4ZDBA.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-SBDXFVIN.mjs +0 -59
- package/dist/lib/node-esm/react-surface-SBDXFVIN.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/artifacts.stories.d.ts +0 -16
- package/dist/types/src/artifacts.stories.d.ts.map +0 -1
- 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/AmbientChatDialog/AmbientChatDialog.d.ts +0 -3
- package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.d.ts.map +0 -1
- package/dist/types/src/components/AmbientChatDialog/index.d.ts +0 -2
- package/dist/types/src/components/AmbientChatDialog/index.d.ts.map +0 -1
- package/dist/types/src/components/Box/StatusLine.d.ts +0 -11
- package/dist/types/src/components/Box/StatusLine.d.ts.map +0 -1
- package/dist/types/src/components/Box/StatusLine.stories.d.ts +0 -9
- package/dist/types/src/components/Box/StatusLine.stories.d.ts.map +0 -1
- package/dist/types/src/components/Box/Tabbed.d.ts +0 -15
- package/dist/types/src/components/Box/Tabbed.d.ts.map +0 -1
- package/dist/types/src/components/Box/Tabbed.stories.d.ts +0 -8
- package/dist/types/src/components/Box/Tabbed.stories.d.ts.map +0 -1
- package/dist/types/src/components/Box/ToggleContainer.d.ts +0 -13
- package/dist/types/src/components/Box/ToggleContainer.d.ts.map +0 -1
- package/dist/types/src/components/Box/ToggleContainer.stories.d.ts +0 -9
- package/dist/types/src/components/Box/ToggleContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/Box/index.d.ts +0 -4
- package/dist/types/src/components/Box/index.d.ts.map +0 -1
- package/dist/types/src/components/ChatContainer/ChatContainer.d.ts +0 -7
- 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/MarkdownViewer/MarkdownViewer.d.ts +0 -14
- package/dist/types/src/components/MarkdownViewer/MarkdownViewer.d.ts.map +0 -1
- package/dist/types/src/components/MarkdownViewer/MarkdownViewer.stories.d.ts +0 -8
- package/dist/types/src/components/MarkdownViewer/MarkdownViewer.stories.d.ts.map +0 -1
- package/dist/types/src/components/MarkdownViewer/index.d.ts +0 -2
- package/dist/types/src/components/MarkdownViewer/index.d.ts.map +0 -1
- package/dist/types/src/components/Prompt/Prompt.d.ts +0 -7
- package/dist/types/src/components/Prompt/Prompt.d.ts.map +0 -1
- package/dist/types/src/components/Prompt/Prompt.stories.d.ts +0 -8
- package/dist/types/src/components/Prompt/Prompt.stories.d.ts.map +0 -1
- package/dist/types/src/components/Prompt/index.d.ts +0 -2
- package/dist/types/src/components/Prompt/index.d.ts.map +0 -1
- package/dist/types/src/components/Prompt/prompt-autocomplete.d.ts +0 -20
- package/dist/types/src/components/Prompt/prompt-autocomplete.d.ts.map +0 -1
- package/dist/types/src/components/PromptEditor/PromptEditor.d.ts +0 -10
- 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 -6
- 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 -11
- 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/ThreadMessage.d.ts +0 -12
- package/dist/types/src/components/Thread/ThreadMessage.d.ts.map +0 -1
- package/dist/types/src/components/Thread/index.d.ts +0 -2
- package/dist/types/src/components/Thread/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 -6
- 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 -70
- 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/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 -18
- package/dist/types/src/types/types.d.ts.map +0 -1
- package/src/artifacts.stories.tsx +0 -241
- package/src/capabilities/ai-client.ts +0 -19
- package/src/capabilities/app-graph-builder.ts +0 -187
- package/src/capabilities/capabilities.ts +0 -12
- package/src/capabilities/intent-resolver.ts +0 -27
- package/src/components/AmbientChatDialog/AmbientChatDialog.tsx +0 -26
- package/src/components/AmbientChatDialog/index.ts +0 -5
- package/src/components/Box/StatusLine.stories.tsx +0 -52
- package/src/components/Box/StatusLine.tsx +0 -76
- package/src/components/Box/Tabbed.stories.tsx +0 -51
- package/src/components/Box/Tabbed.tsx +0 -89
- package/src/components/Box/ToggleContainer.stories.tsx +0 -110
- package/src/components/Box/ToggleContainer.tsx +0 -108
- package/src/components/Box/index.ts +0 -7
- package/src/components/ChatContainer/ChatContainer.tsx +0 -52
- package/src/components/ChatContainer/index.ts +0 -8
- package/src/components/MarkdownViewer/MarkdownViewer.stories.tsx +0 -56
- package/src/components/MarkdownViewer/MarkdownViewer.tsx +0 -79
- package/src/components/MarkdownViewer/index.ts +0 -5
- package/src/components/Prompt/Prompt.stories.tsx +0 -50
- package/src/components/Prompt/Prompt.tsx +0 -36
- package/src/components/Prompt/index.ts +0 -5
- package/src/components/Prompt/prompt-autocomplete.ts +0 -200
- 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 -75
- package/src/components/ServiceRegistry/index.ts +0 -5
- package/src/components/Thread/Thread.stories.tsx +0 -197
- package/src/components/Thread/Thread.tsx +0 -156
- package/src/components/Thread/ThreadMessage.tsx +0 -225
- package/src/components/Thread/index.ts +0 -5
- package/src/hooks/email.ts +0 -49
- package/src/hooks/index.ts +0 -10
- package/src/hooks/invocation-handler.ts +0 -109
- package/src/hooks/processor.test.ts +0 -15
- package/src/hooks/processor.ts +0 -210
- package/src/hooks/useChatProcessor.tsx +0 -86
- package/src/hooks/useLocalTriggerManager.ts +0 -82
- package/src/hooks/useMessageQueue.ts +0 -23
- package/src/hooks/useServices.ts +0 -28
- 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 -227
- 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 -21
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,82 +17,47 @@ 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_EQYHOTGG.AUTOMATION_PLUGIN,
|
|
24
|
-
AmbientChatDialog: () => import_chunk_HMBKP6VG.AmbientChatDialog,
|
|
25
|
-
ApiAuthorization: () => import_chunk_GB7245FH.ApiAuthorization,
|
|
26
|
-
AutomationAction: () => import_chunk_GB7245FH.AutomationAction,
|
|
27
|
-
AutomationPanel: () => import_chunk_HMBKP6VG.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_GB7245FH.ChainPromptType,
|
|
32
|
-
ChainType: () => import_chunk_GB7245FH.ChainType,
|
|
33
|
-
ChatContainer: () => import_chunk_HMBKP6VG.ChatContainer,
|
|
34
|
-
MarkdownViewer: () => import_chunk_CJGJXNY3.MarkdownViewer,
|
|
35
|
-
PromptEditor: () => import_chunk_HMBKP6VG.PromptEditor,
|
|
36
|
-
ServiceRegistry: () => import_chunk_HMBKP6VG.ServiceRegistry,
|
|
37
|
-
ServiceType: () => import_chunk_GB7245FH.ServiceType,
|
|
38
|
-
Thread: () => import_chunk_CJGJXNY3.Thread,
|
|
39
|
-
TriggerEditor: () => import_chunk_QXIHYOMF.TriggerEditor,
|
|
40
|
-
categoryIcons: () => import_chunk_GB7245FH.categoryIcons,
|
|
41
|
-
chainPresets: () => chainPresets,
|
|
42
|
-
meta: () => import_chunk_EQYHOTGG.meta,
|
|
43
|
-
str: () => str
|
|
34
|
+
TriggerEditor: () => import_chunk_7Q5SNGCL.TriggerEditor,
|
|
35
|
+
meta: () => import_chunk_ORMEYEBE.meta
|
|
44
36
|
});
|
|
45
37
|
module.exports = __toCommonJS(node_exports);
|
|
46
|
-
var
|
|
47
|
-
var
|
|
48
|
-
var
|
|
49
|
-
var import_chunk_U5Z7LFWB = require("./chunk-U5Z7LFWB.cjs");
|
|
50
|
-
var import_chunk_GB7245FH = require("./chunk-GB7245FH.cjs");
|
|
51
|
-
var import_chunk_EQYHOTGG = require("./chunk-EQYHOTGG.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");
|
|
52
41
|
var import_app_framework = require("@dxos/app-framework");
|
|
53
42
|
var import_functions = require("@dxos/functions");
|
|
54
43
|
var import_plugin_client = require("@dxos/plugin-client");
|
|
55
44
|
var import_plugin_deck = require("@dxos/plugin-deck");
|
|
56
|
-
var
|
|
57
|
-
var
|
|
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"));
|
|
58
48
|
var translations_default = [
|
|
59
49
|
{
|
|
60
50
|
"en-US": {
|
|
61
|
-
[
|
|
62
|
-
"typename label": "AI Chat"
|
|
63
|
-
},
|
|
64
|
-
[import_chunk_EQYHOTGG.AUTOMATION_PLUGIN]: {
|
|
51
|
+
[import_chunk_ORMEYEBE.AUTOMATION_PLUGIN]: {
|
|
65
52
|
"plugin name": "Automation",
|
|
66
|
-
"object placeholder": "New prompt",
|
|
67
|
-
"create object label": "Create prompt",
|
|
68
|
-
"create trigger label": "Create trigger",
|
|
69
|
-
"create stack section label": "Create prompt",
|
|
70
|
-
"command placeholder": "Enter slash command...",
|
|
71
|
-
"template placeholder": "Enter template...",
|
|
72
|
-
"value placeholder": "Enter value...",
|
|
73
|
-
"select preset template placeholder": "Select preset",
|
|
74
|
-
"open automation panel label": "Show Automations",
|
|
75
53
|
"automation panel label": "Automations",
|
|
76
|
-
"
|
|
77
|
-
"chat input placeholder": "Ask a question...",
|
|
78
|
-
"chat stop": "Cancel request.",
|
|
79
|
-
"function select label": "Function",
|
|
80
|
-
"function select placeholder": "Select function",
|
|
81
|
-
"function enabled": "Enabled",
|
|
82
|
-
"trigger select label": "Trigger",
|
|
83
|
-
"trigger select placeholder": "Trigger type",
|
|
54
|
+
"new trigger label": "New Trigger",
|
|
84
55
|
"trigger type timer": "Timer",
|
|
85
56
|
"trigger type webhook": "Webhook",
|
|
86
57
|
"trigger type websocket": "Websocket",
|
|
87
58
|
"trigger type subscription": "Subscription",
|
|
88
59
|
"trigger type email": "Email",
|
|
89
60
|
"trigger type queue": "Queue",
|
|
90
|
-
"trigger filter": "Filter",
|
|
91
|
-
"trigger cron": "Cron",
|
|
92
|
-
"trigger method": "Method",
|
|
93
|
-
"trigger endpoint": "Endpoint",
|
|
94
61
|
"trigger copy url": "Copy URL",
|
|
95
62
|
"trigger copy email": "Copy Email",
|
|
96
63
|
"trigger meta add": "Add",
|
|
@@ -100,346 +67,37 @@ var translations_default = [
|
|
|
100
67
|
}
|
|
101
68
|
}
|
|
102
69
|
];
|
|
103
|
-
var AutomationPlugin = () => (0, import_app_framework.definePlugin)(
|
|
70
|
+
var AutomationPlugin = () => (0, import_app_framework.definePlugin)(import_chunk_ORMEYEBE.meta, [
|
|
104
71
|
(0, import_app_framework.defineModule)({
|
|
105
|
-
id: `${
|
|
72
|
+
id: `${import_chunk_ORMEYEBE.meta.id}/module/translations`,
|
|
106
73
|
activatesOn: import_app_framework.Events.SetupTranslations,
|
|
107
74
|
activate: () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.Translations, translations_default)
|
|
108
75
|
}),
|
|
109
76
|
(0, import_app_framework.defineModule)({
|
|
110
|
-
id: `${
|
|
111
|
-
activatesOn: import_app_framework.Events.SetupMetadata,
|
|
112
|
-
activate: () => [
|
|
113
|
-
(0, import_app_framework.contributes)(import_app_framework.Capabilities.Metadata, {
|
|
114
|
-
id: import_chunk_GB7245FH.ChainType.typename,
|
|
115
|
-
metadata: {
|
|
116
|
-
placeholder: [
|
|
117
|
-
"object placeholder",
|
|
118
|
-
{
|
|
119
|
-
ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
|
|
120
|
-
}
|
|
121
|
-
],
|
|
122
|
-
icon: "ph--magic-wand--regular",
|
|
123
|
-
// TODO(wittjosiah): Move out of metadata.
|
|
124
|
-
loadReferences: async (chain) => await import_echo.RefArray.loadAll(chain.prompts ?? [])
|
|
125
|
-
}
|
|
126
|
-
}),
|
|
127
|
-
(0, import_app_framework.contributes)(import_app_framework.Capabilities.Metadata, {
|
|
128
|
-
id: import_chunk_GB7245FH.AIChatType.typename,
|
|
129
|
-
metadata: {
|
|
130
|
-
createObject: (props) => (0, import_app_framework.createIntent)(import_chunk_GB7245FH.AutomationAction.Create, props),
|
|
131
|
-
placeholder: [
|
|
132
|
-
"object placeholder",
|
|
133
|
-
{
|
|
134
|
-
ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
|
|
135
|
-
}
|
|
136
|
-
],
|
|
137
|
-
icon: "ph--atom--regular"
|
|
138
|
-
}
|
|
139
|
-
})
|
|
140
|
-
]
|
|
141
|
-
}),
|
|
142
|
-
(0, import_app_framework.defineModule)({
|
|
143
|
-
id: `${import_chunk_EQYHOTGG.meta.id}/module/schema`,
|
|
77
|
+
id: `${import_chunk_ORMEYEBE.meta.id}/module/schema`,
|
|
144
78
|
activatesOn: import_plugin_client.ClientEvents.SetupSchema,
|
|
145
|
-
activate: () => [
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
import_functions.FunctionTrigger,
|
|
150
|
-
import_chunk_GB7245FH.ServiceType
|
|
151
|
-
]),
|
|
152
|
-
(0, import_app_framework.contributes)(import_plugin_client.ClientCapabilities.Schema, [
|
|
153
|
-
import_chunk_GB7245FH.AIChatType
|
|
154
|
-
])
|
|
155
|
-
]
|
|
79
|
+
activate: () => (0, import_app_framework.contributes)(import_plugin_client.ClientCapabilities.Schema, [
|
|
80
|
+
import_functions.FunctionType,
|
|
81
|
+
import_functions.FunctionTrigger
|
|
82
|
+
])
|
|
156
83
|
}),
|
|
157
84
|
(0, import_app_framework.defineModule)({
|
|
158
|
-
id: `${
|
|
159
|
-
activatesOn:
|
|
160
|
-
activate:
|
|
161
|
-
(0, import_app_framework.contributes)(import_plugin_deck.DeckCapabilities.ComplementaryPanel, {
|
|
162
|
-
id: "service-registry",
|
|
163
|
-
label: [
|
|
164
|
-
"service registry label",
|
|
165
|
-
{
|
|
166
|
-
ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
|
|
167
|
-
}
|
|
168
|
-
],
|
|
169
|
-
icon: "ph--plugs--regular"
|
|
170
|
-
}),
|
|
171
|
-
(0, import_app_framework.contributes)(import_plugin_deck.DeckCapabilities.ComplementaryPanel, {
|
|
172
|
-
id: "automation",
|
|
173
|
-
label: [
|
|
174
|
-
"automation panel label",
|
|
175
|
-
{
|
|
176
|
-
ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
|
|
177
|
-
}
|
|
178
|
-
],
|
|
179
|
-
icon: "ph--magic-wand--regular"
|
|
180
|
-
})
|
|
181
|
-
]
|
|
85
|
+
id: `${import_chunk_ORMEYEBE.meta.id}/module/complementary-panels`,
|
|
86
|
+
activatesOn: import_plugin_deck.DeckEvents.SetupComplementaryPanels,
|
|
87
|
+
activate: ComplementaryPanel
|
|
182
88
|
}),
|
|
183
89
|
(0, import_app_framework.defineModule)({
|
|
184
|
-
id: `${
|
|
185
|
-
activatesOn: import_app_framework.Events.
|
|
186
|
-
activate:
|
|
187
|
-
}),
|
|
188
|
-
(0, import_app_framework.defineModule)({
|
|
189
|
-
id: `${import_chunk_EQYHOTGG.meta.id}/module/app-graph-builder`,
|
|
190
|
-
activatesOn: import_app_framework.Events.SetupAppGraph,
|
|
191
|
-
activate: import_chunk_CJGJXNY3.AppGraphBuilder
|
|
192
|
-
}),
|
|
193
|
-
(0, import_app_framework.defineModule)({
|
|
194
|
-
id: `${import_chunk_EQYHOTGG.meta.id}/module/intent-resolver`,
|
|
195
|
-
activatesOn: import_app_framework.Events.SetupIntents,
|
|
196
|
-
activate: import_chunk_CJGJXNY3.IntentResolver
|
|
197
|
-
}),
|
|
198
|
-
(0, import_app_framework.defineModule)({
|
|
199
|
-
id: `${import_chunk_EQYHOTGG.meta.id}/module/ai-client`,
|
|
200
|
-
activatesOn: import_plugin_client.ClientEvents.ClientReady,
|
|
201
|
-
activate: import_chunk_CJGJXNY3.AiClient
|
|
90
|
+
id: `${import_chunk_ORMEYEBE.meta.id}/module/react-surface`,
|
|
91
|
+
activatesOn: import_app_framework.Events.SetupReactSurface,
|
|
92
|
+
activate: ReactSurface
|
|
202
93
|
})
|
|
203
94
|
]);
|
|
204
|
-
var str = (...text) => text.filter((value) => value !== void 0 && value !== false).flat().join("\n");
|
|
205
|
-
var chainPresets = [
|
|
206
|
-
{
|
|
207
|
-
id: "dxos.org/prompt/translate",
|
|
208
|
-
title: "Translate",
|
|
209
|
-
createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
|
|
210
|
-
command: "say",
|
|
211
|
-
template: str(
|
|
212
|
-
// prettier-ignore
|
|
213
|
-
"Translate the following into {language}:",
|
|
214
|
-
"",
|
|
215
|
-
"---",
|
|
216
|
-
"",
|
|
217
|
-
"{input}"
|
|
218
|
-
),
|
|
219
|
-
inputs: [
|
|
220
|
-
{
|
|
221
|
-
type: import_chunk_GB7245FH.ChainInputType.VALUE,
|
|
222
|
-
name: "language",
|
|
223
|
-
value: "japanese"
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
type: import_chunk_GB7245FH.ChainInputType.PASS_THROUGH,
|
|
227
|
-
name: "input"
|
|
228
|
-
}
|
|
229
|
-
]
|
|
230
|
-
})
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
id: "dxos.org/prompt/chess",
|
|
234
|
-
title: "Chess",
|
|
235
|
-
createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
|
|
236
|
-
command: "hint",
|
|
237
|
-
template: str(
|
|
238
|
-
// prettier-ignore
|
|
239
|
-
"You are a machine that is an expert chess player.",
|
|
240
|
-
"",
|
|
241
|
-
"The move history of the current game is: {history}",
|
|
242
|
-
"",
|
|
243
|
-
"Suggest the next move and very briefly explain your strategy in a couple of sentences."
|
|
244
|
-
),
|
|
245
|
-
inputs: [
|
|
246
|
-
{
|
|
247
|
-
type: import_chunk_GB7245FH.ChainInputType.CONTEXT,
|
|
248
|
-
name: "history",
|
|
249
|
-
value: "object.pgn"
|
|
250
|
-
}
|
|
251
|
-
]
|
|
252
|
-
})
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
id: "dxos.org/prompt/mermaid",
|
|
256
|
-
title: "Mermaid",
|
|
257
|
-
createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
|
|
258
|
-
command: "draw",
|
|
259
|
-
template: str(
|
|
260
|
-
// prettier-ignore
|
|
261
|
-
"Create a simplified mermaid graph representing the text below.",
|
|
262
|
-
"Do not explain anything.",
|
|
263
|
-
"",
|
|
264
|
-
"---",
|
|
265
|
-
"",
|
|
266
|
-
"{input}"
|
|
267
|
-
),
|
|
268
|
-
inputs: [
|
|
269
|
-
{
|
|
270
|
-
type: import_chunk_GB7245FH.ChainInputType.PASS_THROUGH,
|
|
271
|
-
name: "input"
|
|
272
|
-
}
|
|
273
|
-
]
|
|
274
|
-
})
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
id: "dxos.org/prompt/list",
|
|
278
|
-
title: "List",
|
|
279
|
-
createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
|
|
280
|
-
command: "list",
|
|
281
|
-
template: str(
|
|
282
|
-
// prettier-ignore
|
|
283
|
-
"You are a machine that only replies with valid, iterable RFC8259 compliant JSON in your responses.",
|
|
284
|
-
"Your entire response should be a single array of JSON objects.",
|
|
285
|
-
"",
|
|
286
|
-
"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:",
|
|
287
|
-
"",
|
|
288
|
-
"{schema}",
|
|
289
|
-
"",
|
|
290
|
-
"---",
|
|
291
|
-
"",
|
|
292
|
-
"{question}"
|
|
293
|
-
),
|
|
294
|
-
inputs: [
|
|
295
|
-
{
|
|
296
|
-
type: import_chunk_GB7245FH.ChainInputType.SCHEMA,
|
|
297
|
-
name: "schema",
|
|
298
|
-
value: "example.com/type/project"
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
type: import_chunk_GB7245FH.ChainInputType.PASS_THROUGH,
|
|
302
|
-
name: "question"
|
|
303
|
-
}
|
|
304
|
-
]
|
|
305
|
-
})
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
id: "dxos.org/prompt/base",
|
|
309
|
-
title: "RAG",
|
|
310
|
-
createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
|
|
311
|
-
command: "rag",
|
|
312
|
-
template: str(
|
|
313
|
-
// prettier-ignore
|
|
314
|
-
"Very briefly answer the question based only on the following context and say if you don't know the answer.",
|
|
315
|
-
// 'answer the question using the following context as well as your training data:',
|
|
316
|
-
"",
|
|
317
|
-
"{context}",
|
|
318
|
-
"",
|
|
319
|
-
"---",
|
|
320
|
-
"",
|
|
321
|
-
"question: {question}"
|
|
322
|
-
),
|
|
323
|
-
inputs: [
|
|
324
|
-
{
|
|
325
|
-
type: import_chunk_GB7245FH.ChainInputType.RETRIEVER,
|
|
326
|
-
name: "context"
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
type: import_chunk_GB7245FH.ChainInputType.CONTEXT,
|
|
330
|
-
name: "question",
|
|
331
|
-
value: "object.text"
|
|
332
|
-
}
|
|
333
|
-
]
|
|
334
|
-
})
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
id: "dxos.org/prompt/lookup",
|
|
338
|
-
title: "Lookup",
|
|
339
|
-
createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
|
|
340
|
-
command: "lookup",
|
|
341
|
-
template: str(
|
|
342
|
-
// prettier-ignore
|
|
343
|
-
"Lookup and very briefly summarize the following topic in one or two sentences:",
|
|
344
|
-
"",
|
|
345
|
-
"---",
|
|
346
|
-
"",
|
|
347
|
-
"{input}"
|
|
348
|
-
),
|
|
349
|
-
inputs: [
|
|
350
|
-
{
|
|
351
|
-
type: import_chunk_GB7245FH.ChainInputType.CONTEXT,
|
|
352
|
-
name: "input",
|
|
353
|
-
value: "text"
|
|
354
|
-
}
|
|
355
|
-
]
|
|
356
|
-
})
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
id: "dxos.org/prompt/extract",
|
|
360
|
-
title: "Extract",
|
|
361
|
-
createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
|
|
362
|
-
command: "extract",
|
|
363
|
-
template: str(
|
|
364
|
-
// prettier-ignore
|
|
365
|
-
"List all people and companies mentioned in the text below.",
|
|
366
|
-
"",
|
|
367
|
-
"You are a machine that only replies with valid, iterable RFC8259 compliant JSON in your responses.",
|
|
368
|
-
"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:",
|
|
369
|
-
"",
|
|
370
|
-
"{contact}",
|
|
371
|
-
"{company}",
|
|
372
|
-
"",
|
|
373
|
-
"---",
|
|
374
|
-
"",
|
|
375
|
-
"{input}"
|
|
376
|
-
),
|
|
377
|
-
inputs: [
|
|
378
|
-
{
|
|
379
|
-
type: import_chunk_GB7245FH.ChainInputType.SCHEMA,
|
|
380
|
-
name: "contact",
|
|
381
|
-
value: "example.com/type/contact"
|
|
382
|
-
},
|
|
383
|
-
{
|
|
384
|
-
type: import_chunk_GB7245FH.ChainInputType.SCHEMA,
|
|
385
|
-
name: "company",
|
|
386
|
-
value: "example.com/type/organization"
|
|
387
|
-
},
|
|
388
|
-
{
|
|
389
|
-
type: import_chunk_GB7245FH.ChainInputType.CONTEXT,
|
|
390
|
-
name: "input",
|
|
391
|
-
value: "text"
|
|
392
|
-
}
|
|
393
|
-
]
|
|
394
|
-
})
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
id: "dxos.org/prompt/discord",
|
|
398
|
-
title: "Summarize",
|
|
399
|
-
createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
|
|
400
|
-
command: "summarize",
|
|
401
|
-
template: str(
|
|
402
|
-
// prettier-ignore
|
|
403
|
-
"Summarize what the team is working on and format it as a markdown table without any explanation.",
|
|
404
|
-
"",
|
|
405
|
-
"---",
|
|
406
|
-
"",
|
|
407
|
-
"{context}"
|
|
408
|
-
),
|
|
409
|
-
inputs: [
|
|
410
|
-
{
|
|
411
|
-
type: import_chunk_GB7245FH.ChainInputType.RESOLVER,
|
|
412
|
-
name: "context",
|
|
413
|
-
value: "discord.messages.recent"
|
|
414
|
-
}
|
|
415
|
-
]
|
|
416
|
-
})
|
|
417
|
-
}
|
|
418
|
-
];
|
|
419
95
|
// Annotate the CommonJS export names for ESM import in node:
|
|
420
96
|
0 && (module.exports = {
|
|
421
|
-
AIChatType,
|
|
422
|
-
AMBIENT_CHAT_DIALOG,
|
|
423
97
|
AUTOMATION_PLUGIN,
|
|
424
|
-
AmbientChatDialog,
|
|
425
|
-
ApiAuthorization,
|
|
426
|
-
AutomationAction,
|
|
427
98
|
AutomationPanel,
|
|
428
99
|
AutomationPlugin,
|
|
429
|
-
ChainInputSchema,
|
|
430
|
-
ChainInputType,
|
|
431
|
-
ChainPromptType,
|
|
432
|
-
ChainType,
|
|
433
|
-
ChatContainer,
|
|
434
|
-
MarkdownViewer,
|
|
435
|
-
PromptEditor,
|
|
436
|
-
ServiceRegistry,
|
|
437
|
-
ServiceType,
|
|
438
|
-
Thread,
|
|
439
100
|
TriggerEditor,
|
|
440
|
-
|
|
441
|
-
chainPresets,
|
|
442
|
-
meta,
|
|
443
|
-
str
|
|
101
|
+
meta
|
|
444
102
|
});
|
|
445
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 } from '@dxos/plugin-deck';\nimport { RefArray } 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 createObject: (props: { name?: string }) => createIntent(AutomationAction.Create, props),\n placeholder: ['object placeholder', { ns: AUTOMATION_PLUGIN }],\n icon: 'ph--atom--regular',\n },\n }),\n ],\n }),\n defineModule({\n id: `${meta.id}/module/schema`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () => [\n contributes(ClientCapabilities.SystemSchema, [ChainType, ChainPromptType, FunctionTrigger, ServiceType]),\n contributes(ClientCapabilities.Schema, [AIChatType]),\n ],\n }),\n defineModule({\n id: `${meta.id}/module/complementary-panels`,\n activatesOn: Events.Startup,\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 }),\n ],\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupSurfaces,\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.SetupIntents,\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 '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 '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 },\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
|
}
|