@dxos/plugin-native 0.8.4-main.69d29f4 → 0.8.4-main.6fa680abb7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/lib/browser/{chunk-6374DBU4.mjs → chunk-C7OU2UF6.mjs} +2 -2
  2. package/dist/lib/browser/{chunk-6374DBU4.mjs.map → chunk-C7OU2UF6.mjs.map} +1 -1
  3. package/dist/lib/browser/index.mjs +9 -8
  4. package/dist/lib/browser/index.mjs.map +3 -3
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/{ollama-KSB3XG6S.mjs → ollama-QOB3EVAJ.mjs} +7 -6
  7. package/dist/lib/browser/ollama-QOB3EVAJ.mjs.map +7 -0
  8. package/dist/lib/browser/updater-XFTSQ4BS.mjs +190 -0
  9. package/dist/lib/browser/updater-XFTSQ4BS.mjs.map +7 -0
  10. package/dist/lib/browser/{window-JDFVLF4U.mjs → window-GKYYTCEI.mjs} +5 -5
  11. package/dist/lib/browser/window-GKYYTCEI.mjs.map +7 -0
  12. package/dist/types/src/NativePlugin.d.ts.map +1 -1
  13. package/dist/types/src/capabilities/ollama/ollama.d.ts +4 -3
  14. package/dist/types/src/capabilities/ollama/ollama.d.ts.map +1 -1
  15. package/dist/types/src/capabilities/updater/updater.d.ts +1 -1
  16. package/dist/types/src/capabilities/updater/updater.d.ts.map +1 -1
  17. package/dist/types/src/capabilities/window/window.d.ts +1 -1
  18. package/dist/types/src/capabilities/window/window.d.ts.map +1 -1
  19. package/dist/types/tsconfig.tsbuildinfo +1 -1
  20. package/package.json +16 -15
  21. package/src/NativePlugin.tsx +5 -4
  22. package/src/capabilities/ollama/ollama.ts +4 -3
  23. package/src/capabilities/updater/updater.ts +64 -26
  24. package/src/capabilities/window/window.ts +6 -6
  25. package/src/meta.ts +1 -1
  26. package/dist/lib/browser/ollama-KSB3XG6S.mjs.map +0 -7
  27. package/dist/lib/browser/updater-XQTSH4ZZ.mjs +0 -133
  28. package/dist/lib/browser/updater-XQTSH4ZZ.mjs.map +0 -7
  29. package/dist/lib/browser/window-JDFVLF4U.mjs.map +0 -7
@@ -1,7 +1,7 @@
1
1
  // src/meta.ts
2
2
  import { trim } from "@dxos/util";
