@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.
- package/dist/lib/browser/AutomationPanel-VW2XIUPU.mjs +8 -0
- package/dist/lib/browser/ChatContainer-OLRZNGWK.mjs +12 -0
- package/dist/lib/browser/{ai-client-UJLNYP7B.mjs → ai-client-5CNY6JBF.mjs} +3 -3
- package/dist/lib/browser/{app-graph-builder-3H5TCRG4.mjs → app-graph-builder-6H7MDCXE.mjs} +39 -4
- package/dist/lib/browser/app-graph-builder-6H7MDCXE.mjs.map +7 -0
- package/dist/lib/browser/{chunk-BQHXJZ4K.mjs → chunk-2H2EUYXL.mjs} +2 -2
- package/dist/lib/browser/{chunk-N4SSCQ7P.mjs → chunk-ITG6CBKL.mjs} +10 -10
- package/dist/lib/browser/chunk-ITG6CBKL.mjs.map +7 -0
- package/dist/lib/browser/chunk-MRBC5J4T.mjs +518 -0
- package/dist/lib/browser/chunk-MRBC5J4T.mjs.map +7 -0
- package/dist/lib/browser/{chunk-6KJRL5KV.mjs → chunk-NQFZ6XRX.mjs} +2 -2
- package/dist/lib/browser/{chunk-43WRHV2L.mjs → chunk-Q4IMHYGH.mjs} +2 -2
- package/dist/lib/browser/{chunk-DQ7ZSYJJ.mjs → chunk-R4JH4TLE.mjs} +3 -1
- package/dist/lib/browser/chunk-R4JH4TLE.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +10 -6
- package/dist/lib/browser/index.mjs.map +1 -1
- package/dist/lib/browser/{intent-resolver-5YVZJFS3.mjs → intent-resolver-BWAXKT27.mjs} +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-RRTZFTKR.mjs → react-surface-O6SHIBCA.mjs} +15 -7
- package/dist/lib/browser/react-surface-O6SHIBCA.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +2 -2
- package/dist/lib/node/{AutomationPanel-BCEY3YXO.cjs → AutomationPanel-G6EDDYWW.cjs} +7 -7
- package/dist/lib/node/{AutomationPanel-BCEY3YXO.cjs.map → AutomationPanel-G6EDDYWW.cjs.map} +2 -2
- package/dist/lib/node/{ChatContainer-QUWFEBTI.cjs → ChatContainer-GRZDJIG5.cjs} +10 -10
- package/dist/lib/node/ChatContainer-GRZDJIG5.cjs.map +7 -0
- package/dist/lib/node/{ai-client-AOB6TLNW.cjs → ai-client-FKLPDELV.cjs} +7 -7
- package/dist/lib/node/{app-graph-builder-CDEQJEHY.cjs → app-graph-builder-7JMJLZIE.cjs} +48 -14
- package/dist/lib/node/app-graph-builder-7JMJLZIE.cjs.map +7 -0
- package/dist/lib/node/{chunk-DKGNORZK.cjs → chunk-CFBERLTN.cjs} +21 -21
- package/dist/lib/node/chunk-CFBERLTN.cjs.map +7 -0
- package/dist/lib/node/{chunk-TQEDPRY5.cjs → chunk-EQYHOTGG.cjs} +7 -4
- package/dist/lib/node/chunk-EQYHOTGG.cjs.map +7 -0
- package/dist/lib/node/chunk-FQUY77HT.cjs +527 -0
- package/dist/lib/node/chunk-FQUY77HT.cjs.map +7 -0
- package/dist/lib/node/{chunk-H3RSMGJG.cjs → chunk-GB7245FH.cjs} +6 -6
- package/dist/lib/node/{chunk-IPCNJYQL.cjs → chunk-QXIHYOMF.cjs} +7 -7
- package/dist/lib/node/{chunk-AWZVJZ2I.cjs → chunk-U5Z7LFWB.cjs} +6 -6
- package/dist/lib/node/index.cjs +75 -71
- package/dist/lib/node/index.cjs.map +1 -1
- package/dist/lib/node/{intent-resolver-MJFZT5IU.cjs → intent-resolver-C6OKFVEW.cjs} +8 -8
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-BVZ63QP4.cjs → react-surface-JT6SVCPK.cjs} +23 -17
- package/dist/lib/node/react-surface-JT6SVCPK.cjs.map +7 -0
- package/dist/lib/node/types/index.cjs +11 -11
- package/dist/lib/node/types/index.cjs.map +1 -1
- package/dist/lib/node-esm/{AutomationPanel-YTIZ74RI.mjs → AutomationPanel-V3IWQAMO.mjs} +3 -3
- package/dist/lib/node-esm/{ChatContainer-QSMDZRDU.mjs → ChatContainer-ORVWQPJO.mjs} +5 -5
- package/dist/lib/node-esm/{ai-client-RUCCJ7JZ.mjs → ai-client-XGNA6SJ5.mjs} +3 -3
- package/dist/lib/node-esm/{app-graph-builder-GR3URVNX.mjs → app-graph-builder-C6NUQGCU.mjs} +39 -4
- package/dist/lib/node-esm/app-graph-builder-C6NUQGCU.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-2OKJZ4ZW.mjs +519 -0
- package/dist/lib/node-esm/chunk-2OKJZ4ZW.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-CZXU4CFK.mjs → chunk-6HLBYDUI.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-D7RARVTS.mjs → chunk-7VPT3OO3.mjs} +10 -10
- package/dist/lib/node-esm/chunk-7VPT3OO3.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-7JO77AAS.mjs → chunk-DNCXRGAF.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-JFHI22MF.mjs → chunk-EMVA6QUT.mjs} +3 -1
- package/dist/lib/node-esm/chunk-EMVA6QUT.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-LSSWQIQD.mjs → chunk-IJRTDSKN.mjs} +2 -2
- package/dist/lib/node-esm/index.mjs +10 -6
- package/dist/lib/node-esm/index.mjs.map +1 -1
- package/dist/lib/node-esm/{intent-resolver-FCKNRTKQ.mjs → intent-resolver-DCP4ZDBA.mjs} +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-Y5LQHUQN.mjs → react-surface-DSVM33SA.mjs} +15 -7
- package/dist/lib/node-esm/react-surface-DSVM33SA.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +2 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts +23 -22
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.d.ts +3 -0
- package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.d.ts.map +1 -0
- package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.stories.d.ts +8 -0
- package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.stories.d.ts.map +1 -0
- package/dist/types/src/components/AmbientChatDialog/index.d.ts +2 -0
- package/dist/types/src/components/AmbientChatDialog/index.d.ts.map +1 -0
- package/dist/types/src/components/Prompt/Prompt.d.ts +3 -3
- package/dist/types/src/components/Prompt/Prompt.d.ts.map +1 -1
- package/dist/types/src/components/Prompt/prompt-autocomplete.d.ts +1 -1
- package/dist/types/src/components/Prompt/prompt-autocomplete.d.ts.map +1 -1
- package/dist/types/src/components/ServiceRegistry/ServiceRegistry.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -0
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +1 -0
- package/dist/types/src/meta.d.ts.map +1 -1
- package/package.json +52 -51
- package/src/capabilities/app-graph-builder.ts +34 -3
- package/src/capabilities/react-surface.tsx +8 -2
- package/src/components/AmbientChatDialog/AmbientChatDialog.stories.tsx +44 -0
- package/src/components/AmbientChatDialog/AmbientChatDialog.tsx +63 -0
- package/src/components/AmbientChatDialog/index.ts +5 -0
- package/src/components/Prompt/Prompt.tsx +6 -3
- package/src/components/Prompt/prompt-autocomplete.ts +2 -2
- package/src/components/PromptEditor/PromptEditor.tsx +3 -3
- package/src/components/ServiceRegistry/ServiceRegistry.tsx +1 -0
- package/src/components/Thread/Thread.stories.tsx +1 -1
- package/src/components/index.ts +1 -0
- package/src/hooks/useChatProcessor.tsx +2 -2
- package/src/meta.ts +2 -0
- package/src/tools/openapi.test.ts +3 -6
- package/dist/lib/browser/AutomationPanel-CL2TWZT5.mjs +0 -8
- package/dist/lib/browser/ChatContainer-EJ3IWL7Y.mjs +0 -12
- package/dist/lib/browser/app-graph-builder-3H5TCRG4.mjs.map +0 -7
- package/dist/lib/browser/chunk-4M74P6YW.mjs +0 -284
- package/dist/lib/browser/chunk-4M74P6YW.mjs.map +0 -7
- package/dist/lib/browser/chunk-DQ7ZSYJJ.mjs.map +0 -7
- package/dist/lib/browser/chunk-N4SSCQ7P.mjs.map +0 -7
- package/dist/lib/browser/react-surface-RRTZFTKR.mjs.map +0 -7
- package/dist/lib/node/ChatContainer-QUWFEBTI.cjs.map +0 -7
- package/dist/lib/node/app-graph-builder-CDEQJEHY.cjs.map +0 -7
- package/dist/lib/node/chunk-DKGNORZK.cjs.map +0 -7
- package/dist/lib/node/chunk-LC6KNDPQ.cjs +0 -302
- package/dist/lib/node/chunk-LC6KNDPQ.cjs.map +0 -7
- package/dist/lib/node/chunk-TQEDPRY5.cjs.map +0 -7
- package/dist/lib/node/react-surface-BVZ63QP4.cjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-GR3URVNX.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-CQPQXIJP.mjs +0 -285
- package/dist/lib/node-esm/chunk-CQPQXIJP.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-D7RARVTS.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-JFHI22MF.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-Y5LQHUQN.mjs.map +0 -7
- /package/dist/lib/browser/{AutomationPanel-CL2TWZT5.mjs.map → AutomationPanel-VW2XIUPU.mjs.map} +0 -0
- /package/dist/lib/browser/{ChatContainer-EJ3IWL7Y.mjs.map → ChatContainer-OLRZNGWK.mjs.map} +0 -0
- /package/dist/lib/browser/{ai-client-UJLNYP7B.mjs.map → ai-client-5CNY6JBF.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-BQHXJZ4K.mjs.map → chunk-2H2EUYXL.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-6KJRL5KV.mjs.map → chunk-NQFZ6XRX.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-43WRHV2L.mjs.map → chunk-Q4IMHYGH.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-resolver-5YVZJFS3.mjs.map → intent-resolver-BWAXKT27.mjs.map} +0 -0
- /package/dist/lib/node/{ai-client-AOB6TLNW.cjs.map → ai-client-FKLPDELV.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-H3RSMGJG.cjs.map → chunk-GB7245FH.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-IPCNJYQL.cjs.map → chunk-QXIHYOMF.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-AWZVJZ2I.cjs.map → chunk-U5Z7LFWB.cjs.map} +0 -0
- /package/dist/lib/node/{intent-resolver-MJFZT5IU.cjs.map → intent-resolver-C6OKFVEW.cjs.map} +0 -0
- /package/dist/lib/node-esm/{AutomationPanel-YTIZ74RI.mjs.map → AutomationPanel-V3IWQAMO.mjs.map} +0 -0
- /package/dist/lib/node-esm/{ChatContainer-QSMDZRDU.mjs.map → ChatContainer-ORVWQPJO.mjs.map} +0 -0
- /package/dist/lib/node-esm/{ai-client-RUCCJ7JZ.mjs.map → ai-client-XGNA6SJ5.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-CZXU4CFK.mjs.map → chunk-6HLBYDUI.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-7JO77AAS.mjs.map → chunk-DNCXRGAF.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-LSSWQIQD.mjs.map → chunk-IJRTDSKN.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-resolver-FCKNRTKQ.mjs.map → intent-resolver-DCP4ZDBA.mjs.map} +0 -0
|
@@ -16,11 +16,11 @@ 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
|
|
20
|
-
__export(
|
|
21
|
-
default: () =>
|
|
19
|
+
var AutomationPanel_G6EDDYWW_exports = {};
|
|
20
|
+
__export(AutomationPanel_G6EDDYWW_exports, {
|
|
21
|
+
default: () => import_chunk_QXIHYOMF.AutomationPanel_default
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
//# sourceMappingURL=AutomationPanel-
|
|
23
|
+
module.exports = __toCommonJS(AutomationPanel_G6EDDYWW_exports);
|
|
24
|
+
var import_chunk_QXIHYOMF = require("./chunk-QXIHYOMF.cjs");
|
|
25
|
+
var import_chunk_EQYHOTGG = require("./chunk-EQYHOTGG.cjs");
|
|
26
|
+
//# sourceMappingURL=AutomationPanel-G6EDDYWW.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["AutomationPanel-
|
|
4
|
-
"sourcesContent": ["import {\n AutomationPanel_default\n} from \"./chunk-
|
|
3
|
+
"sources": ["AutomationPanel-G6EDDYWW.cjs"],
|
|
4
|
+
"sourcesContent": ["import {\n AutomationPanel_default\n} from \"./chunk-QXIHYOMF.cjs\";\nimport \"./chunk-EQYHOTGG.cjs\";\nexport {\n AutomationPanel_default as default\n};\n//# sourceMappingURL=AutomationPanel-G6EDDYWW.cjs.map\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAEO;AACP,4BAAO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -16,18 +16,18 @@ 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
|
|
20
|
-
__export(
|
|
21
|
-
ChatContainer: () =>
|
|
22
|
-
default: () =>
|
|
19
|
+
var ChatContainer_GRZDJIG5_exports = {};
|
|
20
|
+
__export(ChatContainer_GRZDJIG5_exports, {
|
|
21
|
+
ChatContainer: () => import_chunk_CFBERLTN.ChatContainer,
|
|
22
|
+
default: () => import_chunk_CFBERLTN.ChatContainer_default
|
|
23
23
|
});
|
|
24
|
-
module.exports = __toCommonJS(
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
24
|
+
module.exports = __toCommonJS(ChatContainer_GRZDJIG5_exports);
|
|
25
|
+
var import_chunk_CFBERLTN = require("./chunk-CFBERLTN.cjs");
|
|
26
|
+
var import_chunk_U5Z7LFWB = require("./chunk-U5Z7LFWB.cjs");
|
|
27
|
+
var import_chunk_GB7245FH = require("./chunk-GB7245FH.cjs");
|
|
28
|
+
var import_chunk_EQYHOTGG = require("./chunk-EQYHOTGG.cjs");
|
|
29
29
|
// Annotate the CommonJS export names for ESM import in node:
|
|
30
30
|
0 && (module.exports = {
|
|
31
31
|
ChatContainer
|
|
32
32
|
});
|
|
33
|
-
//# sourceMappingURL=ChatContainer-
|
|
33
|
+
//# sourceMappingURL=ChatContainer-GRZDJIG5.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["ChatContainer-GRZDJIG5.cjs"],
|
|
4
|
+
"sourcesContent": ["import {\n ChatContainer,\n ChatContainer_default\n} from \"./chunk-CFBERLTN.cjs\";\nimport \"./chunk-U5Z7LFWB.cjs\";\nimport \"./chunk-GB7245FH.cjs\";\nimport \"./chunk-EQYHOTGG.cjs\";\nexport {\n ChatContainer,\n ChatContainer_default as default\n};\n//# sourceMappingURL=ChatContainer-GRZDJIG5.cjs.map\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAGO;AACP,4BAAO;AACP,4BAAO;AACP,4BAAO;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -16,13 +16,13 @@ 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
|
|
20
|
-
__export(
|
|
19
|
+
var ai_client_FKLPDELV_exports = {};
|
|
20
|
+
__export(ai_client_FKLPDELV_exports, {
|
|
21
21
|
default: () => ai_client_default
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
25
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(ai_client_FKLPDELV_exports);
|
|
24
|
+
var import_chunk_U5Z7LFWB = require("./chunk-U5Z7LFWB.cjs");
|
|
25
|
+
var import_chunk_EQYHOTGG = require("./chunk-EQYHOTGG.cjs");
|
|
26
26
|
var import_app_framework = require("@dxos/app-framework");
|
|
27
27
|
var import_assistant = require("@dxos/assistant");
|
|
28
28
|
var import_plugin_client = require("@dxos/plugin-client");
|
|
@@ -33,6 +33,6 @@ var ai_client_default = (context) => {
|
|
|
33
33
|
const aiClient = new import_assistant.AIServiceClientImpl({
|
|
34
34
|
endpoint
|
|
35
35
|
});
|
|
36
|
-
return (0, import_app_framework.contributes)(
|
|
36
|
+
return (0, import_app_framework.contributes)(import_chunk_U5Z7LFWB.AutomationCapabilities.AiClient, aiClient);
|
|
37
37
|
};
|
|
38
|
-
//# sourceMappingURL=ai-client-
|
|
38
|
+
//# sourceMappingURL=ai-client-FKLPDELV.cjs.map
|
|
@@ -16,12 +16,12 @@ 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
|
|
20
|
-
__export(
|
|
19
|
+
var app_graph_builder_7JMJLZIE_exports = {};
|
|
20
|
+
__export(app_graph_builder_7JMJLZIE_exports, {
|
|
21
21
|
default: () => app_graph_builder_default
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(app_graph_builder_7JMJLZIE_exports);
|
|
24
|
+
var import_chunk_EQYHOTGG = require("./chunk-EQYHOTGG.cjs");
|
|
25
25
|
var import_app_framework = require("@dxos/app-framework");
|
|
26
26
|
var import_plugin_client = require("@dxos/plugin-client");
|
|
27
27
|
var import_plugin_graph = require("@dxos/plugin-graph");
|
|
@@ -31,7 +31,41 @@ var app_graph_builder_default = (context) => {
|
|
|
31
31
|
const resolve = (typename) => context.requestCapabilities(import_app_framework.Capabilities.Metadata).find(({ id }) => id === typename)?.metadata ?? {};
|
|
32
32
|
return (0, import_app_framework.contributes)(import_app_framework.Capabilities.AppGraphBuilder, [
|
|
33
33
|
(0, import_plugin_graph.createExtension)({
|
|
34
|
-
id: `${
|
|
34
|
+
id: `${import_chunk_EQYHOTGG.AUTOMATION_PLUGIN}/ambient-chat`,
|
|
35
|
+
filter: (node) => node.id === import_plugin_graph.ROOT_ID,
|
|
36
|
+
actions: () => [
|
|
37
|
+
{
|
|
38
|
+
id: `${import_app_framework.LayoutAction.UpdateDialog._tag}/ambient-chat/open`,
|
|
39
|
+
data: async () => {
|
|
40
|
+
const { dispatchPromise: dispatch } = context.requestCapability(import_app_framework.Capabilities.IntentDispatcher);
|
|
41
|
+
await dispatch((0, import_app_framework.createIntent)(import_app_framework.LayoutAction.UpdateDialog, {
|
|
42
|
+
part: "dialog",
|
|
43
|
+
subject: import_chunk_EQYHOTGG.AMBIENT_CHAT_DIALOG,
|
|
44
|
+
options: {
|
|
45
|
+
state: true,
|
|
46
|
+
blockAlign: "end"
|
|
47
|
+
}
|
|
48
|
+
}));
|
|
49
|
+
},
|
|
50
|
+
properties: {
|
|
51
|
+
label: [
|
|
52
|
+
"open ambient chat label",
|
|
53
|
+
{
|
|
54
|
+
ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
icon: "ph--chat-centered-text--regular",
|
|
58
|
+
disposition: "pin-end",
|
|
59
|
+
keyBinding: {
|
|
60
|
+
macos: "shift+meta+k",
|
|
61
|
+
windows: "shift+ctrl+k"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}),
|
|
67
|
+
(0, import_plugin_graph.createExtension)({
|
|
68
|
+
id: `${import_chunk_EQYHOTGG.AUTOMATION_PLUGIN}/service-registry`,
|
|
35
69
|
resolver: ({ id }) => {
|
|
36
70
|
if (!id.endsWith("~service-registry")) {
|
|
37
71
|
return;
|
|
@@ -52,7 +86,7 @@ var app_graph_builder_default = (context) => {
|
|
|
52
86
|
label: [
|
|
53
87
|
"service registry label",
|
|
54
88
|
{
|
|
55
|
-
ns:
|
|
89
|
+
ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
|
|
56
90
|
}
|
|
57
91
|
],
|
|
58
92
|
object: null,
|
|
@@ -62,7 +96,7 @@ var app_graph_builder_default = (context) => {
|
|
|
62
96
|
}
|
|
63
97
|
}),
|
|
64
98
|
(0, import_plugin_graph.createExtension)({
|
|
65
|
-
id: `${
|
|
99
|
+
id: `${import_chunk_EQYHOTGG.AUTOMATION_PLUGIN}/automation-for-subject`,
|
|
66
100
|
resolver: ({ id }) => {
|
|
67
101
|
if (!id.endsWith("~automation")) {
|
|
68
102
|
return;
|
|
@@ -78,12 +112,12 @@ var app_graph_builder_default = (context) => {
|
|
|
78
112
|
const label2 = space ? space.properties.name || [
|
|
79
113
|
"unnamed space label",
|
|
80
114
|
{
|
|
81
|
-
ns:
|
|
115
|
+
ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
|
|
82
116
|
}
|
|
83
117
|
] : [
|
|
84
118
|
"unnamed object settings label",
|
|
85
119
|
{
|
|
86
|
-
ns:
|
|
120
|
+
ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
|
|
87
121
|
}
|
|
88
122
|
];
|
|
89
123
|
return {
|
|
@@ -109,7 +143,7 @@ var app_graph_builder_default = (context) => {
|
|
|
109
143
|
const label = meta.label?.(object) || object.name || meta.placeholder || [
|
|
110
144
|
"unnamed object settings label",
|
|
111
145
|
{
|
|
112
|
-
ns:
|
|
146
|
+
ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
|
|
113
147
|
}
|
|
114
148
|
];
|
|
115
149
|
return {
|
|
@@ -125,7 +159,7 @@ var app_graph_builder_default = (context) => {
|
|
|
125
159
|
}
|
|
126
160
|
}),
|
|
127
161
|
(0, import_plugin_graph.createExtension)({
|
|
128
|
-
id: `${
|
|
162
|
+
id: `${import_chunk_EQYHOTGG.AUTOMATION_PLUGIN}/assistant-for-subject`,
|
|
129
163
|
resolver: ({ id }) => {
|
|
130
164
|
if (!id.endsWith("~assistant")) {
|
|
131
165
|
return;
|
|
@@ -145,7 +179,7 @@ var app_graph_builder_default = (context) => {
|
|
|
145
179
|
label: [
|
|
146
180
|
"assistant panel label",
|
|
147
181
|
{
|
|
148
|
-
ns:
|
|
182
|
+
ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
|
|
149
183
|
}
|
|
150
184
|
],
|
|
151
185
|
object: null,
|
|
@@ -165,7 +199,7 @@ var app_graph_builder_default = (context) => {
|
|
|
165
199
|
label: [
|
|
166
200
|
"assistant panel label",
|
|
167
201
|
{
|
|
168
|
-
ns:
|
|
202
|
+
ns: import_chunk_EQYHOTGG.AUTOMATION_PLUGIN
|
|
169
203
|
}
|
|
170
204
|
],
|
|
171
205
|
object
|
|
@@ -175,4 +209,4 @@ var app_graph_builder_default = (context) => {
|
|
|
175
209
|
})
|
|
176
210
|
]);
|
|
177
211
|
};
|
|
178
|
-
//# sourceMappingURL=app-graph-builder-
|
|
212
|
+
//# sourceMappingURL=app-graph-builder-7JMJLZIE.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/app-graph-builder.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capabilities, contributes, createIntent, LayoutAction, type PluginsContext } from '@dxos/app-framework';\nimport { ClientCapabilities } from '@dxos/plugin-client';\nimport { createExtension, type Node, ROOT_ID, toSignal } from '@dxos/plugin-graph';\nimport { memoizeQuery } from '@dxos/plugin-space';\nimport { getTypename, parseId, SpaceState } from '@dxos/react-client/echo';\n\nimport { AMBIENT_CHAT_DIALOG, AUTOMATION_PLUGIN } from '../meta';\n\nexport default (context: PluginsContext) => {\n const resolve = (typename: string) =>\n context.requestCapabilities(Capabilities.Metadata).find(({ id }) => id === typename)?.metadata ?? {};\n\n return contributes(Capabilities.AppGraphBuilder, [\n createExtension({\n id: `${AUTOMATION_PLUGIN}/ambient-chat`,\n filter: (node): node is Node<null> => node.id === ROOT_ID,\n actions: () => [\n {\n id: `${LayoutAction.UpdateDialog._tag}/ambient-chat/open`,\n data: async () => {\n const { dispatchPromise: dispatch } = context.requestCapability(Capabilities.IntentDispatcher);\n await dispatch(\n createIntent(LayoutAction.UpdateDialog, {\n part: 'dialog',\n subject: AMBIENT_CHAT_DIALOG,\n options: {\n state: true,\n blockAlign: 'end',\n },\n }),\n );\n },\n properties: {\n label: ['open ambient chat label', { ns: AUTOMATION_PLUGIN }],\n icon: 'ph--chat-centered-text--regular',\n disposition: 'pin-end',\n keyBinding: {\n macos: 'shift+meta+k',\n windows: 'shift+ctrl+k',\n },\n },\n },\n ],\n }),\n createExtension({\n id: `${AUTOMATION_PLUGIN}/service-registry`,\n resolver: ({ id }) => {\n if (!id.endsWith('~service-registry')) {\n return;\n }\n\n const type = 'orphan-settings-for-subject';\n const icon = 'ph--plugs--regular';\n\n const client = context.requestCapability(ClientCapabilities.Client);\n const [subjectId] = id.split('~');\n const { spaceId } = parseId(subjectId);\n const spaces = toSignal(\n (onChange) => client.spaces.subscribe(() => onChange()).unsubscribe,\n () => client.spaces.get(),\n );\n const space = spaces?.find((space) => space.id === spaceId && space.state.get() === SpaceState.SPACE_READY);\n return {\n id,\n type,\n data: null,\n properties: {\n icon,\n label: ['service registry label', { ns: AUTOMATION_PLUGIN }],\n object: null,\n space,\n },\n };\n },\n }),\n createExtension({\n id: `${AUTOMATION_PLUGIN}/automation-for-subject`,\n resolver: ({ id }) => {\n if (!id.endsWith('~automation')) {\n return;\n }\n\n const type = 'orphan-settings-for-subject';\n const icon = 'ph--magic-wand--regular';\n\n const client = context.requestCapability(ClientCapabilities.Client);\n const [subjectId] = id.split('~');\n const { spaceId, objectId } = parseId(subjectId);\n const spaces = toSignal(\n (onChange) => client.spaces.subscribe(() => onChange()).unsubscribe,\n () => client.spaces.get(),\n );\n const space = spaces?.find((space) => space.id === spaceId && space.state.get() === SpaceState.SPACE_READY);\n if (!objectId) {\n // TODO(burdon): Ref SPACE_PLUGIN ns.\n const label = space\n ? space.properties.name || ['unnamed space label', { ns: AUTOMATION_PLUGIN }]\n : ['unnamed object settings label', { ns: AUTOMATION_PLUGIN }];\n\n // TODO(wittjosiah): Support comments for arbitrary subjects.\n // This is to ensure that the comments panel is not stuck on an old object.\n return {\n id,\n type,\n data: null,\n properties: {\n icon,\n label,\n showResolvedThreads: false,\n object: null,\n space,\n },\n };\n }\n\n const [object] = memoizeQuery(space, { id: objectId });\n if (!object || !subjectId) {\n return;\n }\n\n const meta = resolve(getTypename(object) ?? '');\n const label = meta.label?.(object) ||\n object.name ||\n meta.placeholder || ['unnamed object settings label', { ns: AUTOMATION_PLUGIN }];\n\n return {\n id,\n type,\n data: null,\n properties: {\n icon,\n label,\n object,\n },\n };\n },\n }),\n createExtension({\n id: `${AUTOMATION_PLUGIN}/assistant-for-subject`,\n resolver: ({ id }) => {\n if (!id.endsWith('~assistant')) {\n return;\n }\n\n const client = context.requestCapability(ClientCapabilities.Client);\n const [subjectId] = id.split('~');\n const { spaceId, objectId } = parseId(subjectId);\n const spaces = toSignal(\n (onChange) => client.spaces.subscribe(() => onChange()).unsubscribe,\n () => client.spaces.get(),\n );\n const space = spaces?.find((space) => space.id === spaceId && space.state.get() === SpaceState.SPACE_READY);\n if (!objectId) {\n // TODO(wittjosiah): Support assistant for arbitrary subjects.\n // This is to ensure that the assistant panel is not stuck on an old object.\n return {\n id,\n type: 'orphan-automation-for-subject',\n data: null,\n properties: {\n icon: 'ph--atom--regular',\n label: ['assistant panel label', { ns: AUTOMATION_PLUGIN }],\n object: null,\n space,\n },\n };\n }\n\n const [object] = memoizeQuery(space, { id: objectId });\n return {\n id,\n type: 'orphan-automation-for-subject',\n data: null,\n properties: {\n icon: 'ph--atom--regular',\n label: ['assistant panel label', { ns: AUTOMATION_PLUGIN }],\n object,\n },\n };\n },\n }),\n ]);\n};\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["context", "resolve", "typename", "requestCapabilities", "Capabilities", "Metadata", "find", "id", "metadata", "contributes", "AppGraphBuilder", "createExtension", "AUTOMATION_PLUGIN", "filter", "node", "ROOT_ID", "actions", "LayoutAction", "UpdateDialog", "_tag", "data", "dispatchPromise", "dispatch", "requestCapability", "IntentDispatcher", "createIntent", "part", "subject", "AMBIENT_CHAT_DIALOG", "options", "state", "blockAlign", "properties", "label", "ns", "icon", "disposition", "keyBinding", "macos", "windows", "resolver", "endsWith", "type", "client", "ClientCapabilities", "Client", "subjectId", "split", "spaceId", "parseId", "spaces", "toSignal", "onChange", "subscribe", "unsubscribe", "get", "space", "SpaceState", "SPACE_READY", "object", "objectId", "name", "showResolvedThreads", "memoizeQuery", "meta", "getTypename", "placeholder"]
|
|
7
|
+
}
|
|
@@ -26,8 +26,8 @@ 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
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_CFBERLTN_exports = {};
|
|
30
|
+
__export(chunk_CFBERLTN_exports, {
|
|
31
31
|
AiClient: () => AiClient,
|
|
32
32
|
AppGraphBuilder: () => AppGraphBuilder,
|
|
33
33
|
ChatContainer: () => ChatContainer,
|
|
@@ -38,10 +38,10 @@ __export(chunk_DKGNORZK_exports, {
|
|
|
38
38
|
Thread: () => Thread,
|
|
39
39
|
useServices: () => useServices
|
|
40
40
|
});
|
|
41
|
-
module.exports = __toCommonJS(
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
var
|
|
41
|
+
module.exports = __toCommonJS(chunk_CFBERLTN_exports);
|
|
42
|
+
var import_chunk_U5Z7LFWB = require("./chunk-U5Z7LFWB.cjs");
|
|
43
|
+
var import_chunk_GB7245FH = require("./chunk-GB7245FH.cjs");
|
|
44
|
+
var import_chunk_EQYHOTGG = require("./chunk-EQYHOTGG.cjs");
|
|
45
45
|
var import_react = __toESM(require("react"));
|
|
46
46
|
var import_invariant = require("@dxos/invariant");
|
|
47
47
|
var import_react_ui_stack = require("@dxos/react-ui-stack");
|
|
@@ -327,10 +327,10 @@ var ChatProcessor = class {
|
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
|
-
var AiClient = (0, import_app_framework2.lazy)(() => import("./ai-client-
|
|
331
|
-
var AppGraphBuilder = (0, import_app_framework2.lazy)(() => import("./app-graph-builder-
|
|
332
|
-
var IntentResolver = (0, import_app_framework2.lazy)(() => import("./intent-resolver-
|
|
333
|
-
var ReactSurface = (0, import_app_framework2.lazy)(() => import("./react-surface-
|
|
330
|
+
var AiClient = (0, import_app_framework2.lazy)(() => import("./ai-client-FKLPDELV.cjs"));
|
|
331
|
+
var AppGraphBuilder = (0, import_app_framework2.lazy)(() => import("./app-graph-builder-7JMJLZIE.cjs"));
|
|
332
|
+
var IntentResolver = (0, import_app_framework2.lazy)(() => import("./intent-resolver-C6OKFVEW.cjs"));
|
|
333
|
+
var ReactSurface = (0, import_app_framework2.lazy)(() => import("./react-surface-JT6SVCPK.cjs"));
|
|
334
334
|
var __dxlog_file2 = "/home/runner/work/dxos/dxos/packages/plugins/experimental/plugin-automation/src/tools/function.ts";
|
|
335
335
|
var covertFunctionToTool = (fn, edgeUrl, spaceId) => {
|
|
336
336
|
if (!fn.description || !fn.inputSchema) {
|
|
@@ -749,12 +749,12 @@ var isV3_1 = (document) => {
|
|
|
749
749
|
return document.openapi === "3.0.1";
|
|
750
750
|
};
|
|
751
751
|
var useChatProcessor = (chat) => {
|
|
752
|
-
const aiClient = (0, import_app_framework.useCapability)(
|
|
752
|
+
const aiClient = (0, import_app_framework.useCapability)(import_chunk_U5Z7LFWB.AutomationCapabilities.AiClient);
|
|
753
753
|
const globalTools = (0, import_app_framework.useCapabilities)(import_app_framework.Capabilities.Tools);
|
|
754
754
|
const artifactDefinitions = (0, import_app_framework.useCapabilities)(import_app_framework.Capabilities.ArtifactDefinition);
|
|
755
755
|
const { dispatchPromise: dispatch } = (0, import_app_framework.useIntentDispatcher)();
|
|
756
756
|
const space = (0, import_echo.getSpace)(chat);
|
|
757
|
-
const services = (0, import_echo.useQuery)(space, import_echo.Filter.schema(
|
|
757
|
+
const services = (0, import_echo.useQuery)(space, import_echo.Filter.schema(import_chunk_GB7245FH.ServiceType));
|
|
758
758
|
const [serviceTools, setServiceTools] = (0, import_react2.useState)([]);
|
|
759
759
|
(0, import_react2.useEffect)(() => {
|
|
760
760
|
queueMicrotask(async () => {
|
|
@@ -770,7 +770,7 @@ var useChatProcessor = (chat) => {
|
|
|
770
770
|
...globalTools.flat(),
|
|
771
771
|
...artifactDefinitions.flatMap((definition) => definition.tools),
|
|
772
772
|
...serviceTools,
|
|
773
|
-
...functions2.map((fn) => covertFunctionToTool(fn, config.values.runtime?.services?.edge?.url ?? "", space?.id)).filter(import_util.
|
|
773
|
+
...functions2.map((fn) => covertFunctionToTool(fn, config.values.runtime?.services?.edge?.url ?? "", space?.id)).filter(import_util.isNonNullable)
|
|
774
774
|
], [
|
|
775
775
|
globalTools,
|
|
776
776
|
artifactDefinitions,
|
|
@@ -856,7 +856,7 @@ var VISUAL_CROSSING_CREDENTIALS = {
|
|
|
856
856
|
}
|
|
857
857
|
};
|
|
858
858
|
var TEST_SERVICES = [
|
|
859
|
-
(0, import_echo_schema5.createStatic)(
|
|
859
|
+
(0, import_echo_schema5.createStatic)(import_chunk_GB7245FH.ServiceType, {
|
|
860
860
|
serviceId: "amadeus.com/service/FlightSearch",
|
|
861
861
|
name: "Amadeus Flight Search",
|
|
862
862
|
description: "Search for local and international flights.",
|
|
@@ -869,7 +869,7 @@ var TEST_SERVICES = [
|
|
|
869
869
|
}
|
|
870
870
|
]
|
|
871
871
|
}),
|
|
872
|
-
(0, import_echo_schema5.createStatic)(
|
|
872
|
+
(0, import_echo_schema5.createStatic)(import_chunk_GB7245FH.ServiceType, {
|
|
873
873
|
serviceId: "amadeus.com/service/HotelSearch",
|
|
874
874
|
name: "Amadeus Hotel Search",
|
|
875
875
|
description: "Search for local and international hotels.",
|
|
@@ -882,7 +882,7 @@ var TEST_SERVICES = [
|
|
|
882
882
|
}
|
|
883
883
|
]
|
|
884
884
|
}),
|
|
885
|
-
(0, import_echo_schema5.createStatic)(
|
|
885
|
+
(0, import_echo_schema5.createStatic)(import_chunk_GB7245FH.ServiceType, {
|
|
886
886
|
serviceId: "visualcrossing.com/service/Weather",
|
|
887
887
|
name: "Visual Crossing Weather",
|
|
888
888
|
description: "Search for global weather forecasts.",
|
|
@@ -896,7 +896,7 @@ var TEST_SERVICES = [
|
|
|
896
896
|
]
|
|
897
897
|
}),
|
|
898
898
|
// TODO(burdon): Needs auth.
|
|
899
|
-
(0, import_echo_schema5.createStatic)(
|
|
899
|
+
(0, import_echo_schema5.createStatic)(import_chunk_GB7245FH.ServiceType, {
|
|
900
900
|
serviceId: "abstractapi.com/service/GeoLocation",
|
|
901
901
|
name: "Abstract GeoLocation",
|
|
902
902
|
description: "Get the location of any IP address.",
|
|
@@ -913,11 +913,11 @@ var TEST_SERVICES = [
|
|
|
913
913
|
//
|
|
914
914
|
...Array.from({
|
|
915
915
|
length: 20
|
|
916
|
-
}, (_, i) => (0, import_echo_schema5.createStatic)(
|
|
916
|
+
}, (_, i) => (0, import_echo_schema5.createStatic)(import_chunk_GB7245FH.ServiceType, {
|
|
917
917
|
serviceId: `example.com/service/test-${i}`,
|
|
918
918
|
name: `Test ${i}`,
|
|
919
919
|
description: `Test ${i}`,
|
|
920
|
-
category: Object.keys(
|
|
920
|
+
category: Object.keys(import_chunk_GB7245FH.categoryIcons)[Math.floor(Math.random() * Object.keys(import_chunk_GB7245FH.categoryIcons).length)],
|
|
921
921
|
interfaces: [
|
|
922
922
|
{
|
|
923
923
|
kind: "api",
|
|
@@ -1407,7 +1407,7 @@ var TabbedContainer = ({ items }) => {
|
|
|
1407
1407
|
})));
|
|
1408
1408
|
};
|
|
1409
1409
|
var Thread = ({ messages, streaming, collapse, debug, onSubmit, onStop, onSuggest, onDelete }) => {
|
|
1410
|
-
const { t } = (0, import_react_ui.useTranslation)(
|
|
1410
|
+
const { t } = (0, import_react_ui.useTranslation)(import_chunk_EQYHOTGG.AUTOMATION_PLUGIN);
|
|
1411
1411
|
const scroller = (0, import_react6.useRef)(null);
|
|
1412
1412
|
const [text, setText] = (0, import_react6.useState)("");
|
|
1413
1413
|
const handleKeyDown = (0, import_react6.useCallback)((ev) => {
|
|
@@ -1583,4 +1583,4 @@ var ChatContainer_default = ChatContainer;
|
|
|
1583
1583
|
Thread,
|
|
1584
1584
|
useServices
|
|
1585
1585
|
});
|
|
1586
|
-
//# sourceMappingURL=chunk-
|
|
1586
|
+
//# sourceMappingURL=chunk-CFBERLTN.cjs.map
|