@dxos/plugin-automation 0.7.5-labs.8a82073 → 0.7.5-labs.c0e040f

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.
Files changed (139) hide show
  1. package/dist/lib/browser/AutomationPanel-VW2XIUPU.mjs +8 -0
  2. package/dist/lib/browser/ChatContainer-OLRZNGWK.mjs +12 -0
  3. package/dist/lib/browser/{ai-client-UJLNYP7B.mjs → ai-client-5CNY6JBF.mjs} +3 -3
  4. package/dist/lib/browser/{app-graph-builder-3H5TCRG4.mjs → app-graph-builder-6H7MDCXE.mjs} +39 -4
  5. package/dist/lib/browser/app-graph-builder-6H7MDCXE.mjs.map +7 -0
  6. package/dist/lib/browser/{chunk-BQHXJZ4K.mjs → chunk-2H2EUYXL.mjs} +2 -2
  7. package/dist/lib/browser/{chunk-N4SSCQ7P.mjs → chunk-ITG6CBKL.mjs} +10 -10
  8. package/dist/lib/browser/chunk-ITG6CBKL.mjs.map +7 -0
  9. package/dist/lib/browser/chunk-MRBC5J4T.mjs +518 -0
  10. package/dist/lib/browser/chunk-MRBC5J4T.mjs.map +7 -0
  11. package/dist/lib/browser/{chunk-6KJRL5KV.mjs → chunk-NQFZ6XRX.mjs} +2 -2
  12. package/dist/lib/browser/{chunk-43WRHV2L.mjs → chunk-Q4IMHYGH.mjs} +2 -2
  13. package/dist/lib/browser/{chunk-DQ7ZSYJJ.mjs → chunk-R4JH4TLE.mjs} +3 -1
  14. package/dist/lib/browser/chunk-R4JH4TLE.mjs.map +7 -0
  15. package/dist/lib/browser/index.mjs +10 -6
  16. package/dist/lib/browser/index.mjs.map +1 -1
  17. package/dist/lib/browser/{intent-resolver-5YVZJFS3.mjs → intent-resolver-BWAXKT27.mjs} +3 -3
  18. package/dist/lib/browser/meta.json +1 -1
  19. package/dist/lib/browser/{react-surface-RRTZFTKR.mjs → react-surface-O6SHIBCA.mjs} +15 -7
  20. package/dist/lib/browser/react-surface-O6SHIBCA.mjs.map +7 -0
  21. package/dist/lib/browser/types/index.mjs +2 -2
  22. package/dist/lib/node/{AutomationPanel-BCEY3YXO.cjs → AutomationPanel-G6EDDYWW.cjs} +7 -7
  23. package/dist/lib/node/{AutomationPanel-BCEY3YXO.cjs.map → AutomationPanel-G6EDDYWW.cjs.map} +2 -2
  24. package/dist/lib/node/{ChatContainer-QUWFEBTI.cjs → ChatContainer-GRZDJIG5.cjs} +10 -10
  25. package/dist/lib/node/ChatContainer-GRZDJIG5.cjs.map +7 -0
  26. package/dist/lib/node/{ai-client-AOB6TLNW.cjs → ai-client-FKLPDELV.cjs} +7 -7
  27. package/dist/lib/node/{app-graph-builder-CDEQJEHY.cjs → app-graph-builder-7JMJLZIE.cjs} +48 -14
  28. package/dist/lib/node/app-graph-builder-7JMJLZIE.cjs.map +7 -0
  29. package/dist/lib/node/{chunk-DKGNORZK.cjs → chunk-CFBERLTN.cjs} +21 -21
  30. package/dist/lib/node/chunk-CFBERLTN.cjs.map +7 -0
  31. package/dist/lib/node/{chunk-TQEDPRY5.cjs → chunk-EQYHOTGG.cjs} +7 -4
  32. package/dist/lib/node/chunk-EQYHOTGG.cjs.map +7 -0
  33. package/dist/lib/node/chunk-FQUY77HT.cjs +527 -0
  34. package/dist/lib/node/chunk-FQUY77HT.cjs.map +7 -0
  35. package/dist/lib/node/{chunk-H3RSMGJG.cjs → chunk-GB7245FH.cjs} +6 -6
  36. package/dist/lib/node/{chunk-IPCNJYQL.cjs → chunk-QXIHYOMF.cjs} +7 -7
  37. package/dist/lib/node/{chunk-AWZVJZ2I.cjs → chunk-U5Z7LFWB.cjs} +6 -6
  38. package/dist/lib/node/index.cjs +75 -71
  39. package/dist/lib/node/index.cjs.map +1 -1
  40. package/dist/lib/node/{intent-resolver-MJFZT5IU.cjs → intent-resolver-C6OKFVEW.cjs} +8 -8
  41. package/dist/lib/node/meta.json +1 -1
  42. package/dist/lib/node/{react-surface-BVZ63QP4.cjs → react-surface-JT6SVCPK.cjs} +23 -17
  43. package/dist/lib/node/react-surface-JT6SVCPK.cjs.map +7 -0
  44. package/dist/lib/node/types/index.cjs +11 -11
  45. package/dist/lib/node/types/index.cjs.map +1 -1
  46. package/dist/lib/node-esm/{AutomationPanel-YTIZ74RI.mjs → AutomationPanel-V3IWQAMO.mjs} +3 -3
  47. package/dist/lib/node-esm/{ChatContainer-QSMDZRDU.mjs → ChatContainer-ORVWQPJO.mjs} +5 -5
  48. package/dist/lib/node-esm/{ai-client-RUCCJ7JZ.mjs → ai-client-XGNA6SJ5.mjs} +3 -3
  49. package/dist/lib/node-esm/{app-graph-builder-GR3URVNX.mjs → app-graph-builder-C6NUQGCU.mjs} +39 -4
  50. package/dist/lib/node-esm/app-graph-builder-C6NUQGCU.mjs.map +7 -0
  51. package/dist/lib/node-esm/chunk-2OKJZ4ZW.mjs +519 -0
  52. package/dist/lib/node-esm/chunk-2OKJZ4ZW.mjs.map +7 -0
  53. package/dist/lib/node-esm/{chunk-CZXU4CFK.mjs → chunk-6HLBYDUI.mjs} +2 -2
  54. package/dist/lib/node-esm/{chunk-D7RARVTS.mjs → chunk-7VPT3OO3.mjs} +10 -10
  55. package/dist/lib/node-esm/chunk-7VPT3OO3.mjs.map +7 -0
  56. package/dist/lib/node-esm/{chunk-7JO77AAS.mjs → chunk-DNCXRGAF.mjs} +2 -2
  57. package/dist/lib/node-esm/{chunk-JFHI22MF.mjs → chunk-EMVA6QUT.mjs} +3 -1
  58. package/dist/lib/node-esm/chunk-EMVA6QUT.mjs.map +7 -0
  59. package/dist/lib/node-esm/{chunk-LSSWQIQD.mjs → chunk-IJRTDSKN.mjs} +2 -2
  60. package/dist/lib/node-esm/index.mjs +10 -6
  61. package/dist/lib/node-esm/index.mjs.map +1 -1
  62. package/dist/lib/node-esm/{intent-resolver-FCKNRTKQ.mjs → intent-resolver-DCP4ZDBA.mjs} +3 -3
  63. package/dist/lib/node-esm/meta.json +1 -1
  64. package/dist/lib/node-esm/{react-surface-Y5LQHUQN.mjs → react-surface-DSVM33SA.mjs} +15 -7
  65. package/dist/lib/node-esm/react-surface-DSVM33SA.mjs.map +7 -0
  66. package/dist/lib/node-esm/types/index.mjs +2 -2
  67. package/dist/types/src/capabilities/app-graph-builder.d.ts +23 -22
  68. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  69. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  70. package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.d.ts +3 -0
  71. package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.d.ts.map +1 -0
  72. package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.stories.d.ts +8 -0
  73. package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.stories.d.ts.map +1 -0
  74. package/dist/types/src/components/AmbientChatDialog/index.d.ts +2 -0
  75. package/dist/types/src/components/AmbientChatDialog/index.d.ts.map +1 -0
  76. package/dist/types/src/components/Prompt/Prompt.d.ts +3 -3
  77. package/dist/types/src/components/Prompt/Prompt.d.ts.map +1 -1
  78. package/dist/types/src/components/Prompt/prompt-autocomplete.d.ts +1 -1
  79. package/dist/types/src/components/Prompt/prompt-autocomplete.d.ts.map +1 -1
  80. package/dist/types/src/components/ServiceRegistry/ServiceRegistry.d.ts.map +1 -1
  81. package/dist/types/src/components/index.d.ts +1 -0
  82. package/dist/types/src/components/index.d.ts.map +1 -1
  83. package/dist/types/src/meta.d.ts +1 -0
  84. package/dist/types/src/meta.d.ts.map +1 -1
  85. package/package.json +52 -51
  86. package/src/capabilities/app-graph-builder.ts +34 -3
  87. package/src/capabilities/react-surface.tsx +8 -2
  88. package/src/components/AmbientChatDialog/AmbientChatDialog.stories.tsx +44 -0
  89. package/src/components/AmbientChatDialog/AmbientChatDialog.tsx +63 -0
  90. package/src/components/AmbientChatDialog/index.ts +5 -0
  91. package/src/components/Prompt/Prompt.tsx +6 -3
  92. package/src/components/Prompt/prompt-autocomplete.ts +2 -2
  93. package/src/components/PromptEditor/PromptEditor.tsx +3 -3
  94. package/src/components/ServiceRegistry/ServiceRegistry.tsx +1 -0
  95. package/src/components/Thread/Thread.stories.tsx +1 -1
  96. package/src/components/index.ts +1 -0
  97. package/src/hooks/useChatProcessor.tsx +2 -2
  98. package/src/meta.ts +2 -0
  99. package/src/tools/openapi.test.ts +3 -6
  100. package/dist/lib/browser/AutomationPanel-CL2TWZT5.mjs +0 -8
  101. package/dist/lib/browser/ChatContainer-EJ3IWL7Y.mjs +0 -12
  102. package/dist/lib/browser/app-graph-builder-3H5TCRG4.mjs.map +0 -7
  103. package/dist/lib/browser/chunk-4M74P6YW.mjs +0 -284
  104. package/dist/lib/browser/chunk-4M74P6YW.mjs.map +0 -7
  105. package/dist/lib/browser/chunk-DQ7ZSYJJ.mjs.map +0 -7
  106. package/dist/lib/browser/chunk-N4SSCQ7P.mjs.map +0 -7
  107. package/dist/lib/browser/react-surface-RRTZFTKR.mjs.map +0 -7
  108. package/dist/lib/node/ChatContainer-QUWFEBTI.cjs.map +0 -7
  109. package/dist/lib/node/app-graph-builder-CDEQJEHY.cjs.map +0 -7
  110. package/dist/lib/node/chunk-DKGNORZK.cjs.map +0 -7
  111. package/dist/lib/node/chunk-LC6KNDPQ.cjs +0 -302
  112. package/dist/lib/node/chunk-LC6KNDPQ.cjs.map +0 -7
  113. package/dist/lib/node/chunk-TQEDPRY5.cjs.map +0 -7
  114. package/dist/lib/node/react-surface-BVZ63QP4.cjs.map +0 -7
  115. package/dist/lib/node-esm/app-graph-builder-GR3URVNX.mjs.map +0 -7
  116. package/dist/lib/node-esm/chunk-CQPQXIJP.mjs +0 -285
  117. package/dist/lib/node-esm/chunk-CQPQXIJP.mjs.map +0 -7
  118. package/dist/lib/node-esm/chunk-D7RARVTS.mjs.map +0 -7
  119. package/dist/lib/node-esm/chunk-JFHI22MF.mjs.map +0 -7
  120. package/dist/lib/node-esm/react-surface-Y5LQHUQN.mjs.map +0 -7
  121. /package/dist/lib/browser/{AutomationPanel-CL2TWZT5.mjs.map → AutomationPanel-VW2XIUPU.mjs.map} +0 -0
  122. /package/dist/lib/browser/{ChatContainer-EJ3IWL7Y.mjs.map → ChatContainer-OLRZNGWK.mjs.map} +0 -0
  123. /package/dist/lib/browser/{ai-client-UJLNYP7B.mjs.map → ai-client-5CNY6JBF.mjs.map} +0 -0
  124. /package/dist/lib/browser/{chunk-BQHXJZ4K.mjs.map → chunk-2H2EUYXL.mjs.map} +0 -0
  125. /package/dist/lib/browser/{chunk-6KJRL5KV.mjs.map → chunk-NQFZ6XRX.mjs.map} +0 -0
  126. /package/dist/lib/browser/{chunk-43WRHV2L.mjs.map → chunk-Q4IMHYGH.mjs.map} +0 -0
  127. /package/dist/lib/browser/{intent-resolver-5YVZJFS3.mjs.map → intent-resolver-BWAXKT27.mjs.map} +0 -0
  128. /package/dist/lib/node/{ai-client-AOB6TLNW.cjs.map → ai-client-FKLPDELV.cjs.map} +0 -0
  129. /package/dist/lib/node/{chunk-H3RSMGJG.cjs.map → chunk-GB7245FH.cjs.map} +0 -0
  130. /package/dist/lib/node/{chunk-IPCNJYQL.cjs.map → chunk-QXIHYOMF.cjs.map} +0 -0
  131. /package/dist/lib/node/{chunk-AWZVJZ2I.cjs.map → chunk-U5Z7LFWB.cjs.map} +0 -0
  132. /package/dist/lib/node/{intent-resolver-MJFZT5IU.cjs.map → intent-resolver-C6OKFVEW.cjs.map} +0 -0
  133. /package/dist/lib/node-esm/{AutomationPanel-YTIZ74RI.mjs.map → AutomationPanel-V3IWQAMO.mjs.map} +0 -0
  134. /package/dist/lib/node-esm/{ChatContainer-QSMDZRDU.mjs.map → ChatContainer-ORVWQPJO.mjs.map} +0 -0
  135. /package/dist/lib/node-esm/{ai-client-RUCCJ7JZ.mjs.map → ai-client-XGNA6SJ5.mjs.map} +0 -0
  136. /package/dist/lib/node-esm/{chunk-CZXU4CFK.mjs.map → chunk-6HLBYDUI.mjs.map} +0 -0
  137. /package/dist/lib/node-esm/{chunk-7JO77AAS.mjs.map → chunk-DNCXRGAF.mjs.map} +0 -0
  138. /package/dist/lib/node-esm/{chunk-LSSWQIQD.mjs.map → chunk-IJRTDSKN.mjs.map} +0 -0
  139. /package/dist/lib/node-esm/{intent-resolver-FCKNRTKQ.mjs.map → intent-resolver-DCP4ZDBA.mjs.map} +0 -0
