@dxos/plugin-automation 0.8.1 → 0.8.2-main.2f9c567
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/AutomationContainer-3MP23OGQ.mjs +34 -0
- package/dist/lib/browser/AutomationContainer-3MP23OGQ.mjs.map +7 -0
- package/dist/lib/browser/AutomationPanel-75HVBBNG.mjs +11 -0
- package/dist/lib/browser/AutomationPanel-75HVBBNG.mjs.map +7 -0
- package/dist/lib/browser/FunctionsContainer-HLISW5QI.mjs +33 -0
- package/dist/lib/browser/FunctionsContainer-HLISW5QI.mjs.map +7 -0
- package/dist/lib/browser/FunctionsPanel-OKFRBXLO.mjs +10 -0
- package/dist/lib/browser/FunctionsPanel-OKFRBXLO.mjs.map +7 -0
- package/dist/lib/browser/{app-graph-builder-K3BIQFWW.mjs → app-graph-builder-ND64CHOM.mjs} +42 -1
- package/dist/lib/browser/app-graph-builder-ND64CHOM.mjs.map +7 -0
- package/dist/lib/browser/chunk-ADYCSC6Y.mjs +39 -0
- package/dist/lib/browser/chunk-ADYCSC6Y.mjs.map +7 -0
- package/dist/lib/browser/{AutomationPanel-YAHFXQX6.mjs → chunk-HTVXRMNH.mjs} +19 -18
- package/dist/lib/browser/chunk-HTVXRMNH.mjs.map +7 -0
- package/dist/lib/browser/chunk-IDCVJ2JW.mjs +88 -0
- package/dist/lib/browser/chunk-IDCVJ2JW.mjs.map +7 -0
- package/dist/lib/browser/chunk-N4PTKEWO.mjs +14 -0
- package/dist/lib/browser/chunk-N4PTKEWO.mjs.map +7 -0
- package/dist/lib/browser/chunk-Q2ACSERA.mjs +211 -0
- package/dist/lib/browser/chunk-Q2ACSERA.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +25 -19
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/intent-resolver-YH4YPX52.mjs +77 -0
- package/dist/lib/browser/intent-resolver-YH4YPX52.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react-surface-GA67CQBV.mjs +68 -0
- package/dist/lib/browser/react-surface-GA67CQBV.mjs.map +7 -0
- package/dist/lib/browser/types.mjs +8 -0
- package/dist/lib/browser/types.mjs.map +7 -0
- package/dist/lib/node/AutomationContainer-RIDHNHPT.cjs +62 -0
- package/dist/lib/node/AutomationContainer-RIDHNHPT.cjs.map +7 -0
- package/dist/lib/node/AutomationPanel-6RLBWAGL.cjs +32 -0
- package/dist/lib/node/AutomationPanel-6RLBWAGL.cjs.map +7 -0
- package/dist/lib/node/FunctionsContainer-RNZTNQEU.cjs +61 -0
- package/dist/lib/node/FunctionsContainer-RNZTNQEU.cjs.map +7 -0
- package/dist/lib/node/FunctionsPanel-7I7YCHPJ.cjs +31 -0
- package/dist/lib/node/FunctionsPanel-7I7YCHPJ.cjs.map +7 -0
- package/dist/lib/node/{app-graph-builder-HO4FPGZ5.cjs → app-graph-builder-TVFR6RXO.cjs} +45 -4
- package/dist/lib/node/app-graph-builder-TVFR6RXO.cjs.map +7 -0
- package/dist/lib/node/{AutomationPanel-ZKAMIU6O.cjs → chunk-52JFIUOD.cjs} +31 -26
- package/dist/lib/node/chunk-52JFIUOD.cjs.map +7 -0
- package/dist/lib/node/chunk-ESVJ2X6U.cjs +234 -0
- package/dist/lib/node/chunk-ESVJ2X6U.cjs.map +7 -0
- package/dist/lib/node/chunk-GDCG2BML.cjs +58 -0
- package/dist/lib/node/chunk-GDCG2BML.cjs.map +7 -0
- package/dist/lib/node/chunk-GLXGAIZC.cjs +116 -0
- package/dist/lib/node/chunk-GLXGAIZC.cjs.map +7 -0
- package/dist/lib/node/{chunk-AGJ6XTDN.cjs → chunk-HZTVNN4S.cjs} +16 -7
- package/dist/lib/node/chunk-HZTVNN4S.cjs.map +7 -0
- package/dist/lib/node/index.cjs +28 -22
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/intent-resolver-6FJ6PJJI.cjs +93 -0
- package/dist/lib/node/intent-resolver-6FJ6PJJI.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-52M54VWV.cjs → react-surface-UJDYSHZ5.cjs} +39 -15
- package/dist/lib/node/react-surface-UJDYSHZ5.cjs.map +7 -0
- package/dist/lib/node/types.cjs +30 -0
- package/dist/lib/node/types.cjs.map +7 -0
- package/dist/lib/node-esm/AutomationContainer-MCUWF267.mjs +35 -0
- package/dist/lib/node-esm/AutomationContainer-MCUWF267.mjs.map +7 -0
- package/dist/lib/node-esm/AutomationPanel-U34H2Q7Z.mjs +12 -0
- package/dist/lib/node-esm/AutomationPanel-U34H2Q7Z.mjs.map +7 -0
- package/dist/lib/node-esm/FunctionsContainer-435FW56J.mjs +34 -0
- package/dist/lib/node-esm/FunctionsContainer-435FW56J.mjs.map +7 -0
- package/dist/lib/node-esm/FunctionsPanel-NXXT5ERU.mjs +11 -0
- package/dist/lib/node-esm/FunctionsPanel-NXXT5ERU.mjs.map +7 -0
- package/dist/lib/node-esm/{app-graph-builder-XCJR33VS.mjs → app-graph-builder-NYLOXWVV.mjs} +42 -1
- package/dist/lib/node-esm/app-graph-builder-NYLOXWVV.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-5JC4JVYZ.mjs +212 -0
- package/dist/lib/node-esm/chunk-5JC4JVYZ.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-EEA6CZ6B.mjs +40 -0
- package/dist/lib/node-esm/chunk-EEA6CZ6B.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-RG3M42SO.mjs +16 -0
- package/dist/lib/node-esm/chunk-RG3M42SO.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-VYSTWH6Q.mjs +89 -0
- package/dist/lib/node-esm/chunk-VYSTWH6Q.mjs.map +7 -0
- package/dist/lib/node-esm/{AutomationPanel-XF7YPSKM.mjs → chunk-WYXWQFPK.mjs} +19 -18
- package/dist/lib/node-esm/chunk-WYXWQFPK.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +25 -19
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/intent-resolver-PVY22PBL.mjs +78 -0
- package/dist/lib/node-esm/intent-resolver-PVY22PBL.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/react-surface-R72A4EHM.mjs +69 -0
- package/dist/lib/node-esm/react-surface-R72A4EHM.mjs.map +7 -0
- package/dist/lib/node-esm/types.mjs +9 -0
- package/dist/lib/node-esm/types.mjs.map +7 -0
- package/dist/types/src/AutomationPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +1 -0
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +4 -0
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/AutomationContainer.d.ts +7 -0
- package/dist/types/src/components/AutomationContainer.d.ts.map +1 -0
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts +6 -3
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts.map +1 -1
- package/dist/types/src/components/AutomationPanel/index.d.ts +1 -0
- package/dist/types/src/components/AutomationPanel/index.d.ts.map +1 -1
- package/dist/types/src/components/FunctionsContainer.d.ts +7 -0
- package/dist/types/src/components/FunctionsContainer.d.ts.map +1 -0
- package/dist/types/src/components/FunctionsPanel/FunctionsPanel.d.ts +7 -0
- package/dist/types/src/components/FunctionsPanel/FunctionsPanel.d.ts.map +1 -0
- package/dist/types/src/components/FunctionsPanel/index.d.ts +4 -0
- package/dist/types/src/components/FunctionsPanel/index.d.ts.map +1 -0
- package/dist/types/src/components/TriggerEditor/FunctionPayloadEditor.d.ts +12 -0
- package/dist/types/src/components/TriggerEditor/FunctionPayloadEditor.d.ts.map +1 -0
- package/dist/types/src/components/TriggerEditor/SpecSelector.d.ts +5 -0
- package/dist/types/src/components/TriggerEditor/SpecSelector.d.ts.map +1 -0
- package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts +1 -1
- 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 +8 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/testing/test-functions.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +8 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +25 -0
- package/dist/types/src/types.d.ts.map +1 -0
- package/package.json +33 -24
- package/src/AutomationPlugin.tsx +5 -10
- package/src/capabilities/app-graph-builder.ts +31 -0
- package/src/capabilities/index.ts +1 -0
- package/src/capabilities/intent-resolver.ts +73 -0
- package/src/capabilities/react-surface.tsx +32 -8
- package/src/components/AutomationContainer.tsx +31 -0
- package/src/components/AutomationPanel/AutomationPanel.stories.tsx +5 -5
- package/src/components/AutomationPanel/AutomationPanel.tsx +67 -67
- package/src/components/AutomationPanel/index.ts +2 -0
- package/src/components/FunctionsContainer.tsx +31 -0
- package/src/components/FunctionsPanel/FunctionsPanel.tsx +95 -0
- package/src/components/FunctionsPanel/index.ts +8 -0
- package/src/components/TriggerEditor/FunctionPayloadEditor.tsx +77 -0
- package/src/components/TriggerEditor/SpecSelector.tsx +59 -0
- package/src/components/TriggerEditor/TriggerEditor.stories.tsx +18 -9
- package/src/components/TriggerEditor/TriggerEditor.tsx +49 -89
- package/src/components/index.ts +3 -0
- package/src/testing/test-functions.ts +23 -9
- package/src/translations.ts +10 -1
- package/src/types.ts +33 -0
- package/dist/lib/browser/AutomationPanel-YAHFXQX6.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-K3BIQFWW.mjs.map +0 -7
- package/dist/lib/browser/chunk-FALBBJNO.mjs +0 -138
- package/dist/lib/browser/chunk-FALBBJNO.mjs.map +0 -7
- package/dist/lib/browser/chunk-MT3FZH4V.mjs +0 -8
- package/dist/lib/browser/chunk-MT3FZH4V.mjs.map +0 -7
- package/dist/lib/browser/react-surface-4QQSJR4A.mjs +0 -42
- package/dist/lib/browser/react-surface-4QQSJR4A.mjs.map +0 -7
- package/dist/lib/node/AutomationPanel-ZKAMIU6O.cjs.map +0 -7
- package/dist/lib/node/app-graph-builder-HO4FPGZ5.cjs.map +0 -7
- package/dist/lib/node/chunk-AGJ6XTDN.cjs.map +0 -7
- package/dist/lib/node/chunk-FTEDH5Q6.cjs +0 -167
- package/dist/lib/node/chunk-FTEDH5Q6.cjs.map +0 -7
- package/dist/lib/node/react-surface-52M54VWV.cjs.map +0 -7
- package/dist/lib/node-esm/AutomationPanel-XF7YPSKM.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-XCJR33VS.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-M4QXMIIB.mjs +0 -139
- package/dist/lib/node-esm/chunk-M4QXMIIB.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-OA75PSGH.mjs +0 -10
- package/dist/lib/node-esm/chunk-OA75PSGH.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-MGKM3OO3.mjs +0 -43
- package/dist/lib/node-esm/react-surface-MGKM3OO3.mjs.map +0 -7
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/AutomationPanel/AutomationPanel.tsx", "../../../src/components/AutomationPanel/index.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { Schema } from 'effect';\nimport React, { useState } from 'react';\n\nimport {\n FunctionType,\n FunctionTrigger,\n FunctionTriggerSchema,\n TriggerKind,\n type FunctionTriggerType,\n ScriptType,\n} from '@dxos/functions';\nimport { type Client, useClient } from '@dxos/react-client';\nimport { live, Filter, useQuery, type Space, type Live, getSpace } from '@dxos/react-client/echo';\nimport { Clipboard, IconButton, Input, Separator, useTranslation } from '@dxos/react-ui';\nimport { ControlItem, controlItemClasses } from '@dxos/react-ui-form';\nimport { List } from '@dxos/react-ui-list';\nimport { ghostHover, mx } from '@dxos/react-ui-theme';\n\nimport { AUTOMATION_PLUGIN } from '../../meta';\nimport { TriggerEditor, type TriggerEditorProps } from '../TriggerEditor';\n\nconst grid = 'grid grid-cols-[40px_1fr_32px] min-bs-[2.5rem]';\n\nexport type AutomationPanelProps = {\n space: Space;\n object?: Live<any>;\n initialTrigger?: FunctionTriggerType;\n onDone?: () => void;\n};\n\n// TODO(burdon): Factor out common layout with ViewEditor.\nexport const AutomationPanel = ({ space, object, initialTrigger, onDone }: AutomationPanelProps) => {\n const { t } = useTranslation(AUTOMATION_PLUGIN);\n const client = useClient();\n const triggers = useQuery(space, Filter.schema(FunctionTrigger));\n const functions = useQuery(space, Filter.schema(FunctionType));\n const scripts = useQuery(space, Filter.schema(ScriptType));\n\n const [trigger, setTrigger] = useState<FunctionTriggerType | undefined>(initialTrigger);\n const [selected, setSelected] = useState<FunctionTrigger>();\n\n const handleSelect = (trigger: FunctionTrigger) => {\n const { id: _, ...values } = trigger;\n setTrigger(values);\n setSelected(trigger);\n };\n\n const handleAdd = () => {\n setTrigger(live(FunctionTriggerSchema, {}));\n setSelected(undefined);\n };\n\n const handleDelete = (trigger: FunctionTrigger) => {\n space.db.remove(trigger);\n setTrigger(undefined);\n setSelected(undefined);\n };\n\n const handleSave: TriggerEditorProps['onSave'] = (trigger) => {\n if (selected) {\n Object.assign(selected, trigger);\n } else {\n space.db.add(live(FunctionTrigger, trigger));\n }\n\n setTrigger(undefined);\n setSelected(undefined);\n onDone?.();\n };\n\n const handleCancel: TriggerEditorProps['onCancel'] = () => {\n setTrigger(undefined);\n onDone?.();\n };\n\n return (\n <div className='flex flex-col w-full'>\n {trigger ? (\n <ControlItem title={t('trigger editor title')}>\n <TriggerEditor space={space} trigger={trigger} onSave={handleSave} onCancel={handleCancel} />\n </ControlItem>\n ) : (\n <div role='none' className={controlItemClasses}>\n <List.Root<FunctionTrigger> items={triggers} isItem={Schema.is(FunctionTrigger)} getId={(field) => field.id}>\n {({ items: triggers }) => (\n <div role='list' className='flex flex-col w-full'>\n {triggers?.map((trigger) => {\n const copyAction = getCopyAction(client, trigger);\n return (\n <List.Item<FunctionTrigger>\n key={trigger.id}\n item={trigger}\n classNames={mx(grid, ghostHover, 'items-center', 'px-2')}\n >\n <Input.Root>\n <Input.Switch\n checked={trigger.enabled}\n onCheckedChange={(checked) => (trigger.enabled = checked)}\n />\n </Input.Root>\n\n <div className={'flex'}>\n <List.ItemTitle\n classNames='px-1 cursor-pointer w-0 shrink truncate'\n onClick={() => handleSelect(trigger)}\n >\n {getFunctionName(scripts, functions, trigger) ?? '∅'}\n </List.ItemTitle>\n\n {/* TODO: a better way to expose copy action */}\n {copyAction && (\n <Clipboard.IconButton\n label={t(copyAction.translationKey)}\n value={copyAction.contentProvider()}\n />\n )}\n </div>\n\n <List.ItemDeleteButton onClick={() => handleDelete(trigger)} />\n </List.Item>\n );\n })}\n </div>\n )}\n </List.Root>\n {triggers.length > 0 && <Separator classNames='mlb-4' />}\n <IconButton icon='ph--plus--regular' label={t('new trigger label')} onClick={handleAdd} />\n </div>\n )}\n </div>\n );\n};\n\nconst getCopyAction = (client: Client, trigger: FunctionTrigger | undefined) => {\n if (trigger?.spec?.type === TriggerKind.Email) {\n return { translationKey: 'trigger copy email', contentProvider: () => `${getSpace(trigger)!.id}@dxos.network` };\n }\n\n if (trigger?.spec?.type === TriggerKind.Webhook) {\n return { translationKey: 'trigger copy url', contentProvider: () => getWebhookUrl(client, trigger) };\n }\n\n return undefined;\n};\n\nconst getWebhookUrl = (client: Client, trigger: FunctionTrigger) => {\n const spaceId = getSpace(trigger)!.id;\n const edgeUrl = new URL(client.config.values.runtime!.services!.edge!.url!);\n const isSecure = edgeUrl.protocol.startsWith('https') || edgeUrl.protocol.startsWith('wss');\n edgeUrl.protocol = isSecure ? 'https' : 'http';\n return new URL(`/webhook/${spaceId}:${trigger.id}`, edgeUrl).toString();\n};\n\nconst getFunctionName = (scripts: ScriptType[], functions: FunctionType[], trigger: FunctionTriggerType) => {\n // TODO(wittjosiah): Truncation should be done in the UI.\n // Warning that the List component is currently a can of worms.\n const shortId = trigger.function && `${trigger.function.dxn.toString().slice(0, 16)}…`;\n const functionObject = functions.find((fn) => fn === trigger.function?.target);\n if (!functionObject) {\n return shortId;\n }\n\n return scripts.find((s) => functionObject.source?.target?.id === s.id)?.name ?? shortId;\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { AutomationPanel } from './AutomationPanel';\n\nexport * from './AutomationPanel';\n\nexport default AutomationPanel;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAIA,SAASA,cAAc;AACvB,OAAOC,SAASC,gBAAgB;AAEhC,SACEC,cACAC,iBACAC,uBACAC,aAEAC,kBACK;AACP,SAAsBC,iBAAiB;AACvC,SAASC,MAAMC,QAAQC,UAAiCC,gBAAgB;AACxE,SAASC,WAAWC,YAAYC,OAAOC,WAAWC,sBAAsB;AACxE,SAASC,aAAaC,0BAA0B;AAChD,SAASC,YAAY;AACrB,SAASC,YAAYC,UAAU;AAK/B,IAAMC,OAAO;AAUN,IAAMC,kBAAkB,CAAC,EAAEC,OAAOC,QAAQC,gBAAgBC,OAAM,MAAwB;AAC7F,QAAM,EAAEC,EAAC,IAAKC,eAAeC,iBAAAA;AAC7B,QAAMC,SAASC,UAAAA;AACf,QAAMC,WAAWC,SAASV,OAAOW,OAAOC,OAAOC,eAAAA,CAAAA;AAC/C,QAAMC,YAAYJ,SAASV,OAAOW,OAAOC,OAAOG,YAAAA,CAAAA;AAChD,QAAMC,UAAUN,SAASV,OAAOW,OAAOC,OAAOK,UAAAA,CAAAA;AAE9C,QAAM,CAACC,SAASC,UAAAA,IAAcC,SAA0ClB,cAAAA;AACxE,QAAM,CAACmB,UAAUC,WAAAA,IAAeF,SAAAA;AAEhC,QAAMG,eAAe,CAACL,aAAAA;AACpB,UAAM,EAAEM,IAA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AMC,GAAG;AACzE,QAAMC,WAAWP,QAAQQ,SAASC,WAAW,OAAA,KAAYT,QAAQQ,SAASC,WAAW,KAAA;AACrFT,UAAQQ,WAAWD,WAAW,UAAU;AACxC,SAAO,IAAIN,IAAI,YAAYF,OAAAA,IAAWxE,QAAQM,EAAE,IAAImE,OAAAA,EAASU,SAAQ;AACvE;AAEA,IAAM7B,kBAAkB,CAACxD,SAAuBF,WAA2BI,YAAAA;AAGzE,QAAMoF,UAAUpF,QAAQqF,YAAY,GAAGrF,QAAQqF,SAASC,IAAIH,SAAQ,EAAGI,MAAM,GAAG,EAAA,CAAA;AAChF,QAAMC,iBAAiB5F,UAAU6F,KAAK,CAACC,OAAOA,OAAO1F,QAAQqF,UAAUM,MAAAA;AACvE,MAAI,CAACH,gBAAgB;AACnB,WAAOJ;EACT;AAEA,SAAOtF,QAAQ2F,KAAK,CAACG,MAAMJ,eAAeK,QAAQF,QAAQrF,OAAOsF,EAAEtF,EAAE,GAAGwF,QAAQV;AAClF;;;AC/JA,IAAA,0BAAeW;",
|
|
6
|
+
"names": ["Schema", "React", "useState", "FunctionType", "FunctionTrigger", "FunctionTriggerSchema", "TriggerKind", "ScriptType", "useClient", "live", "Filter", "useQuery", "getSpace", "Clipboard", "IconButton", "Input", "Separator", "useTranslation", "ControlItem", "controlItemClasses", "List", "ghostHover", "mx", "grid", "AutomationPanel", "space", "object", "initialTrigger", "onDone", "t", "useTranslation", "AUTOMATION_PLUGIN", "client", "useClient", "triggers", "useQuery", "Filter", "schema", "FunctionTrigger", "functions", "FunctionType", "scripts", "ScriptType", "trigger", "setTrigger", "useState", "selected", "setSelected", "handleSelect", "id", "_", "values", "handleAdd", "live", "FunctionTriggerSchema", "undefined", "handleDelete", "db", "remove", "handleSave", "Object", "assign", "add", "handleCancel", "div", "className", "ControlItem", "title", "TriggerEditor", "onSave", "onCancel", "role", "controlItemClasses", "List", "Root", "items", "isItem", "Schema", "is", "getId", "field", "map", "copyAction", "getCopyAction", "Item", "key", "item", "classNames", "mx", "ghostHover", "Input", "Switch", "checked", "enabled", "onCheckedChange", "ItemTitle", "onClick", "getFunctionName", "Clipboard", "IconButton", "label", "translationKey", "value", "contentProvider", "ItemDeleteButton", "length", "Separator", "icon", "spec", "type", "TriggerKind", "Email", "getSpace", "Webhook", "getWebhookUrl", "spaceId", "edgeUrl", "URL", "config", "runtime", "services", "edge", "url", "isSecure", "protocol", "startsWith", "toString", "shortId", "function", "dxn", "slice", "functionObject", "find", "fn", "target", "s", "source", "name", "AutomationPanel"]
|
|
7
|
+
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
AutomationContainer,
|
|
4
|
+
AutomationPanel,
|
|
5
|
+
FunctionsContainer,
|
|
6
|
+
FunctionsPanel
|
|
7
|
+
} from "./chunk-RG3M42SO.mjs";
|
|
5
8
|
import {
|
|
6
9
|
TriggerEditor
|
|
7
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5JC4JVYZ.mjs";
|
|
8
11
|
import {
|
|
9
12
|
AUTOMATION_PLUGIN,
|
|
10
13
|
meta
|
|
@@ -12,14 +15,14 @@ import {
|
|
|
12
15
|
|
|
13
16
|
// packages/plugins/plugin-automation/src/AutomationPlugin.tsx
|
|
14
17
|
import { Capabilities, contributes, defineModule, definePlugin, Events } from "@dxos/app-framework";
|
|
15
|
-
import { FunctionType, FunctionTrigger } from "@dxos/functions
|
|
18
|
+
import { FunctionType, FunctionTrigger } from "@dxos/functions";
|
|
16
19
|
import { ClientCapabilities, ClientEvents } from "@dxos/plugin-client";
|
|
17
|
-
import { SpaceCapabilities, SpaceEvents } from "@dxos/plugin-space";
|
|
18
20
|
|
|
19
21
|
// packages/plugins/plugin-automation/src/capabilities/index.ts
|
|
20
22
|
import { lazy } from "@dxos/app-framework";
|
|
21
|
-
var AppGraphBuilder = lazy(() => import("./app-graph-builder-
|
|
22
|
-
var
|
|
23
|
+
var AppGraphBuilder = lazy(() => import("./app-graph-builder-NYLOXWVV.mjs"));
|
|
24
|
+
var IntentResolver = lazy(() => import("./intent-resolver-PVY22PBL.mjs"));
|
|
25
|
+
var ReactSurface = lazy(() => import("./react-surface-R72A4EHM.mjs"));
|
|
23
26
|
|
|
24
27
|
// packages/plugins/plugin-automation/src/translations.ts
|
|
25
28
|
var translations_default = [
|
|
@@ -29,7 +32,15 @@ var translations_default = [
|
|
|
29
32
|
"plugin name": "Automation",
|
|
30
33
|
"automation panel label": "Automations",
|
|
31
34
|
"script automation label": "Automation",
|
|
32
|
-
"
|
|
35
|
+
"automation verbose label": "Manage automations",
|
|
36
|
+
"automation description": "You can manage all the triggers which automate your space here.",
|
|
37
|
+
"functions panel label": "Functions",
|
|
38
|
+
"functions verbose label": "Manage deployed functions",
|
|
39
|
+
"functions description": "You can manage all the functions deployed from your space on EDGE here.",
|
|
40
|
+
"function copy id": "Copy Function ID",
|
|
41
|
+
"no functions found": "No functions found",
|
|
42
|
+
"go to function source button label": "Show function source",
|
|
43
|
+
"trigger editor title": "Configure Trigger",
|
|
33
44
|
"new trigger label": "Add Trigger",
|
|
34
45
|
"trigger type timer": "Timer",
|
|
35
46
|
"trigger type webhook": "Webhook",
|
|
@@ -68,17 +79,9 @@ var AutomationPlugin = () => definePlugin(meta, [
|
|
|
68
79
|
activate: AppGraphBuilder
|
|
69
80
|
}),
|
|
70
81
|
defineModule({
|
|
71
|
-
id: `${meta.id}/module/
|
|
72
|
-
activatesOn:
|
|
73
|
-
activate:
|
|
74
|
-
id: "automation",
|
|
75
|
-
label: [
|
|
76
|
-
"automation panel label",
|
|
77
|
-
{
|
|
78
|
-
ns: meta.id
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
-
})
|
|
82
|
+
id: `${meta.id}/module/intent-resolver`,
|
|
83
|
+
activatesOn: Events.SetupIntentResolver,
|
|
84
|
+
activate: IntentResolver
|
|
82
85
|
}),
|
|
83
86
|
defineModule({
|
|
84
87
|
id: `${meta.id}/module/react-surface`,
|
|
@@ -88,8 +91,11 @@ var AutomationPlugin = () => definePlugin(meta, [
|
|
|
88
91
|
]);
|
|
89
92
|
export {
|
|
90
93
|
AUTOMATION_PLUGIN,
|
|
94
|
+
AutomationContainer,
|
|
91
95
|
AutomationPanel,
|
|
92
96
|
AutomationPlugin,
|
|
97
|
+
FunctionsContainer,
|
|
98
|
+
FunctionsPanel,
|
|
93
99
|
TriggerEditor,
|
|
94
100
|
meta
|
|
95
101
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
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
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["Capabilities", "contributes", "defineModule", "definePlugin", "Events", "FunctionType", "FunctionTrigger", "ClientCapabilities", "ClientEvents", "
|
|
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';\n\nimport { AppGraphBuilder, IntentResolver, 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/app-graph-builder`,\n activatesOn: Events.SetupAppGraph,\n activate: AppGraphBuilder,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\n defineModule({\n id: `${meta.id}/module/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 AppGraphBuilder = lazy(() => import('./app-graph-builder'));\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\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 'script automation label': 'Automation',\n 'automation verbose label': 'Manage automations',\n 'automation description': 'You can manage all the triggers which automate your space here.',\n\n 'functions panel label': 'Functions',\n 'functions verbose label': 'Manage deployed functions',\n 'functions description': 'You can manage all the functions deployed from your space on EDGE here.',\n 'function copy id': 'Copy Function ID',\n 'no functions found': 'No functions found',\n 'go to function source button label': 'Show function source',\n\n 'trigger editor title': 'Configure Trigger',\n 'new trigger label': 'Add 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 payload add': 'Add',\n 'trigger payload remove': 'Remove',\n 'trigger payload prop name placeholder': 'New payload property name',\n },\n },\n },\n];\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;AAIA,SAASA,cAAcC,aAAaC,cAAcC,cAAcC,cAAc;AAC9E,SAASC,cAAcC,uBAAuB;AAC9C,SAASC,oBAAoBC,oBAAoB;;;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|
+
"names": ["Capabilities", "contributes", "defineModule", "definePlugin", "Events", "FunctionType", "FunctionTrigger", "ClientCapabilities", "ClientEvents", "lazy", "AppGraphBuilder", "lazy", "IntentResolver", "ReactSurface", "AUTOMATION_PLUGIN", "AutomationPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "ClientEvents", "SetupSchema", "ClientCapabilities", "Schema", "FunctionType", "FunctionTrigger", "SetupAppGraph", "AppGraphBuilder", "SetupIntentResolver", "IntentResolver", "SetupReactSurface", "ReactSurface"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
AutomationAction
|
|
4
|
+
} from "./chunk-EEA6CZ6B.mjs";
|
|
5
|
+
import "./chunk-DZ44LGYT.mjs";
|
|
6
|
+
|
|
7
|
+
// packages/plugins/plugin-automation/src/capabilities/intent-resolver.ts
|
|
8
|
+
import { contributes, Capabilities, createResolver, createIntent, LayoutAction } from "@dxos/app-framework";
|
|
9
|
+
import { Type } from "@dxos/echo";
|
|
10
|
+
import { FunctionTrigger, FunctionType, ScriptType, TriggerKind } from "@dxos/functions";
|
|
11
|
+
import { live } from "@dxos/live-object";
|
|
12
|
+
import { ATTENDABLE_PATH_SEPARATOR } from "@dxos/plugin-deck/types";
|
|
13
|
+
import { SpaceAction } from "@dxos/plugin-space/types";
|
|
14
|
+
import { Filter } from "@dxos/react-client/echo";
|
|
15
|
+
var intent_resolver_default = (context) => contributes(Capabilities.IntentResolver, [
|
|
16
|
+
createResolver({
|
|
17
|
+
intent: AutomationAction.CreateTriggerFromTemplate,
|
|
18
|
+
resolve: async ({ space, template, enabled = false, scriptName, input }) => {
|
|
19
|
+
const trigger = live(FunctionTrigger, {
|
|
20
|
+
enabled,
|
|
21
|
+
input
|
|
22
|
+
});
|
|
23
|
+
if (scriptName) {
|
|
24
|
+
const { objects: [script] } = await space.db.query(Filter.schema(ScriptType, {
|
|
25
|
+
name: scriptName
|
|
26
|
+
})).run();
|
|
27
|
+
if (script) {
|
|
28
|
+
const { objects: [fn] } = await space.db.query(Filter.schema(FunctionType, {
|
|
29
|
+
source: script
|
|
30
|
+
})).run();
|
|
31
|
+
if (fn) {
|
|
32
|
+
trigger.function = Type.ref(fn);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
switch (template.type) {
|
|
37
|
+
case "timer": {
|
|
38
|
+
trigger.spec = {
|
|
39
|
+
type: TriggerKind.Timer,
|
|
40
|
+
cron: template.cron
|
|
41
|
+
};
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
case "queue": {
|
|
45
|
+
trigger.spec = {
|
|
46
|
+
type: TriggerKind.Queue,
|
|
47
|
+
queue: template.queueDXN.toString()
|
|
48
|
+
};
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
default: {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
intents: [
|
|
57
|
+
createIntent(SpaceAction.AddObject, {
|
|
58
|
+
object: trigger,
|
|
59
|
+
target: space
|
|
60
|
+
}),
|
|
61
|
+
createIntent(LayoutAction.Open, {
|
|
62
|
+
part: "main",
|
|
63
|
+
subject: [
|
|
64
|
+
`automation-settings${ATTENDABLE_PATH_SEPARATOR}${space.id}`
|
|
65
|
+
],
|
|
66
|
+
options: {
|
|
67
|
+
workspace: space.id
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
]
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
})
|
|
74
|
+
]);
|
|
75
|
+
export {
|
|
76
|
+
intent_resolver_default as default
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=intent-resolver-PVY22PBL.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/intent-resolver.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport {\n contributes,\n Capabilities,\n createResolver,\n type PluginsContext,\n createIntent,\n LayoutAction,\n} from '@dxos/app-framework';\nimport { Type } from '@dxos/echo';\nimport { FunctionTrigger, FunctionType, ScriptType, TriggerKind } from '@dxos/functions';\nimport { type DXN } from '@dxos/keys';\nimport { live } from '@dxos/live-object';\nimport { ATTENDABLE_PATH_SEPARATOR } from '@dxos/plugin-deck/types';\nimport { SpaceAction } from '@dxos/plugin-space/types';\nimport { Filter } from '@dxos/react-client/echo';\n\nimport { AutomationAction } from '../types';\n\nexport default (context: PluginsContext) =>\n contributes(Capabilities.IntentResolver, [\n createResolver({\n intent: AutomationAction.CreateTriggerFromTemplate,\n resolve: async ({ space, template, enabled = false, scriptName, input }) => {\n const trigger = live(FunctionTrigger, { enabled, input });\n\n // TODO(wittjosiah): Factor out function lookup by script name?\n if (scriptName) {\n const {\n objects: [script],\n } = await space.db.query(Filter.schema(ScriptType, { name: scriptName })).run();\n if (script) {\n const {\n objects: [fn],\n } = await space.db.query(Filter.schema(FunctionType, { source: script })).run();\n if (fn) {\n trigger.function = Type.ref(fn);\n }\n }\n }\n\n switch (template.type) {\n case 'timer': {\n trigger.spec = { type: TriggerKind.Timer, cron: template.cron };\n break;\n }\n case 'queue': {\n trigger.spec = { type: TriggerKind.Queue, queue: (template.queueDXN as DXN).toString() };\n break;\n }\n default: {\n break;\n }\n }\n\n return {\n intents: [\n createIntent(SpaceAction.AddObject, { object: trigger, target: space }),\n createIntent(LayoutAction.Open, {\n part: 'main',\n subject: [`automation-settings${ATTENDABLE_PATH_SEPARATOR}${space.id}`],\n options: {\n workspace: space.id,\n },\n }),\n ],\n };\n },\n }),\n ]);\n"],
|
|
5
|
+
"mappings": ";;;;;;;AAIA,SACEA,aACAC,cACAC,gBAEAC,cACAC,oBACK;AACP,SAASC,YAAY;AACrB,SAASC,iBAAi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C,WAAW7C,MAAM2C;YACnB;UACF,CAAA;;MAEJ;IACF;EACF,CAAA;CACD;",
|
|
6
|
+
"names": ["contributes", "Capabilities", "createResolver", "createIntent", "LayoutAction", "Type", "FunctionTrigger", "FunctionType", "ScriptType", "TriggerKind", "live", "ATTENDABLE_PATH_SEPARATOR", "SpaceAction", "Filter", "context", "contributes", "Capabilities", "IntentResolver", "createResolver", "intent", "AutomationAction", "CreateTriggerFromTemplate", "resolve", "space", "template", "enabled", "scriptName", "input", "trigger", "live", "FunctionTrigger", "objects", "script", "db", "query", "Filter", "schema", "ScriptType", "name", "run", "fn", "FunctionType", "source", "function", "Type", "ref", "type", "spec", "TriggerKind", "Timer", "cron", "Queue", "queue", "queueDXN", "toString", "intents", "createIntent", "SpaceAction", "AddObject", "object", "target", "LayoutAction", "Open", "part", "subject", "ATTENDABLE_PATH_SEPARATOR", "id", "options", "workspace"]
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/plugins/plugin-automation/src/meta.ts":{"bytes":1764,"imports":[],"format":"esm"},"packages/plugins/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx":{"bytes":18213,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts":{"bytes":544,"imports":[{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx","kind":"import-statement","original":"./TriggerEditor"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx":{"bytes":21670,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts","kind":"import-statement","original":"../TriggerEditor"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts":{"bytes":738,"imports":[{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx","kind":"import-statement","original":"./AutomationPanel"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/index.ts":{"bytes":914,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts","kind":"import-statement","original":"./TriggerEditor"},{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts","kind":"dynamic-import","original":"./AutomationPanel"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts":{"bytes":4479,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-script/types","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx":{"bytes":4985,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/index.ts":{"bytes":1096,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts","kind":"dynamic-import","original":"./app-graph-builder"},{"path":"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-automation/src/translations.ts":{"bytes":3132,"imports":[{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/AutomationPlugin.tsx":{"bytes":6390,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-automation/src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"packages/plugins/plugin-automation/src/index.ts":{"bytes":704,"imports":[{"path":"packages/plugins/plugin-automation/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-automation/src/AutomationPlugin.tsx","kind":"import-statement","original":"./AutomationPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-automation/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4812},"packages/plugins/plugin-automation/dist/lib/node-esm/index.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-OA75PSGH.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-M4QXMIIB.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-DZ44LGYT.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/app-graph-builder-XCJR33VS.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/react-surface-MGKM3OO3.mjs","kind":"dynamic-import"}],"exports":["AUTOMATION_PLUGIN","AutomationPanel","AutomationPlugin","TriggerEditor","meta"],"entryPoint":"packages/plugins/plugin-automation/src/index.ts","inputs":{"packages/plugins/plugin-automation/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-automation/src/AutomationPlugin.tsx":{"bytesInOutput":1357},"packages/plugins/plugin-automation/src/capabilities/index.ts":{"bytesInOutput":193},"packages/plugins/plugin-automation/src/translations.ts":{"bytesInOutput":827}},"bytes":3034},"packages/plugins/plugin-automation/dist/lib/node-esm/AutomationPanel-XF7YPSKM.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12053},"packages/plugins/plugin-automation/dist/lib/node-esm/AutomationPanel-XF7YPSKM.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-M4QXMIIB.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-DZ44LGYT.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts","inputs":{"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx":{"bytesInOutput":5148},"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts":{"bytesInOutput":47}},"bytes":5675},"packages/plugins/plugin-automation/dist/lib/node-esm/app-graph-builder-XCJR33VS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2152},"packages/plugins/plugin-automation/dist/lib/node-esm/app-graph-builder-XCJR33VS.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-DZ44LGYT.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-script/types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts","inputs":{"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts":{"bytesInOutput":1001}},"bytes":1324},"packages/plugins/plugin-automation/dist/lib/node-esm/react-surface-MGKM3OO3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2477},"packages/plugins/plugin-automation/dist/lib/node-esm/react-surface-MGKM3OO3.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-OA75PSGH.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-M4QXMIIB.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-DZ44LGYT.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx":{"bytesInOutput":1121}},"bytes":1522},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-OA75PSGH.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":406},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-OA75PSGH.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/AutomationPanel-XF7YPSKM.mjs","kind":"dynamic-import"}],"exports":["AutomationPanel"],"inputs":{"packages/plugins/plugin-automation/src/components/index.ts":{"bytesInOutput":106}},"bytes":336},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-M4QXMIIB.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":9336},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-M4QXMIIB.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-DZ44LGYT.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"exports":["TriggerEditor"],"inputs":{"packages/plugins/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx":{"bytesInOutput":4576},"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts":{"bytesInOutput":0}},"bytes":4887},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-DZ44LGYT.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":829},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-DZ44LGYT.mjs":{"imports":[],"exports":["AUTOMATION_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-automation/src/meta.ts":{"bytesInOutput":395}},"bytes":623}}}
|
|
1
|
+
{"inputs":{"packages/plugins/plugin-automation/src/components/TriggerEditor/FunctionPayloadEditor.tsx":{"bytes":8328,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-automation/src/meta.ts":{"bytes":1764,"imports":[],"format":"esm"},"packages/plugins/plugin-automation/src/components/TriggerEditor/SpecSelector.tsx":{"bytes":7106,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx":{"bytes":12227,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/FunctionPayloadEditor.tsx","kind":"import-statement","original":"./FunctionPayloadEditor"},{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/SpecSelector.tsx","kind":"import-statement","original":"./SpecSelector"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts":{"bytes":544,"imports":[{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx","kind":"import-statement","original":"./TriggerEditor"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx":{"bytes":21074,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts","kind":"import-statement","original":"../TriggerEditor"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts":{"bytes":849,"imports":[{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx","kind":"import-statement","original":"./AutomationPanel"},{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx","kind":"import-statement","original":"./AutomationPanel"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/AutomationContainer.tsx":{"bytes":3556,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts","kind":"import-statement","original":"./AutomationPanel"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/FunctionsPanel/FunctionsPanel.tsx":{"bytes":11677,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/FunctionsPanel/index.ts":{"bytes":832,"imports":[{"path":"packages/plugins/plugin-automation/src/components/FunctionsPanel/FunctionsPanel.tsx","kind":"import-statement","original":"./FunctionsPanel"},{"path":"packages/plugins/plugin-automation/src/components/FunctionsPanel/FunctionsPanel.tsx","kind":"import-statement","original":"./FunctionsPanel"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/FunctionsContainer.tsx":{"bytes":3536,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/FunctionsPanel/index.ts","kind":"import-statement","original":"./FunctionsPanel"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/index.ts":{"bytes":1736,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts","kind":"import-statement","original":"./TriggerEditor"},{"path":"packages/plugins/plugin-automation/src/components/AutomationContainer.tsx","kind":"dynamic-import","original":"./AutomationContainer"},{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts","kind":"dynamic-import","original":"./AutomationPanel"},{"path":"packages/plugins/plugin-automation/src/components/FunctionsContainer.tsx","kind":"dynamic-import","original":"./FunctionsContainer"},{"path":"packages/plugins/plugin-automation/src/components/FunctionsPanel/index.ts","kind":"dynamic-import","original":"./FunctionsPanel"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts":{"bytes":8950,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-script/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/types.ts":{"bytes":4378,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/intent-resolver.ts":{"bytes":9474,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx":{"bytes":7985,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/index.ts":{"bytes":1353,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts","kind":"dynamic-import","original":"./app-graph-builder"},{"path":"packages/plugins/plugin-automation/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-automation/src/translations.ts":{"bytes":4657,"imports":[{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/AutomationPlugin.tsx":{"bytes":5488,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-automation/src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"packages/plugins/plugin-automation/src/index.ts":{"bytes":704,"imports":[{"path":"packages/plugins/plugin-automation/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-automation/src/AutomationPlugin.tsx","kind":"import-statement","original":"./AutomationPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-automation/dist/lib/node-esm/react-surface-R72A4EHM.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3898},"packages/plugins/plugin-automation/dist/lib/node-esm/react-surface-R72A4EHM.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-RG3M42SO.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-5JC4JVYZ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-DZ44LGYT.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx":{"bytesInOutput":1842}},"bytes":2288},"packages/plugins/plugin-automation/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5189},"packages/plugins/plugin-automation/dist/lib/node-esm/index.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-RG3M42SO.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-5JC4JVYZ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-DZ44LGYT.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/app-graph-builder-NYLOXWVV.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/intent-resolver-PVY22PBL.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/react-surface-R72A4EHM.mjs","kind":"dynamic-import"}],"exports":["AUTOMATION_PLUGIN","AutomationContainer","AutomationPanel","AutomationPlugin","FunctionsContainer","FunctionsPanel","TriggerEditor","meta"],"entryPoint":"packages/plugins/plugin-automation/src/index.ts","inputs":{"packages/plugins/plugin-automation/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-automation/src/AutomationPlugin.tsx":{"bytesInOutput":1109},"packages/plugins/plugin-automation/src/capabilities/index.ts":{"bytesInOutput":268},"packages/plugins/plugin-automation/src/translations.ts":{"bytesInOutput":1380}},"bytes":3540},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-RG3M42SO.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":838},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-RG3M42SO.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/AutomationContainer-MCUWF267.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/AutomationPanel-U34H2Q7Z.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/FunctionsContainer-435FW56J.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/FunctionsPanel-NXXT5ERU.mjs","kind":"dynamic-import"}],"exports":["AutomationContainer","AutomationPanel","FunctionsContainer","FunctionsPanel"],"inputs":{"packages/plugins/plugin-automation/src/components/index.ts":{"bytesInOutput":346}},"bytes":639},"packages/plugins/plugin-automation/dist/lib/node-esm/types.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-automation/dist/lib/node-esm/types.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-EEA6CZ6B.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-DZ44LGYT.mjs","kind":"import-statement"}],"exports":["AutomationAction"],"entryPoint":"packages/plugins/plugin-automation/src/types.ts","inputs":{},"bytes":248},"packages/plugins/plugin-automation/dist/lib/node-esm/AutomationPanel-U34H2Q7Z.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-automation/dist/lib/node-esm/AutomationPanel-U34H2Q7Z.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-WYXWQFPK.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-5JC4JVYZ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-DZ44LGYT.mjs","kind":"import-statement"}],"exports":["AutomationPanel","default"],"entryPoint":"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts","inputs":{},"bytes":361},"packages/plugins/plugin-automation/dist/lib/node-esm/AutomationContainer-MCUWF267.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1801},"packages/plugins/plugin-automation/dist/lib/node-esm/AutomationContainer-MCUWF267.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-WYXWQFPK.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-5JC4JVYZ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-DZ44LGYT.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["AutomationContainer","default"],"entryPoint":"packages/plugins/plugin-automation/src/components/AutomationContainer.tsx","inputs":{"packages/plugins/plugin-automation/src/components/AutomationContainer.tsx":{"bytesInOutput":805}},"bytes":1258},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-WYXWQFPK.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":11771},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-WYXWQFPK.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-5JC4JVYZ.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-DZ44LGYT.mjs","kind":"import-statement"},{"path":"effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["AutomationPanel","AutomationPanel_default"],"inputs":{"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx":{"bytesInOutput":4990},"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts":{"bytesInOutput":47}},"bytes":5516},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-5JC4JVYZ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":14313},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-5JC4JVYZ.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-DZ44LGYT.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"exports":["TriggerEditor"],"inputs":{"packages/plugins/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx":{"bytesInOutput":2763},"packages/plugins/plugin-automation/src/components/TriggerEditor/FunctionPayloadEditor.tsx":{"bytesInOutput":1981},"packages/plugins/plugin-automation/src/components/TriggerEditor/SpecSelector.tsx":{"bytesInOutput":1614},"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts":{"bytesInOutput":0}},"bytes":6934},"packages/plugins/plugin-automation/dist/lib/node-esm/FunctionsPanel-NXXT5ERU.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-automation/dist/lib/node-esm/FunctionsPanel-NXXT5ERU.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-VYSTWH6Q.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-DZ44LGYT.mjs","kind":"import-statement"}],"exports":["FunctionsPanel","default"],"entryPoint":"packages/plugins/plugin-automation/src/components/FunctionsPanel/index.ts","inputs":{},"bytes":325},"packages/plugins/plugin-automation/dist/lib/node-esm/FunctionsContainer-435FW56J.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1787},"packages/plugins/plugin-automation/dist/lib/node-esm/FunctionsContainer-435FW56J.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-VYSTWH6Q.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-DZ44LGYT.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["FunctionsContainer","default"],"entryPoint":"packages/plugins/plugin-automation/src/components/FunctionsContainer.tsx","inputs":{"packages/plugins/plugin-automation/src/components/FunctionsContainer.tsx":{"bytesInOutput":799}},"bytes":1216},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-VYSTWH6Q.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6531},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-VYSTWH6Q.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-DZ44LGYT.mjs","kind":"import-statement"},{"path":"effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["FunctionsPanel","FunctionsPanel_default"],"inputs":{"packages/plugins/plugin-automation/src/components/FunctionsPanel/FunctionsPanel.tsx":{"bytesInOutput":2904},"packages/plugins/plugin-automation/src/components/FunctionsPanel/index.ts":{"bytesInOutput":45}},"bytes":3367},"packages/plugins/plugin-automation/dist/lib/node-esm/app-graph-builder-NYLOXWVV.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3936},"packages/plugins/plugin-automation/dist/lib/node-esm/app-graph-builder-NYLOXWVV.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-DZ44LGYT.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-script/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts","inputs":{"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts":{"bytesInOutput":2112}},"bytes":2435},"packages/plugins/plugin-automation/dist/lib/node-esm/intent-resolver-PVY22PBL.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4534},"packages/plugins/plugin-automation/dist/lib/node-esm/intent-resolver-PVY22PBL.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-EEA6CZ6B.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-DZ44LGYT.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-automation/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-automation/src/capabilities/intent-resolver.ts":{"bytesInOutput":2063}},"bytes":2423},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-EEA6CZ6B.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2185},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-EEA6CZ6B.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-DZ44LGYT.mjs","kind":"import-statement"},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["AutomationAction"],"inputs":{"packages/plugins/plugin-automation/src/types.ts":{"bytesInOutput":1025}},"bytes":1305},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-DZ44LGYT.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":829},"packages/plugins/plugin-automation/dist/lib/node-esm/chunk-DZ44LGYT.mjs":{"imports":[],"exports":["AUTOMATION_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-automation/src/meta.ts":{"bytesInOutput":395}},"bytes":623}}}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
AutomationContainer,
|
|
4
|
+
AutomationPanel,
|
|
5
|
+
FunctionsContainer
|
|
6
|
+
} from "./chunk-RG3M42SO.mjs";
|
|
7
|
+
import "./chunk-5JC4JVYZ.mjs";
|
|
8
|
+
import {
|
|
9
|
+
meta
|
|
10
|
+
} from "./chunk-DZ44LGYT.mjs";
|
|
11
|
+
|
|
12
|
+
// packages/plugins/plugin-automation/src/capabilities/react-surface.tsx
|
|
13
|
+
import React from "react";
|
|
14
|
+
import { Capabilities, contributes, createSurface, useLayout } from "@dxos/app-framework";
|
|
15
|
+
import { isInstanceOf } from "@dxos/echo-schema";
|
|
16
|
+
import { ScriptType } from "@dxos/functions";
|
|
17
|
+
import { getSpace, parseId, useSpace } from "@dxos/react-client/echo";
|
|
18
|
+
import { StackItem } from "@dxos/react-ui-stack";
|
|
19
|
+
var react_surface_default = () => contributes(Capabilities.ReactSurface, [
|
|
20
|
+
createSurface({
|
|
21
|
+
id: `${meta.id}/space-settings-automation`,
|
|
22
|
+
role: "article",
|
|
23
|
+
filter: (data) => data.subject === `${meta.id}/space-settings-automation`,
|
|
24
|
+
component: () => {
|
|
25
|
+
const layout = useLayout();
|
|
26
|
+
const { spaceId } = parseId(layout.workspace);
|
|
27
|
+
const space = useSpace(spaceId);
|
|
28
|
+
if (!space || !spaceId) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
return /* @__PURE__ */ React.createElement(AutomationContainer, {
|
|
32
|
+
space
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}),
|
|
36
|
+
createSurface({
|
|
37
|
+
id: `${meta.id}/space-settings-functions`,
|
|
38
|
+
role: "article",
|
|
39
|
+
filter: (data) => data.subject === `${meta.id}/space-settings-functions`,
|
|
40
|
+
component: () => {
|
|
41
|
+
const layout = useLayout();
|
|
42
|
+
const { spaceId } = parseId(layout.workspace);
|
|
43
|
+
const space = useSpace(spaceId);
|
|
44
|
+
if (!space || !spaceId) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return /* @__PURE__ */ React.createElement(FunctionsContainer, {
|
|
48
|
+
space
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}),
|
|
52
|
+
createSurface({
|
|
53
|
+
id: `${meta.id}/companion/automation`,
|
|
54
|
+
role: "article",
|
|
55
|
+
filter: (data) => isInstanceOf(ScriptType, data.companionTo) && data.subject === "automation",
|
|
56
|
+
component: ({ data, role }) => {
|
|
57
|
+
return /* @__PURE__ */ React.createElement(StackItem.Content, {
|
|
58
|
+
role
|
|
59
|
+
}, /* @__PURE__ */ React.createElement(AutomationPanel, {
|
|
60
|
+
space: getSpace(data.companionTo),
|
|
61
|
+
object: data.companionTo
|
|
62
|
+
}));
|
|
63
|
+
}
|
|
64
|
+
})
|
|
65
|
+
]);
|
|
66
|
+
export {
|
|
67
|
+
react_surface_default as default
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=react-surface-R72A4EHM.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/react-surface.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Capabilities, contributes, createSurface, useLayout } from '@dxos/app-framework';\nimport { isInstanceOf } from '@dxos/echo-schema';\nimport { ScriptType } from '@dxos/functions';\nimport { getSpace, parseId, useSpace } from '@dxos/react-client/echo';\nimport { StackItem } from '@dxos/react-ui-stack';\n\nimport { AutomationContainer, AutomationPanel, FunctionsContainer } from '../components';\nimport { meta } from '../meta';\n\nexport default () =>\n contributes(Capabilities.ReactSurface, [\n createSurface({\n id: `${meta.id}/space-settings-automation`,\n role: 'article',\n filter: (data): data is { subject: string } => data.subject === `${meta.id}/space-settings-automation`,\n component: () => {\n const layout = useLayout();\n const { spaceId } = parseId(layout.workspace);\n const space = useSpace(spaceId);\n if (!space || !spaceId) {\n return null;\n }\n\n return <AutomationContainer space={space} />;\n },\n }),\n createSurface({\n id: `${meta.id}/space-settings-functions`,\n role: 'article',\n filter: (data): data is { subject: string } => data.subject === `${meta.id}/space-settings-functions`,\n component: () => {\n const layout = useLayout();\n const { spaceId } = parseId(layout.workspace);\n const space = useSpace(spaceId);\n if (!space || !spaceId) {\n return null;\n }\n\n return <FunctionsContainer space={space} />;\n },\n }),\n createSurface({\n id: `${meta.id}/companion/automation`,\n role: 'article',\n filter: (data): data is { companionTo: ScriptType; subject: 'automation' } =>\n isInstanceOf(ScriptType, data.companionTo) && data.subject === 'automation',\n component: ({ data, role }) => {\n return (\n <StackItem.Content role={role}>\n <AutomationPanel space={getSpace(data.companionTo)!} object={data.companionTo} />\n </StackItem.Content>\n );\n },\n }),\n ]);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,cAAcC,aAAaC,eAAeC,iBAAiB;AACpE,SAASC,oBAAoB;AAC7B,SAASC,kBAAkB;AAC3B,SAASC,UAAUC,SAASC,gBAAgB;AAC5C,SAASC,iBAAiB;AAK1B,IAAA,wBAAe,MACbC,YAAYC,aAAaC,cAAc;EACrCC,cAAc;IACZC,IAAI,GAAGC,KAAKD,EAAE;IACdE,MAAM;IACNC,QAAQ,CAACC,SAAsCA,KAAKC,YAAY,GAAGJ,KAAKD,EAAE;IAC1EM,WAAW,MAAA;AACT,YAAMC,SAASC,UAAAA;AACf,YAAM,EAAEC,QAAO,IAAKC,QAAQH,OAAOI,SAAS;AAC5C,YAAMC,QAAQC,SAASJ,OAAAA;AACvB,UAAI,CAACG,SAAS,CAACH,SAAS;AACtB,eAAO;MACT;AAEA,aAAO,sBAAA,cAACK,qBAAAA;QAAoBF;;IAC9B;EACF,CAAA;EACAb,cAAc;IACZC,IAAI,GAAGC,KAAKD,EAAE;IACdE,MAAM;IACNC,QAAQ,CAACC,SAAsCA,KAAKC,YAAY,GAAGJ,KAAKD,EAAE;IAC1EM,WAAW,MAAA;AACT,YAAMC,SAASC,UAAAA;AACf,YAAM,EAAEC,QAAO,IAAKC,QAAQH,OAAOI,SAAS;AAC5C,YAAMC,QAAQC,SAASJ,OAAAA;AACvB,UAAI,CAACG,SAAS,CAACH,SAAS;AACtB,eAAO;MACT;AAEA,aAAO,sBAAA,cAACM,oBAAAA;QAAmBH;;IAC7B;EACF,CAAA;EACAb,cAAc;IACZC,IAAI,GAAGC,KAAKD,EAAE;IACdE,MAAM;IACNC,QAAQ,CAACC,SACPY,aAAaC,YAAYb,KAAKc,WAAW,KAAKd,KAAKC,YAAY;IACjEC,WAAW,CAAC,EAAEF,MAAMF,KAAI,MAAE;AACxB,aACE,sBAAA,cAACiB,UAAUC,SAAO;QAAClB;SACjB,sBAAA,cAACmB,iBAAAA;QAAgBT,OAAOU,SAASlB,KAAKc,WAAW;QAAIK,QAAQnB,KAAKc;;IAGxE;EACF,CAAA;CACD;",
|
|
6
|
+
"names": ["React", "Capabilities", "contributes", "createSurface", "useLayout", "isInstanceOf", "ScriptType", "getSpace", "parseId", "useSpace", "StackItem", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "meta", "role", "filter", "data", "subject", "component", "layout", "useLayout", "spaceId", "parseId", "workspace", "space", "useSpace", "AutomationContainer", "FunctionsContainer", "isInstanceOf", "ScriptType", "companionTo", "StackItem", "Content", "AutomationPanel", "getSpace", "object"]
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutomationPlugin.d.ts","sourceRoot":"","sources":["../../../src/AutomationPlugin.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AutomationPlugin.d.ts","sourceRoot":"","sources":["../../../src/AutomationPlugin.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,gBAAgB,4CA2BzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,EAA6B,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAIrF,OAAO,EAAmB,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,EAA6B,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAIrF,OAAO,EAAmB,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;kCAMvC,cAAc;;qBAgD6uC,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,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AAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;AAhD3jS,wBA+CK"}
|
|
@@ -175,5 +175,6 @@ export declare const AppGraphBuilder: (props?: import("@dxos/app-framework").Plu
|
|
|
175
175
|
type?: string;
|
|
176
176
|
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
177
177
|
}>[])[])[])[])[])[])[])[])[])[])[]> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
178
|
+
export declare const IntentResolver: (props?: import("@dxos/app-framework").PluginsContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.IntentResolver> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
178
179
|
export declare const ReactSurface: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.ReactSurface> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
179
180
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;qBAG6kG,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAg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qF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;qFAHx0V,CAAC;AACzE,eAAO,MAAM,cAAc,mPAA0C,CAAC;AACtE,eAAO,MAAM,YAAY,gMAAwC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intent-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/intent-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,YAAY,EAEZ,KAAK,cAAc,EAGpB,MAAM,qBAAqB,CAAC;kCAWJ,cAAc;AAAvC,wBAkDK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAyC,MAAM,qBAAqB,CAAC;;AAS1F,wBA6CK"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type Space } from '@dxos/react-client/echo';
|
|
3
|
+
export declare const AutomationContainer: ({ space }: {
|
|
4
|
+
space: Space;
|
|
5
|
+
}) => React.JSX.Element;
|
|
6
|
+
export default AutomationContainer;
|
|
7
|
+
//# sourceMappingURL=AutomationContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutomationContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/AutomationContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAQrD,eAAO,MAAM,mBAAmB,cAAe;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,sBAc9D,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type FunctionTriggerType } from '@dxos/functions';
|
|
3
|
+
import { type Space, type Live } from '@dxos/react-client/echo';
|
|
3
4
|
export type AutomationPanelProps = {
|
|
4
5
|
space: Space;
|
|
5
|
-
object?:
|
|
6
|
+
object?: Live<any>;
|
|
7
|
+
initialTrigger?: FunctionTriggerType;
|
|
8
|
+
onDone?: () => void;
|
|
6
9
|
};
|
|
7
|
-
export declare const AutomationPanel: ({ space, object }: AutomationPanelProps) => React.JSX.Element;
|
|
10
|
+
export declare const AutomationPanel: ({ space, object, initialTrigger, onDone }: AutomationPanelProps) => React.JSX.Element;
|
|
8
11
|
//# sourceMappingURL=AutomationPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutomationPanel.d.ts","sourceRoot":"","sources":["../../../../../src/components/AutomationPanel/AutomationPanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AutomationPanel.d.ts","sourceRoot":"","sources":["../../../../../src/components/AutomationPanel/AutomationPanel.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAKL,KAAK,mBAAmB,EAEzB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAA0B,KAAK,KAAK,EAAE,KAAK,IAAI,EAAY,MAAM,yBAAyB,CAAC;AAWlG,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IACnB,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAGF,eAAO,MAAM,eAAe,8CAA+C,oBAAoB,sBAoG9F,CAAC"}
|