3
3
  var meta = {
4
- id: "dxos.org/plugin/native",
4
+ id: "org.dxos.plugin.native",
5
5
  name: "Native",
6
6
  description: trim`
7
7
  Native platform integration providing desktop-specific features and system-level capabilities.
@@ -12,4 +12,4 @@ var meta = {
12
12
  export {
13
13
  meta
14
14
  };
15
- //# sourceMappingURL=chunk-6374DBU4.mjs.map
15
+ //# sourceMappingURL=chunk-C7OU2UF6.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/meta.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'dxos.org/plugin/native',\n name: 'Native',\n description: trim`\n Native platform integration providing desktop-specific features and system-level capabilities.\n Access native file dialogs, notifications, and OS integrations.\n `,\n};\n"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.native',\n name: 'Native',\n description: trim`\n Native platform integration providing desktop-specific features and system-level capabilities.\n Access native file dialogs, notifications, and OS integrations.\n `,\n};\n"],
5
5
  "mappings": ";AAKA,SAASA,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;AAIf;",
6
6
  "names": ["trim", "meta", "id", "name", "description", "trim"]
7
7
  }
@@ -1,21 +1,22 @@
1
1
  import {
2
2
  meta
3
- } from "./chunk-6374DBU4.mjs";
3
+ } from "./chunk-C7OU2UF6.mjs";
4
4
 
5
5
  // src/capabilities/ollama/index.ts
6
6
  import { Capability } from "@dxos/app-framework";
7
- var Ollama = Capability.lazy("Ollama", () => import("./ollama-KSB3XG6S.mjs"));
7
+ var Ollama = Capability.lazy("Ollama", () => import("./ollama-QOB3EVAJ.mjs"));
8
8
 
9
9
  // src/capabilities/updater/index.ts
10
10
  import { Capability as Capability2 } from "@dxos/app-framework";
11
- var Updater = Capability2.lazy("Updater", () => import("./updater-XQTSH4ZZ.mjs"));
11
+ var Updater = Capability2.lazy("Updater", () => import("./updater-XFTSQ4BS.mjs"));
12
12
 
13
13
  // src/capabilities/window/index.ts
14
14
  import { Capability as Capability3 } from "@dxos/app-framework";
15
- var Window = Capability3.lazy("Window", () => import("./window-JDFVLF4U.mjs"));
15
+ var Window = Capability3.lazy("Window", () => import("./window-GKYYTCEI.mjs"));
16
16
 
17
17
  // src/NativePlugin.tsx
18
- import { Common, Plugin } from "@dxos/app-framework";
18
+ import { ActivationEvents, Plugin } from "@dxos/app-framework";
19
+ import { AppPlugin } from "@dxos/app-toolkit";
19
20
  import { AssistantEvents } from "@dxos/plugin-assistant";
20
21
 
21
22
  // src/translations.ts
@@ -33,15 +34,15 @@ var translations = [
33
34
  ];
34
35
 
35
36
  // src/NativePlugin.tsx
36
- var NativePlugin = Plugin.define(meta).pipe(Common.Plugin.addTranslationsModule({
37
+ var NativePlugin = Plugin.define(meta).pipe(AppPlugin.addTranslationsModule({
37
38
  translations
38
39
  }), Plugin.addModule({
39
40
  id: "updater",
40
- activatesOn: Common.ActivationEvent.OperationInvokerReady,
41
+ activatesOn: ActivationEvents.OperationInvokerReady,
41
42
  activate: Updater
42
43
  }), Plugin.addModule({
43
44
  id: "window",
44
- activatesOn: Common.ActivationEvent.OperationInvokerReady,
45
+ activatesOn: ActivationEvents.OperationInvokerReady,
45
46
  activate: Window
46
47
  }), Plugin.addModule({
47
48
  id: "ollama",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/capabilities/ollama/index.ts", "../../../src/capabilities/updater/index.ts", "../../../src/capabilities/window/index.ts", "../../../src/NativePlugin.tsx", "../../../src/translations.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const Ollama = Capability.lazy('Ollama', () => import('./ollama'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const Updater = Capability.lazy('Updater', () => import('./updater'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const Window = Capability.lazy('Window', () => import('./window'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { Common, Plugin } from '@dxos/app-framework';\nimport { AssistantEvents } from '@dxos/plugin-assistant';\n\nimport { Ollama, Updater, Window } from './capabilities';\nimport { meta } from './meta';\nimport { translations } from './translations';\n\nexport const NativePlugin = Plugin.define(meta).pipe(\n Common.Plugin.addTranslationsModule({ translations }),\n Plugin.addModule({\n id: 'updater',\n activatesOn: Common.ActivationEvent.OperationInvokerReady,\n activate: Updater,\n }),\n Plugin.addModule({\n id: 'window',\n activatesOn: Common.ActivationEvent.OperationInvokerReady,\n activate: Window,\n }),\n Plugin.addModule({\n id: 'ollama',\n activatesOn: AssistantEvents.SetupAiServiceProviders,\n activate: Ollama,\n }),\n Plugin.make,\n);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from './meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'update ready label': 'Ready to update',\n 'update ready description': 'A new version of Composer is available.',\n 'update label': 'Update',\n 'update alt': 'Relaunch the app to update',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
- "mappings": ";;;;;AAIA,SAASA,kBAAkB;AAEpB,IAAMC,SAASC,WAAWC,KAAK,UAAU,MAAM,OAAO,uBAAA,CAAA;;;ACF7D,SAASC,cAAAA,mBAAkB;AAEpB,IAAMC,UAAUC,YAAWC,KAAK,WAAW,MAAM,OAAO,wBAAA,CAAA;;;ACF/D,SAASC,cAAAA,mBAAkB;AAEpB,IAAMC,SAASC,YAAWC,KAAK,UAAU,MAAM,OAAO,uBAAA,CAAA;;;ACF7D,SAASC,QAAQC,cAAc;AAC/B,SAASC,uBAAuB;;;ACGzB,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,KAAKC,EAAE,GAAG;QACT,sBAAsB;QACtB,4BAA4B;QAC5B,gBAAgB;QAChB,cAAc;MAChB;IACF;EACF;;;;ADPK,IAAMC,eAAeC,OAAOC,OAAOC,IAAAA,EAAMC,KAC9CC,OAAOJ,OAAOK,sBAAsB;EAAEC;AAAa,CAAA,GACnDN,OAAOO,UAAU;EACfC,IAAI;EACJC,aAAaL,OAAOM,gBAAgBC;EACpCC,UAAUC;AACZ,CAAA,GACAb,OAAOO,UAAU;EACfC,IAAI;EACJC,aAAaL,OAAOM,gBAAgBC;EACpCC,UAAUE;AACZ,CAAA,GACAd,OAAOO,UAAU;EACfC,IAAI;EACJC,aAAaM,gBAAgBC;EAC7BJ,UAAUK;AACZ,CAAA,GACAjB,OAAOkB,IAAI;",
6
- "names": ["Capability", "Ollama", "Capability", "lazy", "Capability", "Updater", "Capability", "lazy", "Capability", "Window", "Capability", "lazy", "Common", "Plugin", "AssistantEvents", "translations", "meta", "id", "NativePlugin", "Plugin", "define", "meta", "pipe", "Common", "addTranslationsModule", "translations", "addModule", "id", "activatesOn", "ActivationEvent", "OperationInvokerReady", "activate", "Updater", "Window", "AssistantEvents", "SetupAiServiceProviders", "Ollama", "make"]
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const Ollama = Capability.lazy('Ollama', () => import('./ollama'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const Updater = Capability.lazy('Updater', () => import('./updater'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const Window = Capability.lazy('Window', () => import('./window'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { ActivationEvents, Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { AssistantEvents } from '@dxos/plugin-assistant';\n\nimport { Ollama, Updater, Window } from './capabilities';\nimport { meta } from './meta';\nimport { translations } from './translations';\n\nexport const NativePlugin = Plugin.define(meta).pipe(\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.addModule({\n id: 'updater',\n activatesOn: ActivationEvents.OperationInvokerReady,\n activate: Updater,\n }),\n Plugin.addModule({\n id: 'window',\n activatesOn: ActivationEvents.OperationInvokerReady,\n activate: Window,\n }),\n Plugin.addModule({\n id: 'ollama',\n activatesOn: AssistantEvents.SetupAiServiceProviders,\n activate: Ollama,\n }),\n Plugin.make,\n);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from './meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'update ready label': 'Ready to update',\n 'update ready description': 'A new version of Composer is available.',\n 'update label': 'Update',\n 'update alt': 'Relaunch the app to update',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
+ "mappings": ";;;;;AAIA,SAASA,kBAAkB;AAEpB,IAAMC,SAASC,WAAWC,KAAK,UAAU,MAAM,OAAO,uBAAA,CAAA;;;ACF7D,SAASC,cAAAA,mBAAkB;AAEpB,IAAMC,UAAUC,YAAWC,KAAK,WAAW,MAAM,OAAO,wBAAA,CAAA;;;ACF/D,SAASC,cAAAA,mBAAkB;AAEpB,IAAMC,SAASC,YAAWC,KAAK,UAAU,MAAM,OAAO,uBAAA,CAAA;;;ACF7D,SAASC,kBAAkBC,cAAc;AACzC,SAASC,iBAAiB;AAC1B,SAASC,uBAAuB;;;ACEzB,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,KAAKC,EAAE,GAAG;QACT,sBAAsB;QACtB,4BAA4B;QAC5B,gBAAgB;QAChB,cAAc;MAChB;IACF;EACF;;;;ADNK,IAAMC,eAAeC,OAAOC,OAAOC,IAAAA,EAAMC,KAC9CC,UAAUC,sBAAsB;EAAEC;AAAa,CAAA,GAC/CN,OAAOO,UAAU;EACfC,IAAI;EACJC,aAAaC,iBAAiBC;EAC9BC,UAAUC;AACZ,CAAA,GACAb,OAAOO,UAAU;EACfC,IAAI;EACJC,aAAaC,iBAAiBC;EAC9BC,UAAUE;AACZ,CAAA,GACAd,OAAOO,UAAU;EACfC,IAAI;EACJC,aAAaM,gBAAgBC;EAC7BJ,UAAUK;AACZ,CAAA,GACAjB,OAAOkB,IAAI;",
6
+ "names": ["Capability", "Ollama", "Capability", "lazy", "Capability", "Updater", "Capability", "lazy", "Capability", "Window", "Capability", "lazy", "ActivationEvents", "Plugin", "AppPlugin", "AssistantEvents", "translations", "meta", "id", "NativePlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addTranslationsModule", "translations", "addModule", "id", "activatesOn", "ActivationEvents", "OperationInvokerReady", "activate", "Updater", "Window", "AssistantEvents", "SetupAiServiceProviders", "Ollama", "make"]
7
7
  }
@@ -1 +1 @@
1
- {"inputs":{"src/capabilities/ollama/ollama.ts":{"bytes":10783,"imports":[{"path":"@effect/platform/FetchHttpClient","kind":"import-statement","external":true},{"path":"@effect/platform/HttpClient","kind":"import-statement","external":true},{"path":"@tauri-apps/plugin-shell","kind":"import-statement","external":true},{"path":"effect/Context","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Layer","kind":"import-statement","external":true},{"path":"effect/ManagedRuntime","kind":"import-statement","external":true},{"path":"@dxos/ai/resolvers","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/ollama/index.ts":{"bytes":848,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/ollama/ollama.ts","kind":"dynamic-import","original":"./ollama"}],"format":"esm"},"src/meta.ts":{"bytes":1392,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/updater/updater.ts":{"bytes":12209,"imports":[{"path":"@tauri-apps/plugin-os","kind":"import-statement","external":true},{"path":"@tauri-apps/plugin-process","kind":"import-statement","external":true},{"path":"@tauri-apps/plugin-updater","kind":"import-statement","external":true},{"path":"effect/Duration","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Fiber","kind":"import-statement","external":true},{"path":"effect/Function","kind":"import-statement","external":true},{"path":"effect/Match","kind":"import-statement","external":true},{"path":"effect/Schedule","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"src/capabilities/updater/index.ts":{"bytes":856,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/updater/updater.ts","kind":"dynamic-import","original":"./updater"}],"format":"esm"},"src/capabilities/window/window.ts":{"bytes":6809,"imports":[{"path":"@tauri-apps/api/window","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/window/index.ts":{"bytes":848,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/window/window.ts","kind":"dynamic-import","original":"./window"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":637,"imports":[{"path":"src/capabilities/ollama/index.ts","kind":"import-statement","original":"./ollama"},{"path":"src/capabilities/updater/index.ts","kind":"import-statement","original":"./updater"},{"path":"src/capabilities/window/index.ts","kind":"import-statement","original":"./window"}],"format":"esm"},"src/translations.ts":{"bytes":1625,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/NativePlugin.tsx":{"bytes":3267,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-assistant","kind":"import-statement","external":true},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"src/index.ts":{"bytes":649,"imports":[{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/NativePlugin.tsx","kind":"import-statement","original":"./NativePlugin"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3343},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-6374DBU4.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/ollama-KSB3XG6S.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/updater-XQTSH4ZZ.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/window-JDFVLF4U.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-assistant","kind":"import-statement","external":true}],"exports":["NativePlugin","Ollama","Updater","Window","meta"],"entryPoint":"src/index.ts","inputs":{"src/capabilities/ollama/index.ts":{"bytesInOutput":129},"src/capabilities/index.ts":{"bytesInOutput":0},"src/capabilities/updater/index.ts":{"bytesInOutput":148},"src/capabilities/window/index.ts":{"bytesInOutput":145},"src/index.ts":{"bytesInOutput":0},"src/NativePlugin.tsx":{"bytesInOutput":581},"src/translations.ts":{"bytesInOutput":293}},"bytes":1630},"dist/lib/browser/ollama-KSB3XG6S.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5412},"dist/lib/browser/ollama-KSB3XG6S.mjs":{"imports":[{"path":"@effect/platform/FetchHttpClient","kind":"import-statement","external":true},{"path":"@effect/platform/HttpClient","kind":"import-statement","external":true},{"path":"@tauri-apps/plugin-shell","kind":"import-statement","external":true},{"path":"effect/Context","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Layer","kind":"import-statement","external":true},{"path":"effect/ManagedRuntime","kind":"import-statement","external":true},{"path":"@dxos/ai/resolvers","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/ollama/ollama.ts","inputs":{"src/capabilities/ollama/ollama.ts":{"bytesInOutput":2625}},"bytes":2747},"dist/lib/browser/updater-XQTSH4ZZ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5584},"dist/lib/browser/updater-XQTSH4ZZ.mjs":{"imports":[{"path":"dist/lib/browser/chunk-6374DBU4.mjs","kind":"import-statement"},{"path":"@tauri-apps/plugin-os","kind":"import-statement","external":true},{"path":"@tauri-apps/plugin-process","kind":"import-statement","external":true},{"path":"@tauri-apps/plugin-updater","kind":"import-statement","external":true},{"path":"effect/Duration","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Fiber","kind":"import-statement","external":true},{"path":"effect/Function","kind":"import-statement","external":true},{"path":"effect/Match","kind":"import-statement","external":true},{"path":"effect/Schedule","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/updater/updater.ts","inputs":{"src/capabilities/updater/updater.ts":{"bytesInOutput":3502}},"bytes":3676},"dist/lib/browser/chunk-6374DBU4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":662},"dist/lib/browser/chunk-6374DBU4.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":293}},"bytes":372},"dist/lib/browser/window-JDFVLF4U.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3444},"dist/lib/browser/window-JDFVLF4U.mjs":{"imports":[{"path":"@tauri-apps/api/window","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/window/window.ts","inputs":{"src/capabilities/window/window.ts":{"bytesInOutput":1208}},"bytes":1330}}}
1
+ {"inputs":{"src/capabilities/ollama/ollama.ts":{"bytes":10906,"imports":[{"path":"@effect/platform/FetchHttpClient","kind":"import-statement","external":true},{"path":"@effect/platform/HttpClient","kind":"import-statement","external":true},{"path":"@tauri-apps/plugin-shell","kind":"import-statement","external":true},{"path":"effect/Context","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Layer","kind":"import-statement","external":true},{"path":"effect/ManagedRuntime","kind":"import-statement","external":true},{"path":"@dxos/ai/resolvers","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/ollama/index.ts":{"bytes":848,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/ollama/ollama.ts","kind":"dynamic-import","original":"./ollama"}],"format":"esm"},"src/meta.ts":{"bytes":1392,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/updater/updater.ts":{"bytes":16552,"imports":[{"path":"@tauri-apps/plugin-os","kind":"import-statement","external":true},{"path":"@tauri-apps/plugin-process","kind":"import-statement","external":true},{"path":"@tauri-apps/plugin-updater","kind":"import-statement","external":true},{"path":"effect/Duration","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Fiber","kind":"import-statement","external":true},{"path":"effect/Match","kind":"import-statement","external":true},{"path":"effect/Schedule","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"src/capabilities/updater/index.ts":{"bytes":856,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/updater/updater.ts","kind":"dynamic-import","original":"./updater"}],"format":"esm"},"src/capabilities/window/window.ts":{"bytes":6830,"imports":[{"path":"@tauri-apps/api/window","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/window/index.ts":{"bytes":848,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/window/window.ts","kind":"dynamic-import","original":"./window"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":637,"imports":[{"path":"src/capabilities/ollama/index.ts","kind":"import-statement","original":"./ollama"},{"path":"src/capabilities/updater/index.ts","kind":"import-statement","original":"./updater"},{"path":"src/capabilities/window/index.ts","kind":"import-statement","original":"./window"}],"format":"esm"},"src/translations.ts":{"bytes":1625,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/NativePlugin.tsx":{"bytes":3376,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/plugin-assistant","kind":"import-statement","external":true},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"src/index.ts":{"bytes":649,"imports":[{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/NativePlugin.tsx","kind":"import-statement","original":"./NativePlugin"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3415},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-C7OU2UF6.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/ollama-QOB3EVAJ.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/updater-XFTSQ4BS.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/window-GKYYTCEI.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/plugin-assistant","kind":"import-statement","external":true}],"exports":["NativePlugin","Ollama","Updater","Window","meta"],"entryPoint":"src/index.ts","inputs":{"src/capabilities/ollama/index.ts":{"bytesInOutput":129},"src/capabilities/index.ts":{"bytesInOutput":0},"src/capabilities/updater/index.ts":{"bytesInOutput":148},"src/capabilities/window/index.ts":{"bytesInOutput":145},"src/index.ts":{"bytesInOutput":0},"src/NativePlugin.tsx":{"bytesInOutput":622},"src/translations.ts":{"bytesInOutput":293}},"bytes":1671},"dist/lib/browser/ollama-QOB3EVAJ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5474},"dist/lib/browser/ollama-QOB3EVAJ.mjs":{"imports":[{"path":"@effect/platform/FetchHttpClient","kind":"import-statement","external":true},{"path":"@effect/platform/HttpClient","kind":"import-statement","external":true},{"path":"@tauri-apps/plugin-shell","kind":"import-statement","external":true},{"path":"effect/Context","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Layer","kind":"import-statement","external":true},{"path":"effect/ManagedRuntime","kind":"import-statement","external":true},{"path":"@dxos/ai/resolvers","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/ollama/ollama.ts","inputs":{"src/capabilities/ollama/ollama.ts":{"bytesInOutput":2668}},"bytes":2790},"dist/lib/browser/updater-XFTSQ4BS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":7410},"dist/lib/browser/updater-XFTSQ4BS.mjs":{"imports":[{"path":"dist/lib/browser/chunk-C7OU2UF6.mjs","kind":"import-statement"},{"path":"@tauri-apps/plugin-os","kind":"import-statement","external":true},{"path":"@tauri-apps/plugin-process","kind":"import-statement","external":true},{"path":"@tauri-apps/plugin-updater","kind":"import-statement","external":true},{"path":"effect/Duration","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Fiber","kind":"import-statement","external":true},{"path":"effect/Match","kind":"import-statement","external":true},{"path":"effect/Schedule","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/updater/updater.ts","inputs":{"src/capabilities/updater/updater.ts":{"bytesInOutput":4868}},"bytes":5042},"dist/lib/browser/chunk-C7OU2UF6.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":662},"dist/lib/browser/chunk-C7OU2UF6.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":293}},"bytes":372},"dist/lib/browser/window-GKYYTCEI.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3464},"dist/lib/browser/window-GKYYTCEI.mjs":{"imports":[{"path":"@tauri-apps/api/window","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/window/window.ts","inputs":{"src/capabilities/window/window.ts":{"bytesInOutput":1215}},"bytes":1337}}}
@@ -7,14 +7,15 @@ import * as Effect from "effect/Effect";
7
7
  import * as Layer from "effect/Layer";
8
8
  import * as ManagedRuntime from "effect/ManagedRuntime";
9
9
  import { OllamaResolver } from "@dxos/ai/resolvers";
10
- import { Capability, Common } from "@dxos/app-framework";
10
+ import { Capability } from "@dxos/app-framework";
11
+ import { AppCapabilities } from "@dxos/app-toolkit";
11
12
  import { log } from "@dxos/log";
12
13
  var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-native/src/capabilities/ollama/ollama.ts";
13
14
  var OLLAMA_HOST = "http://localhost:21434";
14
15
  var ollama_default = Capability.makeModule(() => Effect.sync(() => {
15
16
  const runtime = ManagedRuntime.make(OllamaSidecar.layerLive);
16
17
  const sidecarLayer = Layer.effectContext(runtime.runtimeEffect.pipe(Effect.map((rt) => rt.context.pipe(Context.pick(OllamaSidecar)))));
17
- return Capability.contributes(Common.Capability.AiModelResolver, OllamaSidecarModelResolver.pipe(Layer.provide(sidecarLayer)), () => Effect.tryPromise(() => runtime.dispose()));
18
+ return Capability.contributes(AppCapabilities.AiModelResolver, OllamaSidecarModelResolver.pipe(Layer.provide(sidecarLayer)), () => Effect.tryPromise(() => runtime.dispose()));
18
19
  }));
19
20
  var OllamaSidecar = class _OllamaSidecar extends Context.Tag("@dxos/plugin-native/OllamaSidecar")() {
20
21
  static layerLive = Layer.scoped(_OllamaSidecar, Effect.gen(function* () {
@@ -32,7 +33,7 @@ var OllamaSidecar = class _OllamaSidecar extends Context.Tag("@dxos/plugin-nativ
32
33
  code
33
34
  }, {
34
35
  F: __dxlog_file,
35
- L: 61,
36
+ L: 62,
36
37
  S: this,
37
38
  C: (f, a) => f(...a)
38
39
  }));
@@ -40,7 +41,7 @@ var OllamaSidecar = class _OllamaSidecar extends Context.Tag("@dxos/plugin-nativ
40
41
  error
41
42
  }, {
42
43
  F: __dxlog_file,
43
- L: 62,
44
+ L: 63,
44
45
  S: this,
45
46
  C: (f, a) => f(...a)
46
47
  }));
@@ -52,7 +53,7 @@ var OllamaSidecar = class _OllamaSidecar extends Context.Tag("@dxos/plugin-nativ
52
53
  pid: child.pid
53
54
  }, {
54
55
  F: __dxlog_file,
55
- L: 69,
56
+ L: 70,
56
57
  S: this,
57
58
  C: (f, a) => f(...a)
58
59
  });
@@ -71,4 +72,4 @@ var OllamaSidecarModelResolver = Layer.unwrapEffect(Effect.gen(function* () {
71
72
  export {
72
73
  ollama_default as default
73
74
  };
74
- //# sourceMappingURL=ollama-KSB3XG6S.mjs.map
75
+ //# sourceMappingURL=ollama-QOB3EVAJ.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/ollama/ollama.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as FetchHttpClient from '@effect/platform/FetchHttpClient';\nimport * as HttpClient from '@effect/platform/HttpClient';\nimport { Command } from '@tauri-apps/plugin-shell';\nimport * as Context from 'effect/Context';\nimport * as Effect from 'effect/Effect';\nimport * as Layer from 'effect/Layer';\nimport * as ManagedRuntime from 'effect/ManagedRuntime';\n\nimport { type AiModelResolver } from '@dxos/ai';\nimport { OllamaResolver } from '@dxos/ai/resolvers';\nimport { Capability } from '@dxos/app-framework';\nimport { AppCapabilities } from '@dxos/app-toolkit';\nimport { log } from '@dxos/log';\n\n// NOTE: Running ollama on non-standard port (config Tauri).\nconst OLLAMA_HOST = 'http://localhost:21434';\n\nexport type OllamaCapabilities = Capability.Capability<typeof AppCapabilities.AiModelResolver>;\n\nexport default Capability.makeModule<[], OllamaCapabilities>(() =>\n Effect.sync(() => {\n const runtime = ManagedRuntime.make(OllamaSidecar.layerLive);\n\n // Layer for the sidecar but the lifecycle is managed by the runtime.\n const sidecarLayer = Layer.effectContext(\n runtime.runtimeEffect.pipe(Effect.map((rt) => rt.context.pipe(Context.pick(OllamaSidecar)))),\n );\n\n return Capability.contributes(\n AppCapabilities.AiModelResolver,\n OllamaSidecarModelResolver.pipe(Layer.provide(sidecarLayer)),\n () => Effect.tryPromise(() => runtime.dispose()),\n );\n }),\n);\n\nclass OllamaSidecar extends Context.Tag('@dxos/plugin-native/OllamaSidecar')<\n OllamaSidecar,\n {\n endpoint: string;\n }\n>() {\n static layerLive = Layer.scoped(\n OllamaSidecar,\n Effect.gen(function* () {\n const command = Command.sidecar('sidecar/ollama', ['serve'], {\n env: {\n OLLAMA_HOST,\n OLLAMA_ORIGINS: '*', // CORS\n },\n });\n\n // NOTE: Keeping those as console.log for consistent formatting.\n // eslint-disable-next-line no-console\n command.stdout.on('data', (data) => console.log('[ollama]', data.toString()));\n // eslint-disable-next-line no-console\n command.stderr.on('data', (data) => console.error('[ollama]', data.toString()));\n command.on('close', (code) => log.info('Ollama process exited', { code }));\n command.on('error', (error) => log.error('Ollama error', { error }));\n const child = yield* Effect.promise(() => command.spawn());\n yield* Effect.addFinalizer(\n Effect.fn(function* () {\n yield* Effect.promise(() => child.kill());\n }),\n );\n log.info('Running ollama', { pid: child.pid });\n\n return {\n endpoint: OLLAMA_HOST,\n };\n }),\n );\n}\n\nconst OllamaSidecarModelResolver: Layer.Layer<AiModelResolver.AiModelResolver, never, OllamaSidecar> =\n Layer.unwrapEffect(\n Effect.gen(function* () {\n const { endpoint } = yield* OllamaSidecar;\n return OllamaResolver.make({\n endpoint,\n transformClient: HttpClient.withTracerPropagation(false),\n });\n }),\n ).pipe(Layer.provide(FetchHttpClient.layer));\n"],
5
+ "mappings": ";AAIA,YAAYA,qBAAqB;AACjC,YAAYC,gBAAgB;AAC5B,SAASC,eAAe;AACxB,YAAYC,aAAa;AACzB,YAAYC,YAAY;AACxB,YAAYC,WAAW;AACvB,YAAYC,oBAAoB;AAGhC,SAASC,sBAAsB;AAC/B,SAASC,kBAAkB;AAC3B,SAASC,uBAAuB;AAChC,SAASC,WAAW;;AAGpB,IAAMC,cAAc;AAIpB,IAAA,iBAAeH,WAAWI,WAAmC,MACpDC,YAAK,MAAA;AACV,QAAMC,UAAyBC,oBAAKC,cAAcC,SAAS;AAG3D,QAAMC,eAAqBC,oBACzBL,QAAQM,cAAcC,KAAYC,WAAI,CAACC,OAAOA,GAAGC,QAAQH,KAAaI,aAAKT,aAAAA,CAAAA,CAAAA,CAAAA,CAAAA;AAG7E,SAAOR,WAAWkB,YAChBjB,gBAAgBkB,iBAChBC,2BAA2BP,KAAWQ,cAAQX,YAAAA,CAAAA,GAC9C,MAAaY,kBAAW,MAAMhB,QAAQiB,QAAO,CAAA,CAAA;AAEjD,CAAA,CAAA;AAGF,IAAMf,gBAAN,MAAMA,uBAA8BgB,YAAI,mCAAA,EAAA,EAAA;EAMtC,OAAOf,YAAkBgB,aACvBjB,gBACOkB,WAAI,aAAA;AACT,UAAMC,UAAUjC,QAAQkC,QAAQ,kBAAkB;MAAC;OAAU;MAC3DC,KAAK;QACH1B;QACA2B,gBAAgB;MAClB;IACF,CAAA;AAIAH,YAAQI,OAAOC,GAAG,QAAQ,CAACC,SAASC,QAAQhC,IAAI,YAAY+B,KAAKE,SAAQ,CAAA,CAAA;AAEzER,YAAQS,OAAOJ,GAAG,QAAQ,CAACC,SAASC,QAAQG,MAAM,YAAYJ,KAAKE,SAAQ,CAAA,CAAA;AAC3ER,YAAQK,GAAG,SAAS,CAACM,SAASpC,IAAIqC,KAAK,yBAAyB;MAAED;IAAK,GAAA;;;;;;AACvEX,YAAQK,GAAG,SAAS,CAACK,UAAUnC,IAAImC,MAAM,gBAAgB;MAAEA;IAAM,GAAA;;;;;;AACjE,UAAMG,QAAQ,OAAcC,eAAQ,MAAMd,QAAQe,MAAK,CAAA;AACvD,WAAcC,oBACLC,UAAG,aAAA;AACR,aAAcH,eAAQ,MAAMD,MAAMK,KAAI,CAAA;IACxC,CAAA,CAAA;AAEF3C,QAAIqC,KAAK,kBAAkB;MAAEO,KAAKN,MAAMM;IAAI,GAAA;;;;;;AAE5C,WAAO;MACLC,UAAU5C;IACZ;EACF,CAAA,CAAA;AAEJ;AAEA,IAAMiB,6BACE4B,mBACGtB,WAAI,aAAA;AACT,QAAM,EAAEqB,SAAQ,IAAK,OAAOvC;AAC5B,SAAOT,eAAeQ,KAAK;IACzBwC;IACAE,iBAA4BC,iCAAsB,KAAA;EACpD,CAAA;AACF,CAAA,CAAA,EACArC,KAAWQ,cAAwB8B,qBAAK,CAAA;",
6
+ "names": ["FetchHttpClient", "HttpClient", "Command", "Context", "Effect", "Layer", "ManagedRuntime", "OllamaResolver", "Capability", "AppCapabilities", "log", "OLLAMA_HOST", "makeModule", "sync", "runtime", "make", "OllamaSidecar", "layerLive", "sidecarLayer", "effectContext", "runtimeEffect", "pipe", "map", "rt", "context", "pick", "contributes", "AiModelResolver", "OllamaSidecarModelResolver", "provide", "tryPromise", "dispose", "Tag", "scoped", "gen", "command", "sidecar", "env", "OLLAMA_ORIGINS", "stdout", "on", "data", "console", "toString", "stderr", "error", "code", "info", "child", "promise", "spawn", "addFinalizer", "fn", "kill", "pid", "endpoint", "unwrapEffect", "transformClient", "withTracerPropagation", "layer"]
7
+ }
@@ -0,0 +1,190 @@
1
+ import {
2
+ meta
3
+ } from "./chunk-C7OU2UF6.mjs";
4
+
5
+ // src/capabilities/updater/updater.ts
6
+ import { type } from "@tauri-apps/plugin-os";
7
+ import { relaunch } from "@tauri-apps/plugin-process";
8
+ import * as Updater from "@tauri-apps/plugin-updater";
9
+ import * as Duration from "effect/Duration";
10
+ import * as Effect from "effect/Effect";
11
+ import * as Fiber from "effect/Fiber";
12
+ import * as Match from "effect/Match";
13
+ import * as Schedule from "effect/Schedule";
14
+ import { Capabilities, Capability } from "@dxos/app-framework";
15
+ import { LayoutOperation } from "@dxos/app-toolkit";
16
+ import { log } from "@dxos/log";
17
+ var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-native/src/capabilities/updater/updater.ts";
18
+ var SUPPORTS_OTA = [
19
+ "linux",
20
+ "macos",
21
+ "windows"
22
+ ];
23
+ var check2 = async () => {
24
+ try {
25
+ return await Updater.check();
26
+ } catch (error) {
27
+ log.error("failed to check for updates", {
28
+ error
29
+ }, {
30
+ F: __dxlog_file,
31
+ L: 29,
32
+ S: void 0,
33
+ C: (f, a) => f(...a)
34
+ });
35
+ return null;
36
+ }
37
+ };
38
+ var downloadAndInstall = async (update, handleDownload) => {
39
+ try {
40
+ await update.downloadAndInstall(handleDownload);
41
+ return true;
42
+ } catch (error) {
43
+ log.error("failed to download and install update", {
44
+ error
45
+ }, {
46
+ F: __dxlog_file,
47
+ L: 45,
48
+ S: void 0,
49
+ C: (f, a) => f(...a)
50
+ });
51
+ return false;
52
+ }
53
+ };
54
+ var updater_default = Capability.makeModule(Effect.fnUntraced(function* () {
55
+ const platform = type();
56
+ if (!SUPPORTS_OTA.includes(platform) || window.location.hostname === "localhost") {
57
+ log.info("skipping updater", {
58
+ platform,
59
+ hostname: window.location.hostname
60
+ }, {
61
+ F: __dxlog_file,
62
+ L: 55,
63
+ S: this,
64
+ C: (f, a) => f(...a)
65
+ });
66
+ return;
67
+ }
68
+ const { invoke } = yield* Capability.get(Capabilities.OperationInvoker);
69
+ const action = Effect.gen(function* () {
70
+ log.info("checking for updates", void 0, {
71
+ F: __dxlog_file,
72
+ L: 63,
73
+ S: this,
74
+ C: (f, a) => f(...a)
75
+ });
76
+ const update = yield* Effect.promise(() => check2());
77
+ if (!update) {
78
+ log.info("no update available", void 0, {
79
+ F: __dxlog_file,
80
+ L: 66,
81
+ S: this,
82
+ C: (f, a) => f(...a)
83
+ });
84
+ return;
85
+ }
86
+ log.info("update check complete", {
87
+ available: update.available,
88
+ currentVersion: update.currentVersion,
89
+ version: update.version,
90
+ date: update.date,
91
+ body: update.body
92
+ }, {
93
+ F: __dxlog_file,
94
+ L: 69,
95
+ S: this,
96
+ C: (f, a) => f(...a)
97
+ });
98
+ if (update.available) {
99
+ log.info("update available, starting download", {
100
+ version: update.version
101
+ }, {
102
+ F: __dxlog_file,
103
+ L: 77,
104
+ S: this,
105
+ C: (f, a) => f(...a)
106
+ });
107
+ let downloaded = 0;
108
+ let contentLength = 0;
109
+ const handleDownload = Match.type().pipe(Match.when({
110
+ event: "Started"
111
+ }, (event) => {
112
+ contentLength = event.data.contentLength ?? 0;
113
+ log.info("download started", {
114
+ contentLength
115
+ }, {
116
+ F: __dxlog_file,
117
+ L: 84,
118
+ S: this,
119
+ C: (f, a) => f(...a)
120
+ });
121
+ }), Match.when({
122
+ event: "Progress"
123
+ }, (event) => {
124
+ downloaded += event.data.chunkLength;
125
+ log.verbose("download progress", {
126
+ downloaded,
127
+ contentLength
128
+ }, {
129
+ F: __dxlog_file,
130
+ L: 88,
131
+ S: this,
132
+ C: (f, a) => f(...a)
133
+ });
134
+ }), Match.when({
135
+ event: "Finished"
136
+ }, () => {
137
+ log.info("download completed", void 0, {
138
+ F: __dxlog_file,
139
+ L: 91,
140
+ S: this,
141
+ C: (f, a) => f(...a)
142
+ });
143
+ }), Match.exhaustive);
144
+ const downloadSuccess = yield* Effect.promise(() => downloadAndInstall(update, handleDownload));
145
+ if (downloadSuccess) {
146
+ yield* invoke(LayoutOperation.AddToast, {
147
+ id: `${meta.id}.update-ready`,
148
+ title: [
149
+ "update ready label",
150
+ {
151
+ ns: meta.id
152
+ }
153
+ ],
154
+ description: [
155
+ "update ready description",
156
+ {
157
+ ns: meta.id
158
+ }
159
+ ],
160
+ duration: Infinity,
161
+ actionLabel: [
162
+ "update label",
163
+ {
164
+ ns: meta.id
165
+ }
166
+ ],
167
+ actionAlt: [
168
+ "update alt",
169
+ {
170
+ ns: meta.id
171
+ }
172
+ ],
173
+ onAction: () => relaunch()
174
+ });
175
+ }
176
+ }
177
+ });
178
+ const fiber = yield* action.pipe(Effect.repeat(Schedule.fixed(Duration.hours(1))), Effect.forkDaemon);
179
+ log.info("updater module initialized, update check scheduled", void 0, {
180
+ F: __dxlog_file,
181
+ L: 114,
182
+ S: this,
183
+ C: (f, a) => f(...a)
184
+ });
185
+ return Capability.contributes(Capabilities.Null, null, () => Effect.sync(() => Effect.runSync(Fiber.interrupt(fiber))));
186
+ }));
187
+ export {
188
+ updater_default as default
189
+ };
190
+ //# sourceMappingURL=updater-XFTSQ4BS.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/updater/updater.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type } from '@tauri-apps/plugin-os';\nimport { relaunch } from '@tauri-apps/plugin-process';\nimport * as Updater from '@tauri-apps/plugin-updater';\nimport * as Duration from 'effect/Duration';\nimport * as Effect from 'effect/Effect';\nimport * as Fiber from 'effect/Fiber';\nimport * as Match from 'effect/Match';\nimport * as Schedule from 'effect/Schedule';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { log } from '@dxos/log';\n\nimport { meta } from '../../meta';\n\nconst SUPPORTS_OTA = ['linux', 'macos', 'windows'];\n\n/**\n * Safely check for updates with error logging.\n */\nconst check = async (): Promise<Updater.Update | null> => {\n try {\n return await Updater.check();\n } catch (error) {\n log.error('failed to check for updates', { error });\n return null;\n }\n};\n\n/**\n * Safely download and install update with error logging.\n */\nconst downloadAndInstall = async (\n update: Updater.Update,\n handleDownload: (event: Updater.DownloadEvent) => void,\n): Promise<boolean> => {\n try {\n await update.downloadAndInstall(handleDownload);\n return true;\n } catch (error) {\n log.error('failed to download and install update', { error });\n return false;\n }\n};\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n // Skip updates if not supported or in dev mode.\n const platform = type();\n if (!SUPPORTS_OTA.includes(platform) || window.location.hostname === 'localhost') {\n log.info('skipping updater', { platform, hostname: window.location.hostname });\n return;\n }\n\n const { invoke } = yield* Capability.get(Capabilities.OperationInvoker);\n\n // https://tauri.app/plugin/updater/#checking-for-updates\n const action = Effect.gen(function* () {\n log.info('checking for updates');\n const update = yield* Effect.promise(() => check());\n if (!update) {\n log.info('no update available');\n return;\n }\n log.info('update check complete', {\n available: update.available,\n currentVersion: update.currentVersion,\n version: update.version,\n date: update.date,\n body: update.body,\n });\n if (update.available) {\n log.info('update available, starting download', { version: update.version });\n let downloaded = 0;\n let contentLength = 0;\n\n const handleDownload = Match.type<Updater.DownloadEvent>().pipe(\n Match.when({ event: 'Started' }, (event) => {\n contentLength = event.data.contentLength ?? 0;\n log.info('download started', { contentLength });\n }),\n Match.when({ event: 'Progress' }, (event) => {\n downloaded += event.data.chunkLength;\n log.verbose('download progress', { downloaded, contentLength });\n }),\n Match.when({ event: 'Finished' }, () => {\n log.info('download completed');\n }),\n Match.exhaustive,\n );\n\n const downloadSuccess = yield* Effect.promise(() => downloadAndInstall(update, handleDownload));\n\n if (downloadSuccess) {\n yield* invoke(LayoutOperation.AddToast, {\n id: `${meta.id}.update-ready`,\n title: ['update ready label', { ns: meta.id }],\n description: ['update ready description', { ns: meta.id }],\n duration: Infinity,\n actionLabel: ['update label', { ns: meta.id }],\n actionAlt: ['update alt', { ns: meta.id }],\n onAction: () => relaunch(),\n });\n }\n }\n });\n\n // Run immediately on startup, then repeat every hour.\n const fiber = yield* action.pipe(Effect.repeat(Schedule.fixed(Duration.hours(1))), Effect.forkDaemon);\n log.info('updater module initialized, update check scheduled');\n\n return Capability.contributes(Capabilities.Null, null, () =>\n Effect.sync(() => Effect.runSync(Fiber.interrupt(fiber))),\n );\n }),\n);\n"],
5
+ "mappings": ";;;;;AAIA,SAASA,YAAY;AACrB,SAASC,gBAAgB;AACzB,YAAYC,aAAa;AACzB,YAAYC,cAAc;AAC1B,YAAYC,YAAY;AACxB,YAAYC,WAAW;AACvB,YAAYC,WAAW;AACvB,YAAYC,cAAc;AAE1B,SAASC,cAAcC,kBAAkB;AACzC,SAASC,uBAAuB;AAChC,SAASC,WAAW;;AAIpB,IAAMC,eAAe;EAAC;EAAS;EAAS;;AAKxC,IAAMC,SAAQ,YAAA;AACZ,MAAI;AACF,WAAO,MAAcA,cAAK;EAC5B,SAASC,OAAO;AACdC,QAAID,MAAM,+BAA+B;MAAEA;IAAM,GAAA;;;;;;AACjD,WAAO;EACT;AACF;AAKA,IAAME,qBAAqB,OACzBC,QACAC,mBAAAA;AAEA,MAAI;AACF,UAAMD,OAAOD,mBAAmBE,cAAAA;AAChC,WAAO;EACT,SAASJ,OAAO;AACdC,QAAID,MAAM,yCAAyC;MAAEA;IAAM,GAAA;;;;;;AAC3D,WAAO;EACT;AACF;AAEA,IAAA,kBAAeK,WAAWC,WACjBC,kBAAW,aAAA;AAEhB,QAAMC,WAAWC,KAAAA;AACjB,MAAI,CAACX,aAAaY,SAASF,QAAAA,KAAaG,OAAOC,SAASC,aAAa,aAAa;AAChFZ,QAAIa,KAAK,oBAAoB;MAAEN;MAAUK,UAAUF,OAAOC,SAASC;IAAS,GAAA;;;;;;AAC5E;EACF;AAEA,QAAM,EAAEE,OAAM,IAAK,OAAOV,WAAWW,IAAIC,aAAaC,gBAAgB;AAGtE,QAAMC,SAAgBC,WAAI,aAAA;AACxBnB,QAAIa,KAAK,wBAAA,QAAA;;;;;;AACT,UAAMX,SAAS,OAAckB,eAAQ,MAAMtB,OAAAA,CAAAA;AAC3C,QAAI,CAACI,QAAQ;AACXF,UAAIa,KAAK,uBAAA,QAAA;;;;;;AACT;IACF;AACAb,QAAIa,KAAK,yBAAyB;MAChCQ,WAAWnB,OAAOmB;MAClBC,gBAAgBpB,OAAOoB;MACvBC,SAASrB,OAAOqB;MAChBC,MAAMtB,OAAOsB;MACbC,MAAMvB,OAAOuB;IACf,GAAA;;;;;;AACA,QAAIvB,OAAOmB,WAAW;AACpBrB,UAAIa,KAAK,uCAAuC;QAAEU,SAASrB,OAAOqB;MAAQ,GAAA;;;;;;AAC1E,UAAIG,aAAa;AACjB,UAAIC,gBAAgB;AAEpB,YAAMxB,iBAAuBK,WAAI,EAA0BoB,KACnDC,WAAK;QAAEC,OAAO;MAAU,GAAG,CAACA,UAAAA;AAChCH,wBAAgBG,MAAMC,KAAKJ,iBAAiB;AAC5C3B,YAAIa,KAAK,oBAAoB;UAAEc;QAAc,GAAA;;;;;;MAC/C,CAAA,GACME,WAAK;QAAEC,OAAO;MAAW,GAAG,CAACA,UAAAA;AACjCJ,sBAAcI,MAAMC,KAAKC;AACzBhC,YAAIiC,QAAQ,qBAAqB;UAAEP;UAAYC;QAAc,GAAA;;;;;;MAC/D,CAAA,GACME,WAAK;QAAEC,OAAO;MAAW,GAAG,MAAA;AAChC9B,YAAIa,KAAK,sBAAA,QAAA;;;;;;MACX,CAAA,GACMqB,gBAAU;AAGlB,YAAMC,kBAAkB,OAAcf,eAAQ,MAAMnB,mBAAmBC,QAAQC,cAAAA,CAAAA;AAE/E,UAAIgC,iBAAiB;AACnB,eAAOrB,OAAOsB,gBAAgBC,UAAU;UACtCC,IAAI,GAAGC,KAAKD,EAAE;UACdE,OAAO;YAAC;YAAsB;cAAEC,IAAIF,KAAKD;YAAG;;UAC5CI,aAAa;YAAC;YAA4B;cAAED,IAAIF,KAAKD;YAAG;;UACxDK,UAAUC;UACVC,aAAa;YAAC;YAAgB;cAAEJ,IAAIF,KAAKD;YAAG;;UAC5CQ,WAAW;YAAC;YAAc;cAAEL,IAAIF,KAAKD;YAAG;;UACxCS,UAAU,MAAMC,SAAAA;QAClB,CAAA;MACF;IACF;EACF,CAAA;AAGA,QAAMC,QAAQ,OAAO/B,OAAOU,KAAYsB,cAAgBC,eAAeC,eAAM,CAAA,CAAA,CAAA,GAAaC,iBAAU;AACpGrD,MAAIa,KAAK,sDAAA,QAAA;;;;;;AAET,SAAOT,WAAWkD,YAAYtC,aAAauC,MAAM,MAAM,MAC9CC,YAAK,MAAaC,eAAcC,gBAAUT,KAAAA,CAAAA,CAAAA,CAAAA;AAErD,CAAA,CAAA;",
6
+ "names": ["type", "relaunch", "Updater", "Duration", "Effect", "Fiber", "Match", "Schedule", "Capabilities", "Capability", "LayoutOperation", "log", "SUPPORTS_OTA", "check", "error", "log", "downloadAndInstall", "update", "handleDownload", "Capability", "makeModule", "fnUntraced", "platform", "type", "includes", "window", "location", "hostname", "info", "invoke", "get", "Capabilities", "OperationInvoker", "action", "gen", "promise", "available", "currentVersion", "version", "date", "body", "downloaded", "contentLength", "pipe", "when", "event", "data", "chunkLength", "verbose", "exhaustive", "downloadSuccess", "LayoutOperation", "AddToast", "id", "meta", "title", "ns", "description", "duration", "Infinity", "actionLabel", "actionAlt", "onAction", "relaunch", "fiber", "repeat", "fixed", "hours", "forkDaemon", "contributes", "Null", "sync", "runSync", "interrupt"]
7
+ }
@@ -1,22 +1,22 @@
1
1
  // src/capabilities/window/window.ts
2
2
  import { getCurrentWindow } from "@tauri-apps/api/window";
3
3
  import * as Effect from "effect/Effect";
4
- import { Capability, Common } from "@dxos/app-framework";
4
+ import { Capabilities, Capability } from "@dxos/app-framework";
5
5
  var window_default = Capability.makeModule(Effect.fnUntraced(function* () {
6
6
  const appWindow = getCurrentWindow();
7
7
  const cleanupDragRegions = setupWindowDrag(appWindow);
8
- return Capability.contributes(Common.Capability.Null, null, Effect.fnUntraced(function* () {
8
+ return Capability.contributes(Capabilities.Null, null, Effect.fnUntraced(function* () {
9
9
  cleanupDragRegions();
10
10
  }));
11
11
  }));
12
- var INTERACTIVE_SELECTORS = '.app-no-drag, button, a, input, select, textarea, [role="button"], [role="menuitem"]';
12
+ var INTERACTIVE_SELECTORS = '.dx-app-no-drag, button, a, input, select, textarea, [role="button"], [role="menuitem"]';
13
13
  var setupWindowDrag = (appWindow) => {
14
14
  const handleMouseDown = (event) => {
15
15
  const target = event.target;
16
16
  if (!target) {
17
17
  return;
18
18
  }
19
- const dragElement = target.closest(".app-drag");
19
+ const dragElement = target.closest(".dx-app-drag");
20
20
  if (!dragElement) {
21
21
  return;
22
22
  }
@@ -35,4 +35,4 @@ var setupWindowDrag = (appWindow) => {
35
35
  export {
36
36
  window_default as default
37
37
  };
38
- //# sourceMappingURL=window-JDFVLF4U.mjs.map
38
+ //# sourceMappingURL=window-GKYYTCEI.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/window/window.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { getCurrentWindow } from '@tauri-apps/api/window';\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\n\n/**\n * Window capability module.\n * Sets up window drag regions for Tauri windows.\n * Note: Window state persistence (size/position) is handled on the Rust side\n * in src-tauri/src/window_state.rs for instant restoration on startup.\n */\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const appWindow = getCurrentWindow();\n\n // Set up drag regions for window dragging.\n const cleanupDragRegions = setupWindowDrag(appWindow);\n\n return Capability.contributes(\n Capabilities.Null,\n null,\n Effect.fnUntraced(function* () {\n cleanupDragRegions();\n }),\n );\n }),\n);\n\n/**\n * Interactive element selectors that should not trigger window dragging.\n */\nconst INTERACTIVE_SELECTORS = '.dx-app-no-drag, button, a, input, select, textarea, [role=\"button\"], [role=\"menuitem\"]';\n\n/**\n * Sets up window drag regions.\n *\n * Tauri 2.0 does not support the `-webkit-app-region` CSS property with overlay titlebars.\n * This uses the Tauri window API to enable dragging on elements with the `dx-app-drag` class.\n */\nconst setupWindowDrag = (appWindow: ReturnType<typeof getCurrentWindow>): (() => void) => {\n const handleMouseDown = (event: MouseEvent) => {\n const target = event.target as Element | null;\n if (!target) {\n return;\n }\n\n // Check if the click target or any ancestor has the dx-app-drag class.\n const dragElement = target.closest('.dx-app-drag');\n if (!dragElement) {\n return;\n }\n\n // Don't trigger drag on interactive elements within the drag region.\n const interactiveElement = target.closest(INTERACTIVE_SELECTORS);\n if (interactiveElement && dragElement.contains(interactiveElement)) {\n return;\n }\n\n event.preventDefault();\n void appWindow.startDragging();\n };\n\n document.addEventListener('mousedown', handleMouseDown);\n\n return () => {\n document.removeEventListener('mousedown', handleMouseDown);\n };\n};\n"],
5
+ "mappings": ";AAIA,SAASA,wBAAwB;AACjC,YAAYC,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AAQzC,IAAA,iBAAeC,WAAWC,WACjBC,kBAAW,aAAA;AAChB,QAAMC,YAAYC,iBAAAA;AAGlB,QAAMC,qBAAqBC,gBAAgBH,SAAAA;AAE3C,SAAOH,WAAWO,YAChBC,aAAaC,MACb,MACOP,kBAAW,aAAA;AAChBG,uBAAAA;EACF,CAAA,CAAA;AAEJ,CAAA,CAAA;AAMF,IAAMK,wBAAwB;AAQ9B,IAAMJ,kBAAkB,CAACH,cAAAA;AACvB,QAAMQ,kBAAkB,CAACC,UAAAA;AACvB,UAAMC,SAASD,MAAMC;AACrB,QAAI,CAACA,QAAQ;AACX;IACF;AAGA,UAAMC,cAAcD,OAAOE,QAAQ,cAAA;AACnC,QAAI,CAACD,aAAa;AAChB;IACF;AAGA,UAAME,qBAAqBH,OAAOE,QAAQL,qBAAAA;AAC1C,QAAIM,sBAAsBF,YAAYG,SAASD,kBAAAA,GAAqB;AAClE;IACF;AAEAJ,UAAMM,eAAc;AACpB,SAAKf,UAAUgB,cAAa;EAC9B;AAEAC,WAASC,iBAAiB,aAAaV,eAAAA;AAEvC,SAAO,MAAA;AACLS,aAASE,oBAAoB,aAAaX,eAAAA;EAC5C;AACF;",
6
+ "names": ["getCurrentWindow", "Effect", "Capabilities", "Capability", "Capability", "makeModule", "fnUntraced", "appWindow", "getCurrentWindow", "cleanupDragRegions", "setupWindowDrag", "contributes", "Capabilities", "Null", "INTERACTIVE_SELECTORS", "handleMouseDown", "event", "target", "dragElement", "closest", "interactiveElement", "contains", "preventDefault", "startDragging", "document", "addEventListener", "removeEventListener"]
7
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"NativePlugin.d.ts","sourceRoot":"","sources":["../../../src/NativePlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAU,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAOrD,eAAO,MAAM,YAAY,4BAkBxB,CAAC"}
1
+ {"version":3,"file":"NativePlugin.d.ts","sourceRoot":"","sources":["../../../src/NativePlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAoB,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAQ/D,eAAO,MAAM,YAAY,4BAkBxB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import * as Effect from 'effect/Effect';
2
- import { Capability, Common } from '@dxos/app-framework';
3
- export type OllamaCapabilities = Capability.Capability<typeof Common.Capability.AiModelResolver>;
4
- declare const _default: (props?: [] | undefined) => Effect.Effect<OllamaCapabilities, Error, Capability.Service>;
2
+ import { Capability } from '@dxos/app-framework';
3
+ import { AppCapabilities } from '@dxos/app-toolkit';
4
+ export type OllamaCapabilities = Capability.Capability<typeof AppCapabilities.AiModelResolver>;
5
+ declare const _default: (props: []) => Effect.Effect<OllamaCapabilities, Error, Capability.Service>;
5
6
  export default _default;
6
7
  //# sourceMappingURL=ollama.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ollama.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/ollama/ollama.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAMzD,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,UAAU,CAAC,OAAO,MAAM,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;;AAEjG,wBAeE"}
1
+ {"version":3,"file":"ollama.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/ollama/ollama.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAMpD,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,eAAe,CAAC,CAAC;;AAE/F,wBAeE"}
@@ -1,5 +1,5 @@
1
1
  import * as Effect from 'effect/Effect';
2
2
  import { Capability } from '@dxos/app-framework';
3
- declare const _default: (props?: void | undefined) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<null>> | undefined, Error, Capability.Service>;
3
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<null>> | undefined, Error, Capability.Service>;
4
4
  export default _default;
5
5
  //# sourceMappingURL=updater.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"updater.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/updater/updater.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC,OAAO,EAAE,UAAU,EAAU,MAAM,qBAAqB,CAAC;;AAOzD,wBA4DE"}
1
+ {"version":3,"file":"updater.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/updater/updater.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAoC/D,wBAsEE"}
@@ -6,6 +6,6 @@ import { Capability } from '@dxos/app-framework';
6
6
  * Note: Window state persistence (size/position) is handled on the Rust side
7
7
  * in src-tauri/src/window_state.rs for instant restoration on startup.
8
8
  */
9
- declare const _default: (props?: void | undefined) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<null>>, never, never>;
9
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<null>>, never, never>;
10
10
  export default _default;
11
11
  //# sourceMappingURL=window.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"window.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/window/window.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAU,MAAM,qBAAqB,CAAC;AAEzD;;;;;GAKG;;AACH,wBAeE"}
1
+ {"version":3,"file":"window.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/window/window.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE/D;;;;;GAKG;;AACH,wBAeE"}