@@ -26,13 +26,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_IPCNJYQL_exports = {};
30
- __export(chunk_IPCNJYQL_exports, {
29
+ var chunk_QXIHYOMF_exports = {};
30
+ __export(chunk_QXIHYOMF_exports, {
31
31
  AutomationPanel_default: () => AutomationPanel_default,
32
32
  TriggerEditor: () => TriggerEditor
33
33
  });
34
- module.exports = __toCommonJS(chunk_IPCNJYQL_exports);
35
- var import_chunk_TQEDPRY5 = require("./chunk-TQEDPRY5.cjs");
34
+ module.exports = __toCommonJS(chunk_QXIHYOMF_exports);
35
+ var import_chunk_EQYHOTGG = require("./chunk-EQYHOTGG.cjs");
36
36
  var import_react = __toESM(require("react"));
37
37
  var import_echo_schema = require("@dxos/echo-schema");
38
38
  var import_functions = require("@dxos/functions");
@@ -48,7 +48,7 @@ var import_echo2 = require("@dxos/react-client/echo");
48
48
  var import_react_ui2 = require("@dxos/react-ui");
49
49
  var import_react_ui_form = require("@dxos/react-ui-form");
50
50
  var TriggerEditor = ({ space, trigger, onSave, onCancel }) => {
51
- const { t } = (0, import_react_ui2.useTranslation)(import_chunk_TQEDPRY5.AUTOMATION_PLUGIN);
51
+ const { t } = (0, import_react_ui2.useTranslation)(import_chunk_EQYHOTGG.AUTOMATION_PLUGIN);
52
52
  const functions = (0, import_echo2.useQuery)(space, import_echo2.Filter.schema(import_functions2.FunctionType));
53
53
  const workflows = (0, import_echo2.useQuery)(space, import_echo2.Filter.schema(import_conductor.ComputeGraph));
54
54
  const scripts = (0, import_echo2.useQuery)(space, import_echo2.Filter.schema(import_functions2.ScriptType));
@@ -152,7 +152,7 @@ var getFunctionOptions = (scripts, functions) => {
152
152
  };
153
153
  var grid = "grid grid-cols-[40px_1fr_32px] min-bs-[2.5rem]";
154
154
  var AutomationPanel = ({ space, object }) => {
155
- const { t } = (0, import_react_ui.useTranslation)(import_chunk_TQEDPRY5.AUTOMATION_PLUGIN);
155
+ const { t } = (0, import_react_ui.useTranslation)(import_chunk_EQYHOTGG.AUTOMATION_PLUGIN);
156
156
  const client = (0, import_react_client.useClient)();
157
157
  const triggers = (0, import_echo.useQuery)(space, import_echo.Filter.schema(import_functions.FunctionTrigger));
158
158
  const functions = (0, import_echo.useQuery)(space, import_echo.Filter.schema(import_functions.FunctionType));
@@ -264,4 +264,4 @@ var AutomationPanel_default = AutomationPanel;
264
264
  AutomationPanel_default,
265
265
  TriggerEditor
266
266
  });
267
- //# sourceMappingURL=chunk-IPCNJYQL.cjs.map
267
+ //# sourceMappingURL=chunk-QXIHYOMF.cjs.map
@@ -16,19 +16,19 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_AWZVJZ2I_exports = {};
20
- __export(chunk_AWZVJZ2I_exports, {
19
+ var chunk_U5Z7LFWB_exports = {};
20
+ __export(chunk_U5Z7LFWB_exports, {
21
21
  AutomationCapabilities: () => AutomationCapabilities
22
22
  });
23
- module.exports = __toCommonJS(chunk_AWZVJZ2I_exports);
24
- var import_chunk_TQEDPRY5 = require("./chunk-TQEDPRY5.cjs");
23
+ module.exports = __toCommonJS(chunk_U5Z7LFWB_exports);
24
+ var import_chunk_EQYHOTGG = require("./chunk-EQYHOTGG.cjs");
25
25
  var import_app_framework = require("@dxos/app-framework");
26
26
  var AutomationCapabilities;
27
27
  (function(AutomationCapabilities2) {
28
- AutomationCapabilities2.AiClient = (0, import_app_framework.defineCapability)(`${import_chunk_TQEDPRY5.AUTOMATION_PLUGIN}/capability/ai-client`);
28
+ AutomationCapabilities2.AiClient = (0, import_app_framework.defineCapability)(`${import_chunk_EQYHOTGG.AUTOMATION_PLUGIN}/capability/ai-client`);
29
29
  })(AutomationCapabilities || (AutomationCapabilities = {}));
30
30
  // Annotate the CommonJS export names for ESM import in node:
31
31
  0 && (module.exports = {
32
32
  AutomationCapabilities
33
33
  });
34
- //# sourceMappingURL=chunk-AWZVJZ2I.cjs.map
34
+ //# sourceMappingURL=chunk-U5Z7LFWB.cjs.map
@@ -18,35 +18,37 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var node_exports = {};
20
20
  __export(node_exports, {
21
- AIChatType: () => import_chunk_H3RSMGJG.AIChatType,
22
- AUTOMATION_PLUGIN: () => import_chunk_TQEDPRY5.AUTOMATION_PLUGIN,
23
- ApiAuthorization: () => import_chunk_H3RSMGJG.ApiAuthorization,
24
- AutomationAction: () => import_chunk_H3RSMGJG.AutomationAction,
25
- AutomationPanel: () => import_chunk_LC6KNDPQ.AutomationPanel,
21
+ AIChatType: () => import_chunk_GB7245FH.AIChatType,
22
+ AMBIENT_CHAT_DIALOG: () => import_chunk_EQYHOTGG.AMBIENT_CHAT_DIALOG,
23
+ AUTOMATION_PLUGIN: () => import_chunk_EQYHOTGG.AUTOMATION_PLUGIN,
24
+ AmbientChatDialog: () => import_chunk_FQUY77HT.AmbientChatDialog,
25
+ ApiAuthorization: () => import_chunk_GB7245FH.ApiAuthorization,
26
+ AutomationAction: () => import_chunk_GB7245FH.AutomationAction,
27
+ AutomationPanel: () => import_chunk_FQUY77HT.AutomationPanel,
26
28
  AutomationPlugin: () => AutomationPlugin,
27
- ChainInputSchema: () => import_chunk_H3RSMGJG.ChainInputSchema,
28
- ChainInputType: () => import_chunk_H3RSMGJG.ChainInputType,
29
- ChainPromptType: () => import_chunk_H3RSMGJG.ChainPromptType,
30
- ChainType: () => import_chunk_H3RSMGJG.ChainType,
31
- ChatContainer: () => import_chunk_LC6KNDPQ.ChatContainer,
32
- MarkdownViewer: () => import_chunk_DKGNORZK.MarkdownViewer,
33
- PromptEditor: () => import_chunk_LC6KNDPQ.PromptEditor,
34
- ServiceRegistry: () => import_chunk_LC6KNDPQ.ServiceRegistry,
35
- ServiceType: () => import_chunk_H3RSMGJG.ServiceType,
36
- Thread: () => import_chunk_DKGNORZK.Thread,
37
- TriggerEditor: () => import_chunk_IPCNJYQL.TriggerEditor,
38
- categoryIcons: () => import_chunk_H3RSMGJG.categoryIcons,
29
+ ChainInputSchema: () => import_chunk_GB7245FH.ChainInputSchema,
30
+ ChainInputType: () => import_chunk_GB7245FH.ChainInputType,
31
+ ChainPromptType: () => import_chunk_GB7245FH.ChainPromptType,
32
+ ChainType: () => import_chunk_GB7245FH.ChainType,
33
+ ChatContainer: () => import_chunk_FQUY77HT.ChatContainer,
34
+ MarkdownViewer: () => import_chunk_CFBERLTN.MarkdownViewer,
35
+ PromptEditor: () => import_chunk_FQUY77HT.PromptEditor,
36
+ ServiceRegistry: () => import_chunk_FQUY77HT.ServiceRegistry,
37
+ ServiceType: () => import_chunk_GB7245FH.ServiceType,
38
+ Thread: () => import_chunk_CFBERLTN.Thread,
39
+ TriggerEditor: () => import_chunk_QXIHYOMF.TriggerEditor,
40
+ categoryIcons: () => import_chunk_GB7245FH.categoryIcons,
39
41
  chainPresets: () => chainPresets,
40
- meta: () => import_chunk_TQEDPRY5.meta,
42
+ meta: () => import_chunk_EQYHOTGG.meta,
41
43
  str: () => str
42
44
  });
43
45
  module.exports = __toCommonJS(node_exports);
44
- var import_chunk_LC6KNDPQ = require("./chunk-LC6KNDPQ.cjs");
45
- var import_chunk_IPCNJYQL = require("./chunk-IPCNJYQL.cjs");
46
- var import_chunk_DKGNORZK = require("./chunk-DKGNORZK.cjs");
47
- var import_chunk_AWZVJZ2I = require("./chunk-AWZVJZ2I.cjs");
48
- var import_chunk_H3RSMGJG = require("./chunk-H3RSMGJG.cjs");
49
- var import_chunk_TQEDPRY5 = require("./chunk-TQEDPRY5.cjs");
46
+ var import_chunk_FQUY77HT = require("./chunk-FQUY77HT.cjs");
47
+ var import_chunk_QXIHYOMF = require("./chunk-QXIHYOMF.cjs");
48
+ var import_chunk_CFBERLTN = require("./chunk-CFBERLTN.cjs");
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");
50
52
  var import_app_framework = require("@dxos/app-framework");
51
53
  var import_functions = require("@dxos/functions");
52
54
  var import_plugin_client = require("@dxos/plugin-client");
@@ -56,10 +58,10 @@ var import_live_object = require("@dxos/live-object");
56
58
  var translations_default = [
57
59
  {
58
60
  "en-US": {
59
- [import_chunk_H3RSMGJG.AIChatType.typename]: {
61
+ [import_chunk_GB7245FH.AIChatType.typename]: {
60
62
  "typename label": "AI Chat"
61
63
  },
62
- [import_chunk_TQEDPRY5.AUTOMATION_PLUGIN]: {
64
+ [import_chunk_EQYHOTGG.AUTOMATION_PLUGIN]: {
63
65
  "plugin name": "Automation",
64
66
  "object placeholder": "New prompt",
65
67
  "create object label": "Create prompt",
@@ -98,23 +100,23 @@ var translations_default = [
98
100
  }
99
101
  }
100
102
  ];
101
- var AutomationPlugin = () => (0, import_app_framework.definePlugin)(import_chunk_TQEDPRY5.meta, [
103
+ var AutomationPlugin = () => (0, import_app_framework.definePlugin)(import_chunk_EQYHOTGG.meta, [
102
104
  (0, import_app_framework.defineModule)({
103
- id: `${import_chunk_TQEDPRY5.meta.id}/module/translations`,
105
+ id: `${import_chunk_EQYHOTGG.meta.id}/module/translations`,
104
106
  activatesOn: import_app_framework.Events.SetupTranslations,
105
107
  activate: () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.Translations, translations_default)
106
108
  }),
107
109
  (0, import_app_framework.defineModule)({
108
- id: `${import_chunk_TQEDPRY5.meta.id}/module/metadata`,
110
+ id: `${import_chunk_EQYHOTGG.meta.id}/module/metadata`,
109
111
  activatesOn: import_app_framework.Events.SetupMetadata,
110
112
  activate: () => [
111
113
  (0, import_app_framework.contributes)(import_app_framework.Capabilities.Metadata, {
112
- id: import_chunk_H3RSMGJG.ChainType.typename,
114
+ id: import_chunk_GB7245FH.ChainType.typename,
113
115
  metadata: {
114
116
  placeholder: [
115
117
  "object placeholder",
116
118
  {
117
- ns: import_chunk_TQEDPRY5.AUTOMATION_PLUGIN
119
+ ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
118
120
  }
119
121
  ],
120
122
  icon: "ph--magic-wand--regular",
@@ -123,13 +125,13 @@ var AutomationPlugin = () => (0, import_app_framework.definePlugin)(import_chunk
123
125
  }
124
126
  }),
125
127
  (0, import_app_framework.contributes)(import_app_framework.Capabilities.Metadata, {
126
- id: import_chunk_H3RSMGJG.AIChatType.typename,
128
+ id: import_chunk_GB7245FH.AIChatType.typename,
127
129
  metadata: {
128
- createObject: (props) => (0, import_app_framework.createIntent)(import_chunk_H3RSMGJG.AutomationAction.Create, props),
130
+ createObject: (props) => (0, import_app_framework.createIntent)(import_chunk_GB7245FH.AutomationAction.Create, props),
129
131
  placeholder: [
130
132
  "object placeholder",
131
133
  {
132
- ns: import_chunk_TQEDPRY5.AUTOMATION_PLUGIN
134
+ ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
133
135
  }
134
136
  ],
135
137
  icon: "ph--atom--regular"
@@ -138,22 +140,22 @@ var AutomationPlugin = () => (0, import_app_framework.definePlugin)(import_chunk
138
140
  ]
139
141
  }),
140
142
  (0, import_app_framework.defineModule)({
141
- id: `${import_chunk_TQEDPRY5.meta.id}/module/schema`,
143
+ id: `${import_chunk_EQYHOTGG.meta.id}/module/schema`,
142
144
  activatesOn: import_plugin_client.ClientEvents.SetupSchema,
143
145
  activate: () => [
144
146
  (0, import_app_framework.contributes)(import_plugin_client.ClientCapabilities.SystemSchema, [
145
- import_chunk_H3RSMGJG.ChainType,
146
- import_chunk_H3RSMGJG.ChainPromptType,
147
+ import_chunk_GB7245FH.ChainType,
148
+ import_chunk_GB7245FH.ChainPromptType,
147
149
  import_functions.FunctionTrigger,
148
- import_chunk_H3RSMGJG.ServiceType
150
+ import_chunk_GB7245FH.ServiceType
149
151
  ]),
150
152
  (0, import_app_framework.contributes)(import_plugin_client.ClientCapabilities.Schema, [
151
- import_chunk_H3RSMGJG.AIChatType
153
+ import_chunk_GB7245FH.AIChatType
152
154
  ])
153
155
  ]
154
156
  }),
155
157
  (0, import_app_framework.defineModule)({
156
- id: `${import_chunk_TQEDPRY5.meta.id}/module/complementary-panels`,
158
+ id: `${import_chunk_EQYHOTGG.meta.id}/module/complementary-panels`,
157
159
  activatesOn: import_app_framework.Events.Startup,
158
160
  activate: () => [
159
161
  (0, import_app_framework.contributes)(import_plugin_deck.DeckCapabilities.ComplementaryPanel, {
@@ -161,7 +163,7 @@ var AutomationPlugin = () => (0, import_app_framework.definePlugin)(import_chunk
161
163
  label: [
162
164
  "service registry label",
163
165
  {
164
- ns: import_chunk_TQEDPRY5.AUTOMATION_PLUGIN
166
+ ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
165
167
  }
166
168
  ],
167
169
  icon: "ph--plugs--regular"
@@ -171,7 +173,7 @@ var AutomationPlugin = () => (0, import_app_framework.definePlugin)(import_chunk
171
173
  label: [
172
174
  "automation panel label",
173
175
  {
174
- ns: import_chunk_TQEDPRY5.AUTOMATION_PLUGIN
176
+ ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
175
177
  }
176
178
  ],
177
179
  icon: "ph--magic-wand--regular"
@@ -179,24 +181,24 @@ var AutomationPlugin = () => (0, import_app_framework.definePlugin)(import_chunk
179
181
  ]
180
182
  }),
181
183
  (0, import_app_framework.defineModule)({
182
- id: `${import_chunk_TQEDPRY5.meta.id}/module/react-surface`,
184
+ id: `${import_chunk_EQYHOTGG.meta.id}/module/react-surface`,
183
185
  activatesOn: import_app_framework.Events.SetupSurfaces,
184
- activate: import_chunk_DKGNORZK.ReactSurface
186
+ activate: import_chunk_CFBERLTN.ReactSurface
185
187
  }),
186
188
  (0, import_app_framework.defineModule)({
187
- id: `${import_chunk_TQEDPRY5.meta.id}/module/app-graph-builder`,
189
+ id: `${import_chunk_EQYHOTGG.meta.id}/module/app-graph-builder`,
188
190
  activatesOn: import_app_framework.Events.SetupAppGraph,
189
- activate: import_chunk_DKGNORZK.AppGraphBuilder
191
+ activate: import_chunk_CFBERLTN.AppGraphBuilder
190
192
  }),
191
193
  (0, import_app_framework.defineModule)({
192
- id: `${import_chunk_TQEDPRY5.meta.id}/module/intent-resolver`,
194
+ id: `${import_chunk_EQYHOTGG.meta.id}/module/intent-resolver`,
193
195
  activatesOn: import_app_framework.Events.SetupIntents,
194
- activate: import_chunk_DKGNORZK.IntentResolver
196
+ activate: import_chunk_CFBERLTN.IntentResolver
195
197
  }),
196
198
  (0, import_app_framework.defineModule)({
197
- id: `${import_chunk_TQEDPRY5.meta.id}/module/ai-client`,
199
+ id: `${import_chunk_EQYHOTGG.meta.id}/module/ai-client`,
198
200
  activatesOn: import_plugin_client.ClientEvents.ClientReady,
199
- activate: import_chunk_DKGNORZK.AiClient
201
+ activate: import_chunk_CFBERLTN.AiClient
200
202
  })
201
203
  ]);
202
204
  var str = (...text) => text.filter((value) => value !== void 0 && value !== false).flat().join("\n");
@@ -204,7 +206,7 @@ var chainPresets = [
204
206
  {
205
207
  id: "dxos.org/prompt/translate",
206
208
  title: "Translate",
207
- createPrompt: () => (0, import_live_object.create)(import_chunk_H3RSMGJG.ChainPromptType, {
209
+ createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
208
210
  command: "say",
209
211
  template: str(
210
212
  // prettier-ignore
@@ -216,12 +218,12 @@ var chainPresets = [
216
218
  ),
217
219
  inputs: [
218
220
  {
219
- type: import_chunk_H3RSMGJG.ChainInputType.VALUE,
221
+ type: import_chunk_GB7245FH.ChainInputType.VALUE,
220
222
  name: "language",
221
223
  value: "japanese"
222
224
  },
223
225
  {
224
- type: import_chunk_H3RSMGJG.ChainInputType.PASS_THROUGH,
226
+ type: import_chunk_GB7245FH.ChainInputType.PASS_THROUGH,
225
227
  name: "input"
226
228
  }
227
229
  ]
@@ -230,7 +232,7 @@ var chainPresets = [
230
232
  {
231
233
  id: "dxos.org/prompt/chess",
232
234
  title: "Chess",
233
- createPrompt: () => (0, import_live_object.create)(import_chunk_H3RSMGJG.ChainPromptType, {
235
+ createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
234
236
  command: "hint",
235
237
  template: str(
236
238
  // prettier-ignore
@@ -242,7 +244,7 @@ var chainPresets = [
242
244
  ),
243
245
  inputs: [
244
246
  {
245
- type: import_chunk_H3RSMGJG.ChainInputType.CONTEXT,
247
+ type: import_chunk_GB7245FH.ChainInputType.CONTEXT,
246
248
  name: "history",
247
249
  value: "object.pgn"
248
250
  }
@@ -252,7 +254,7 @@ var chainPresets = [
252
254
  {
253
255
  id: "dxos.org/prompt/mermaid",
254
256
  title: "Mermaid",
255
- createPrompt: () => (0, import_live_object.create)(import_chunk_H3RSMGJG.ChainPromptType, {
257
+ createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
256
258
  command: "draw",
257
259
  template: str(
258
260
  // prettier-ignore
@@ -265,7 +267,7 @@ var chainPresets = [
265
267
  ),
266
268
  inputs: [
267
269
  {
268
- type: import_chunk_H3RSMGJG.ChainInputType.PASS_THROUGH,
270
+ type: import_chunk_GB7245FH.ChainInputType.PASS_THROUGH,
269
271
  name: "input"
270
272
  }
271
273
  ]
@@ -274,7 +276,7 @@ var chainPresets = [
274
276
  {
275
277
  id: "dxos.org/prompt/list",
276
278
  title: "List",
277
- createPrompt: () => (0, import_live_object.create)(import_chunk_H3RSMGJG.ChainPromptType, {
279
+ createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
278
280
  command: "list",
279
281
  template: str(
280
282
  // prettier-ignore
@@ -291,12 +293,12 @@ var chainPresets = [
291
293
  ),
292
294
  inputs: [
293
295
  {
294
- type: import_chunk_H3RSMGJG.ChainInputType.SCHEMA,
296
+ type: import_chunk_GB7245FH.ChainInputType.SCHEMA,
295
297
  name: "schema",
296
298
  value: "example.com/type/project"
297
299
  },
298
300
  {
299
- type: import_chunk_H3RSMGJG.ChainInputType.PASS_THROUGH,
301
+ type: import_chunk_GB7245FH.ChainInputType.PASS_THROUGH,
300
302
  name: "question"
301
303
  }
302
304
  ]
@@ -305,7 +307,7 @@ var chainPresets = [
305
307
  {
306
308
  id: "dxos.org/prompt/base",
307
309
  title: "RAG",
308
- createPrompt: () => (0, import_live_object.create)(import_chunk_H3RSMGJG.ChainPromptType, {
310
+ createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
309
311
  command: "rag",
310
312
  template: str(
311
313
  // prettier-ignore
@@ -320,11 +322,11 @@ var chainPresets = [
320
322
  ),
321
323
  inputs: [
322
324
  {
323
- type: import_chunk_H3RSMGJG.ChainInputType.RETRIEVER,
325
+ type: import_chunk_GB7245FH.ChainInputType.RETRIEVER,
324
326
  name: "context"
325
327
  },
326
328
  {
327
- type: import_chunk_H3RSMGJG.ChainInputType.CONTEXT,
329
+ type: import_chunk_GB7245FH.ChainInputType.CONTEXT,
328
330
  name: "question",
329
331
  value: "object.text"
330
332
  }
@@ -334,7 +336,7 @@ var chainPresets = [
334
336
  {
335
337
  id: "dxos.org/prompt/lookup",
336
338
  title: "Lookup",
337
- createPrompt: () => (0, import_live_object.create)(import_chunk_H3RSMGJG.ChainPromptType, {
339
+ createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
338
340
  command: "lookup",
339
341
  template: str(
340
342
  // prettier-ignore
@@ -346,7 +348,7 @@ var chainPresets = [
346
348
  ),
347
349
  inputs: [
348
350
  {
349
- type: import_chunk_H3RSMGJG.ChainInputType.CONTEXT,
351
+ type: import_chunk_GB7245FH.ChainInputType.CONTEXT,
350
352
  name: "input",
351
353
  value: "text"
352
354
  }
@@ -356,7 +358,7 @@ var chainPresets = [
356
358
  {
357
359
  id: "dxos.org/prompt/extract",
358
360
  title: "Extract",
359
- createPrompt: () => (0, import_live_object.create)(import_chunk_H3RSMGJG.ChainPromptType, {
361
+ createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
360
362
  command: "extract",
361
363
  template: str(
362
364
  // prettier-ignore
@@ -374,17 +376,17 @@ var chainPresets = [
374
376
  ),
375
377
  inputs: [
376
378
  {
377
- type: import_chunk_H3RSMGJG.ChainInputType.SCHEMA,
379
+ type: import_chunk_GB7245FH.ChainInputType.SCHEMA,
378
380
  name: "contact",
379
381
  value: "example.com/type/contact"
380
382
  },
381
383
  {
382
- type: import_chunk_H3RSMGJG.ChainInputType.SCHEMA,
384
+ type: import_chunk_GB7245FH.ChainInputType.SCHEMA,
383
385
  name: "company",
384
386
  value: "example.com/type/organization"
385
387
  },
386
388
  {
387
- type: import_chunk_H3RSMGJG.ChainInputType.CONTEXT,
389
+ type: import_chunk_GB7245FH.ChainInputType.CONTEXT,
388
390
  name: "input",
389
391
  value: "text"
390
392
  }
@@ -394,7 +396,7 @@ var chainPresets = [
394
396
  {
395
397
  id: "dxos.org/prompt/discord",
396
398
  title: "Summarize",
397
- createPrompt: () => (0, import_live_object.create)(import_chunk_H3RSMGJG.ChainPromptType, {
399
+ createPrompt: () => (0, import_live_object.create)(import_chunk_GB7245FH.ChainPromptType, {
398
400
  command: "summarize",
399
401
  template: str(
400
402
  // prettier-ignore
@@ -406,7 +408,7 @@ var chainPresets = [
406
408
  ),
407
409
  inputs: [
408
410
  {
409
- type: import_chunk_H3RSMGJG.ChainInputType.RESOLVER,
411
+ type: import_chunk_GB7245FH.ChainInputType.RESOLVER,
410
412
  name: "context",
411
413
  value: "discord.messages.recent"
412
414
  }
@@ -417,7 +419,9 @@ var chainPresets = [
417
419
  // Annotate the CommonJS export names for ESM import in node:
418
420
  0 && (module.exports = {
419
421
  AIChatType,
422
+ AMBIENT_CHAT_DIALOG,
420
423
  AUTOMATION_PLUGIN,
424
+ AmbientChatDialog,
421
425
  ApiAuthorization,
422
426
  AutomationAction,
423
427
  AutomationPanel,
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/AutomationPlugin.tsx", "../../../src/translations.ts", "../../../src/presets.ts"],
4
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": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,2BAA4F;AAC5F,uBAAgC;AAChC,2BAAiD;AACjD,yBAAiC;AACjC,kBAAyB;AEJzB,yBAAuB;ADGvB,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACA,iCAAWC,QAAQ,GAAG;QACrB,kBAAkB;MACpB;MACA,CAACC,uCAAAA,GAAoB;QACnB,eAAe;QACf,sBAAsB;QACtB,uBAAuB;QACvB,wBAAwB;QACxB,8BAA8B;QAC9B,uBAAuB;QACvB,wBAAwB;QACxB,qBAAqB;QACrB,sCAAsC;QACtC,+BAA+B;QAC/B,0BAA0B;QAC1B,0BAA0B;QAE1B,0BAA0B;QAC1B,aAAa;QAEb,yBAAyB;QACzB,+BAA+B;QAC/B,oBAAoB;QAEpB,wBAAwB;QACxB,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,IAAI;IACJsD,OAAO;IACPC,cAAc,UACZC,2BAAO1B,uCAAiB;MACtB2B,SAAS;MACTC,UAAUZ;;QAER;QACA;QACA;QACA;QACA;MAAA;MAEFa,QAAQ;QACN;UACEC,MAAMC,qCAAeO;UACrBL,MAAM;UACNd,OAAO;QACT;;IAEJ,CAAA;EACJ;;",
6
6
  "names": ["AIChatType", "typename", "AUTOMATION_PLUGIN", "AutomationPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "SetupMetadata", "Metadata", "ChainType", "metadata", "placeholder", "ns", "icon", "loadReferences", "chain", "RefArray", "loadAll", "prompts", "createObject", "props", "createIntent", "AutomationAction", "Create", "ClientEvents", "SetupSchema", "ClientCapabilities", "SystemSchema", "ChainPromptType", "FunctionTrigger", "ServiceType", "Schema", "Startup", "DeckCapabilities", "ComplementaryPanel", "label", "SetupSurfaces", "ReactSurface", "SetupAppGraph", "AppGraphBuilder", "SetupIntents", "IntentResolver", "ClientReady", "AiClient", "str", "text", "filter", "value", "undefined", "flat", "join", "chainPresets", "title", "createPrompt", "create", "command", "template", "inputs", "type", "ChainInputType", "VALUE", "name", "PASS_THROUGH", "CONTEXT", "SCHEMA", "RETRIEVER", "RESOLVER"]
7
7
  }
@@ -16,21 +16,21 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var intent_resolver_MJFZT5IU_exports = {};
20
- __export(intent_resolver_MJFZT5IU_exports, {
19
+ var intent_resolver_C6OKFVEW_exports = {};
20
+ __export(intent_resolver_C6OKFVEW_exports, {
21
21
  default: () => intent_resolver_default
22
22
  });
23
- module.exports = __toCommonJS(intent_resolver_MJFZT5IU_exports);
24
- var import_chunk_H3RSMGJG = require("./chunk-H3RSMGJG.cjs");
25
- var import_chunk_TQEDPRY5 = require("./chunk-TQEDPRY5.cjs");
23
+ module.exports = __toCommonJS(intent_resolver_C6OKFVEW_exports);
24
+ var import_chunk_GB7245FH = require("./chunk-GB7245FH.cjs");
25
+ var import_chunk_EQYHOTGG = require("./chunk-EQYHOTGG.cjs");
26
26
  var import_app_framework = require("@dxos/app-framework");
27
27
  var import_echo_schema = require("@dxos/echo-schema");
28
28
  var import_live_object = require("@dxos/live-object");
29
29
  var intent_resolver_default = () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.IntentResolver, (0, import_app_framework.createResolver)({
30
- intent: import_chunk_H3RSMGJG.AutomationAction.Create,
30
+ intent: import_chunk_GB7245FH.AutomationAction.Create,
31
31
  resolve: ({ name }) => ({
32
32
  data: {
33
- object: (0, import_live_object.create)(import_chunk_H3RSMGJG.AIChatType, {
33
+ object: (0, import_live_object.create)(import_chunk_GB7245FH.AIChatType, {
34
34
  name,
35
35
  // TODO(burdon): ???
36
36
  // new DXN(DXN.kind.QUEUE, [QueueSubspaceTags.DATA, SpaceId.random(), ObjectId.random()]).toString(),
@@ -41,4 +41,4 @@ var intent_resolver_default = () => (0, import_app_framework.contributes)(import
41
41
  }
42
42
  })
43
43
  }));
44
- //# sourceMappingURL=intent-resolver-MJFZT5IU.cjs.map
44
+ //# sourceMappingURL=intent-resolver-C6OKFVEW.cjs.map