@dxos/plugin-native 0.8.4-main.70d3990 → 0.8.4-main.7996785055

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 (60) hide show
  1. package/dist/lib/browser/{chunk-SP3MEGKI.mjs → chunk-C7OU2UF6.mjs} +2 -2
  2. package/dist/lib/browser/chunk-C7OU2UF6.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +33 -30
  4. package/dist/lib/browser/index.mjs.map +4 -4
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/{ollama-CQE7ZIWL.mjs → ollama-QOB3EVAJ.mjs} +14 -15
  7. package/dist/lib/browser/ollama-QOB3EVAJ.mjs.map +7 -0
  8. package/dist/lib/browser/spotlight-listener-YWC4SLQK.mjs +61 -0
  9. package/dist/lib/browser/spotlight-listener-YWC4SLQK.mjs.map +7 -0
  10. package/dist/lib/browser/updater-FDID3Y6C.mjs +199 -0
  11. package/dist/lib/browser/updater-FDID3Y6C.mjs.map +7 -0
  12. package/dist/types/src/NativePlugin.d.ts +2 -1
  13. package/dist/types/src/NativePlugin.d.ts.map +1 -1
  14. package/dist/types/src/capabilities/index.d.ts +3 -3
  15. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  16. package/dist/types/src/capabilities/ollama/index.d.ts +3 -0
  17. package/dist/types/src/capabilities/ollama/index.d.ts.map +1 -0
  18. package/dist/types/src/capabilities/ollama/ollama.d.ts +7 -0
  19. package/dist/types/src/capabilities/ollama/ollama.d.ts.map +1 -0
  20. package/dist/types/src/capabilities/spotlight-listener/index.d.ts +3 -0
  21. package/dist/types/src/capabilities/spotlight-listener/index.d.ts.map +1 -0
  22. package/dist/types/src/capabilities/spotlight-listener/spotlight-listener.d.ts +8 -0
  23. package/dist/types/src/capabilities/spotlight-listener/spotlight-listener.d.ts.map +1 -0
  24. package/dist/types/src/capabilities/updater/index.d.ts +3 -0
  25. package/dist/types/src/capabilities/updater/index.d.ts.map +1 -0
  26. package/dist/types/src/capabilities/updater/updater.d.ts +5 -0
  27. package/dist/types/src/capabilities/updater/updater.d.ts.map +1 -0
  28. package/dist/types/src/constants.d.ts +2 -0
  29. package/dist/types/src/constants.d.ts.map +1 -0
  30. package/dist/types/src/index.d.ts +1 -0
  31. package/dist/types/src/index.d.ts.map +1 -1
  32. package/dist/types/src/meta.d.ts +2 -2
  33. package/dist/types/src/meta.d.ts.map +1 -1
  34. package/dist/types/tsconfig.tsbuildinfo +1 -1
  35. package/package.json +20 -14
  36. package/src/NativePlugin.tsx +16 -18
  37. package/src/capabilities/index.ts +3 -5
  38. package/src/capabilities/ollama/index.ts +7 -0
  39. package/src/capabilities/{ollama.ts → ollama/ollama.ts} +26 -20
  40. package/src/capabilities/spotlight-listener/index.ts +7 -0
  41. package/src/capabilities/spotlight-listener/spotlight-listener.ts +58 -0
  42. package/src/capabilities/updater/index.ts +7 -0
  43. package/src/capabilities/updater/updater.ts +128 -0
  44. package/src/constants.ts +7 -0
  45. package/src/index.ts +1 -0
  46. package/src/meta.ts +3 -3
  47. package/dist/lib/browser/chunk-SP3MEGKI.mjs.map +0 -7
  48. package/dist/lib/browser/ollama-CQE7ZIWL.mjs.map +0 -7
  49. package/dist/lib/browser/updater-SDBPTCXA.mjs +0 -138
  50. package/dist/lib/browser/updater-SDBPTCXA.mjs.map +0 -7
  51. package/dist/lib/browser/window-6G542FZL.mjs +0 -34
  52. package/dist/lib/browser/window-6G542FZL.mjs.map +0 -7
  53. package/dist/types/src/capabilities/ollama.d.ts +0 -4
  54. package/dist/types/src/capabilities/ollama.d.ts.map +0 -1
  55. package/dist/types/src/capabilities/updater.d.ts +0 -4
  56. package/dist/types/src/capabilities/updater.d.ts.map +0 -1
  57. package/dist/types/src/capabilities/window.d.ts +0 -4
  58. package/dist/types/src/capabilities/window.d.ts.map +0 -1
  59. package/src/capabilities/updater.ts +0 -85
  60. package/src/capabilities/window.ts +0 -49
@@ -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-SP3MEGKI.mjs.map
15
+ //# sourceMappingURL=chunk-C7OU2UF6.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 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: '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
+ "mappings": ";AAKA,SAASA,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;AAIf;",
6
+ "names": ["trim", "meta", "id", "name", "description", "trim"]
7
+ }
@@ -1,17 +1,24 @@
1
1
  import {
2
2
  meta
3
- } from "./chunk-SP3MEGKI.mjs";
3
+ } from "./chunk-C7OU2UF6.mjs";
4
+
5
+ // src/capabilities/ollama/index.ts
6
+ import { Capability } from "@dxos/app-framework";
7
+ var Ollama = Capability.lazy("Ollama", () => import("./ollama-QOB3EVAJ.mjs"));
8
+
9
+ // src/capabilities/spotlight-listener/index.ts
10
+ import { Capability as Capability2 } from "@dxos/app-framework";
11
+ var SpotlightListener = Capability2.lazy("SpotlightListener", () => import("./spotlight-listener-YWC4SLQK.mjs"));
12
+
13
+ // src/capabilities/updater/index.ts
14
+ import { Capability as Capability3 } from "@dxos/app-framework";
15
+ var Updater = Capability3.lazy("Updater", () => import("./updater-FDID3Y6C.mjs"));
4
16
 
5
17
  // src/NativePlugin.tsx
6
- import { Capabilities, Events, contributes, defineModule, definePlugin } from "@dxos/app-framework";
18
+ import { ActivationEvents, Plugin } from "@dxos/app-framework";
19
+ import { AppPlugin } from "@dxos/app-toolkit";
7
20
  import { AssistantEvents } from "@dxos/plugin-assistant";
8
21
 
9
- // src/capabilities/index.ts
10
- import { lazy } from "@dxos/app-framework";
11
- var Ollama = lazy(() => import("./ollama-CQE7ZIWL.mjs"));
12
- var Updater = lazy(() => import("./updater-SDBPTCXA.mjs"));
13
- var Window = lazy(() => import("./window-6G542FZL.mjs"));
14
-
15
22
  // src/translations.ts
16
23
  var translations = [
17
24
  {
@@ -27,30 +34,26 @@ var translations = [
27
34
  ];
28
35
 
29
36
  // src/NativePlugin.tsx
30
- var NativePlugin = definePlugin(meta, () => [
31
- defineModule({
32
- id: `${meta.id}/module/translations`,
33
- activatesOn: Events.SetupTranslations,
34
- activate: () => contributes(Capabilities.Translations, translations)
35
- }),
36
- defineModule({
37
- id: `${meta.id}/module/updater`,
38
- activatesOn: Events.DispatcherReady,
39
- activate: Updater
40
- }),
41
- defineModule({
42
- id: `${meta.id}/module/window`,
43
- activatesOn: Events.DispatcherReady,
44
- activate: Window
45
- }),
46
- defineModule({
47
- id: `${meta.id}/module/ollama`,
48
- activatesOn: AssistantEvents.SetupAiServiceProviders,
49
- activate: Ollama
50
- })
51
- ]);
37
+ var NativePlugin = Plugin.define(meta).pipe(AppPlugin.addTranslationsModule({
38
+ translations
39
+ }), Plugin.addModule({
40
+ id: "spotlight-listener",
41
+ activatesOn: ActivationEvents.OperationInvokerReady,
42
+ activate: SpotlightListener
43
+ }), Plugin.addModule({
44
+ id: "updater",
45
+ activatesOn: ActivationEvents.OperationInvokerReady,
46
+ activate: Updater
47
+ }), Plugin.addModule({
48
+ id: "ollama",
49
+ activatesOn: AssistantEvents.SetupAiServiceProviders,
50
+ activate: Ollama
51
+ }), Plugin.make);
52
52
  export {
53
53
  NativePlugin,
54
+ Ollama,
55
+ SpotlightListener,
56
+ Updater,
54
57
  meta
55
58
  };
56
59
  //# sourceMappingURL=index.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/NativePlugin.tsx", "../../../src/capabilities/index.ts", "../../../src/translations.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Capabilities, Events, contributes, defineModule, definePlugin } 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 = 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/updater`,\n activatesOn: Events.DispatcherReady,\n activate: Updater,\n }),\n defineModule({\n id: `${meta.id}/module/window`,\n activatesOn: Events.DispatcherReady,\n activate: Window,\n }),\n defineModule({\n id: `${meta.id}/module/ollama`,\n activatesOn: AssistantEvents.SetupAiServiceProviders,\n activate: Ollama,\n }),\n]);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const Ollama = lazy(() => import('./ollama'));\nexport const Updater = lazy(() => import('./updater'));\nexport const Window = lazy(() => import('./window'));\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,cAAcC,QAAQC,aAAaC,cAAcC,oBAAoB;AAC9E,SAASC,uBAAuB;;;ACDhC,SAASC,YAAY;AAEd,IAAMC,SAASC,KAAK,MAAM,OAAO,uBAAA,CAAA;AACjC,IAAMC,UAAUD,KAAK,MAAM,OAAO,wBAAA,CAAA;AAClC,IAAME,SAASF,KAAK,MAAM,OAAO,uBAAA,CAAA;;;ACAjC,IAAMG,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,KAAKC,EAAE,GAAG;QACT,sBAAsB;QACtB,4BAA4B;QAC5B,gBAAgB;QAChB,cAAc;MAChB;IACF;EACF;;;;AFPK,IAAMC,eAAeC,aAAaC,MAAM,MAAM;EACnDC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,UAAU,MAAMC,YAAYC,aAAaC,cAAcC,YAAAA;EACzD,CAAA;EACAT,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOO;IACpBL,UAAUM;EACZ,CAAA;EACAX,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOO;IACpBL,UAAUO;EACZ,CAAA;EACAZ,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaW,gBAAgBC;IAC7BT,UAAUU;EACZ,CAAA;CACD;",
6
- "names": ["Capabilities", "Events", "contributes", "defineModule", "definePlugin", "AssistantEvents", "lazy", "Ollama", "lazy", "Updater", "Window", "translations", "meta", "id", "NativePlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "DispatcherReady", "Updater", "Window", "AssistantEvents", "SetupAiServiceProviders", "Ollama"]
3
+ "sources": ["../../../src/capabilities/ollama/index.ts", "../../../src/capabilities/spotlight-listener/index.ts", "../../../src/capabilities/updater/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 SpotlightListener = Capability.lazy('SpotlightListener', () => import('./spotlight-listener'));\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 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, SpotlightListener, Updater } 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: 'spotlight-listener',\n activatesOn: ActivationEvents.OperationInvokerReady,\n activate: SpotlightListener,\n }),\n Plugin.addModule({\n id: 'updater',\n activatesOn: ActivationEvents.OperationInvokerReady,\n activate: Updater,\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,oBAAoBC,YAAWC,KAAK,qBAAqB,MAAM,OAAO,mCAAA,CAAA;;;ACFnF,SAASC,cAAAA,mBAAkB;AAEpB,IAAMC,UAAUC,YAAWC,KAAK,WAAW,MAAM,OAAO,wBAAA,CAAA;;;ACF/D,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", "SpotlightListener", "Capability", "lazy", "Capability", "Updater", "Capability", "lazy", "ActivationEvents", "Plugin", "AppPlugin", "AssistantEvents", "translations", "meta", "id", "NativePlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addTranslationsModule", "translations", "addModule", "id", "activatesOn", "ActivationEvents", "OperationInvokerReady", "activate", "SpotlightListener", "Updater", "AssistantEvents", "SetupAiServiceProviders", "Ollama", "make"]
7
7
  }
@@ -1 +1 @@
1
- {"inputs":{"src/meta.ts":{"bytes":1396,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/ollama.ts":{"bytes":10161,"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/AiServiceRouter","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/updater.ts":{"bytes":12408,"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/window.ts":{"bytes":5689,"imports":[{"path":"@tauri-apps/api/window","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/index.ts":{"bytes":1148,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/ollama.ts","kind":"dynamic-import","original":"./ollama"},{"path":"src/capabilities/updater.ts","kind":"dynamic-import","original":"./updater"},{"path":"src/capabilities/window.ts","kind":"dynamic-import","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":3973,"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":549,"imports":[{"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":3100},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-SP3MEGKI.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-assistant","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/ollama-CQE7ZIWL.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/updater-SDBPTCXA.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/window-6G542FZL.mjs","kind":"dynamic-import"}],"exports":["NativePlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/NativePlugin.tsx":{"bytesInOutput":771},"src/capabilities/index.ts":{"bytesInOutput":220},"src/translations.ts":{"bytesInOutput":293}},"bytes":1505},"dist/lib/browser/ollama-CQE7ZIWL.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5092},"dist/lib/browser/ollama-CQE7ZIWL.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/AiServiceRouter","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.ts","inputs":{"src/capabilities/ollama.ts":{"bytesInOutput":2600}},"bytes":2715},"dist/lib/browser/updater-SDBPTCXA.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5657},"dist/lib/browser/updater-SDBPTCXA.mjs":{"imports":[{"path":"dist/lib/browser/chunk-SP3MEGKI.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.ts","inputs":{"src/capabilities/updater.ts":{"bytesInOutput":3611}},"bytes":3777},"dist/lib/browser/chunk-SP3MEGKI.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":665},"dist/lib/browser/chunk-SP3MEGKI.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":293}},"bytes":372},"dist/lib/browser/window-6G542FZL.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2974},"dist/lib/browser/window-6G542FZL.mjs":{"imports":[{"path":"@tauri-apps/api/window","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/window.ts","inputs":{"src/capabilities/window.ts":{"bytesInOutput":1214}},"bytes":1329}}}
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/capabilities/spotlight-listener/spotlight-listener.ts":{"bytes":6873,"imports":[{"path":"effect/Effect","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":"@tauri-apps/api/event","kind":"dynamic-import","external":true},{"path":"@tauri-apps/api/window","kind":"dynamic-import","external":true}],"format":"esm"},"src/capabilities/spotlight-listener/index.ts":{"bytes":962,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/spotlight-listener/spotlight-listener.ts","kind":"dynamic-import","original":"./spotlight-listener"}],"format":"esm"},"src/constants.ts":{"bytes":896,"imports":[],"format":"esm"},"src/meta.ts":{"bytes":1392,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/updater/updater.ts":{"bytes":17640,"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/constants.ts","kind":"import-statement","original":"../../constants"},{"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/index.ts":{"bytes":665,"imports":[{"path":"src/capabilities/ollama/index.ts","kind":"import-statement","original":"./ollama"},{"path":"src/capabilities/spotlight-listener/index.ts","kind":"import-statement","original":"./spotlight-listener"},{"path":"src/capabilities/updater/index.ts","kind":"import-statement","original":"./updater"}],"format":"esm"},"src/translations.ts":{"bytes":1625,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/NativePlugin.tsx":{"bytes":3470,"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":3521},"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/spotlight-listener-YWC4SLQK.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/updater-FDID3Y6C.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","SpotlightListener","Updater","meta"],"entryPoint":"src/index.ts","inputs":{"src/capabilities/ollama/index.ts":{"bytesInOutput":129},"src/capabilities/index.ts":{"bytesInOutput":0},"src/capabilities/spotlight-listener/index.ts":{"bytesInOutput":179},"src/capabilities/updater/index.ts":{"bytesInOutput":148},"src/index.ts":{"bytesInOutput":0},"src/NativePlugin.tsx":{"bytesInOutput":645},"src/translations.ts":{"bytesInOutput":293}},"bytes":1751},"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/spotlight-listener-YWC4SLQK.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3278},"dist/lib/browser/spotlight-listener-YWC4SLQK.mjs":{"imports":[{"path":"effect/Effect","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":"@tauri-apps/api/event","kind":"dynamic-import","external":true},{"path":"@tauri-apps/api/window","kind":"dynamic-import","external":true}],"exports":["default"],"entryPoint":"src/capabilities/spotlight-listener/spotlight-listener.ts","inputs":{"src/capabilities/spotlight-listener/spotlight-listener.ts":{"bytesInOutput":1917}},"bytes":2087},"dist/lib/browser/updater-FDID3Y6C.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":8235},"dist/lib/browser/updater-FDID3Y6C.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":5031},"src/constants.ts":{"bytesInOutput":36}},"bytes":5302},"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}}}
@@ -1,4 +1,4 @@
1
- // src/capabilities/ollama.ts
1
+ // src/capabilities/ollama/ollama.ts
2
2
  import * as FetchHttpClient from "@effect/platform/FetchHttpClient";
3
3
  import * as HttpClient from "@effect/platform/HttpClient";
4
4
  import { Command } from "@tauri-apps/plugin-shell";
@@ -6,18 +6,17 @@ import * as Context from "effect/Context";
6
6
  import * as Effect from "effect/Effect";
7
7
  import * as Layer from "effect/Layer";
8
8
  import * as ManagedRuntime from "effect/ManagedRuntime";
9
- import * as AiServiceRouter from "@dxos/ai/AiServiceRouter";
10
- import { Capabilities, contributes } from "@dxos/app-framework";
9
+ import { OllamaResolver } from "@dxos/ai/resolvers";
10
+ import { Capability } from "@dxos/app-framework";
11
+ import { AppCapabilities } from "@dxos/app-toolkit";
11
12
  import { log } from "@dxos/log";
12
- var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-native/src/capabilities/ollama.ts";
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
- var ollama_default = ((_context) => {
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 contributes(Capabilities.AiModelResolver, OllamaSidecarModelResolver.pipe(Layer.provide(sidecarLayer)), async () => {
18
- await runtime.dispose();
19
- });
20
- });
18
+ return Capability.contributes(AppCapabilities.AiModelResolver, OllamaSidecarModelResolver.pipe(Layer.provide(sidecarLayer)), () => Effect.tryPromise(() => runtime.dispose()));
19
+ }));
21
20
  var OllamaSidecar = class _OllamaSidecar extends Context.Tag("@dxos/plugin-native/OllamaSidecar")() {
22
21
  static layerLive = Layer.scoped(_OllamaSidecar, Effect.gen(function* () {
23
22
  const command = Command.sidecar("sidecar/ollama", [
@@ -34,7 +33,7 @@ var OllamaSidecar = class _OllamaSidecar extends Context.Tag("@dxos/plugin-nativ
34
33
  code
35
34
  }, {
36
35
  F: __dxlog_file,
37
- L: 56,
36
+ L: 62,
38
37
  S: this,
39
38
  C: (f, a) => f(...a)
40
39
  }));
@@ -42,7 +41,7 @@ var OllamaSidecar = class _OllamaSidecar extends Context.Tag("@dxos/plugin-nativ
42
41
  error
43
42
  }, {
44
43
  F: __dxlog_file,
45
- L: 57,
44
+ L: 63,
46
45
  S: this,
47
46
  C: (f, a) => f(...a)
48
47
  }));
@@ -54,7 +53,7 @@ var OllamaSidecar = class _OllamaSidecar extends Context.Tag("@dxos/plugin-nativ
54
53
  pid: child.pid
55
54
  }, {
56
55
  F: __dxlog_file,
57
- L: 64,
56
+ L: 70,
58
57
  S: this,
59
58
  C: (f, a) => f(...a)
60
59
  });
@@ -65,12 +64,12 @@ var OllamaSidecar = class _OllamaSidecar extends Context.Tag("@dxos/plugin-nativ
65
64
  };
66
65
  var OllamaSidecarModelResolver = Layer.unwrapEffect(Effect.gen(function* () {
67
66
  const { endpoint } = yield* OllamaSidecar;
68
- return AiServiceRouter.OllamaResolver({
69
- host: endpoint,
67
+ return OllamaResolver.make({
68
+ endpoint,
70
69
  transformClient: HttpClient.withTracerPropagation(false)
71
70
  });
72
71
  })).pipe(Layer.provide(FetchHttpClient.layer));
73
72
  export {
74
73
  ollama_default as default
75
74
  };
76
- //# sourceMappingURL=ollama-CQE7ZIWL.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,61 @@
1
+ // src/capabilities/spotlight-listener/spotlight-listener.ts
2
+ import * as Effect from "effect/Effect";
3
+ import { Capabilities, Capability } from "@dxos/app-framework";
4
+ import { LayoutOperation } from "@dxos/app-toolkit";
5
+ import { log } from "@dxos/log";
6
+ var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-native/src/capabilities/spotlight-listener/spotlight-listener.ts";
7
+ var spotlight_listener_default = Capability.makeModule(Effect.fnUntraced(function* () {
8
+ const { invokePromise } = yield* Capability.get(Capabilities.OperationInvoker);
9
+ const unlisten = yield* Effect.promise(async () => {
10
+ const { listen } = await import("@tauri-apps/api/event");
11
+ const { getCurrentWindow } = await import("@tauri-apps/api/window");
12
+ return listen("spotlight:invoke", async (event) => {
13
+ const { operation, payload } = event.payload;
14
+ log.info("Received spotlight invoke event", {
15
+ operation,
16
+ payload
17
+ }, {
18
+ F: __dxlog_file,
19
+ L: 30,
20
+ S: this,
21
+ C: (f, a) => f(...a)
22
+ });
23
+ try {
24
+ switch (operation) {
25
+ case "open":
26
+ await invokePromise(LayoutOperation.Open, payload);
27
+ break;
28
+ case "switch-workspace":
29
+ await invokePromise(LayoutOperation.SwitchWorkspace, payload);
30
+ break;
31
+ default:
32
+ log.warn("Unknown spotlight operation", {
33
+ operation
34
+ }, {
35
+ F: __dxlog_file,
36
+ L: 40,
37
+ S: this,
38
+ C: (f, a) => f(...a)
39
+ });
40
+ }
41
+ const mainWindow = getCurrentWindow();
42
+ await mainWindow.show();
43
+ await mainWindow.setFocus();
44
+ } catch (err) {
45
+ log.catch(err, void 0, {
46
+ F: __dxlog_file,
47
+ L: 47,
48
+ S: this,
49
+ C: (f, a) => f(...a)
50
+ });
51
+ }
52
+ });
53
+ });
54
+ return Capability.contributes(Capabilities.Null, null, () => Effect.sync(() => {
55
+ unlisten();
56
+ }));
57
+ }));
58
+ export {
59
+ spotlight_listener_default as default
60
+ };
61
+ //# sourceMappingURL=spotlight-listener-YWC4SLQK.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/spotlight-listener/spotlight-listener.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { log } from '@dxos/log';\n\n// TODO(wittjosiah): Formalize with a stricter schema if we evolve this protocol.\ntype SpotlightInvokePayload = {\n operation: string;\n payload?: Record<string, any>;\n};\n\n/**\n * Listens for spotlight:invoke events from the popover window and dispatches the corresponding operation.\n */\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const { invokePromise } = yield* Capability.get(Capabilities.OperationInvoker);\n\n const unlisten = yield* Effect.promise(async () => {\n const { listen } = await import('@tauri-apps/api/event');\n const { getCurrentWindow } = await import('@tauri-apps/api/window');\n\n return listen<SpotlightInvokePayload>('spotlight:invoke', async (event) => {\n const { operation, payload } = event.payload;\n log.info('Received spotlight invoke event', { operation, payload });\n try {\n switch (operation) {\n case 'open':\n await invokePromise(LayoutOperation.Open, payload as any);\n break;\n case 'switch-workspace':\n await invokePromise(LayoutOperation.SwitchWorkspace, payload as any);\n break;\n default:\n log.warn('Unknown spotlight operation', { operation });\n }\n\n const mainWindow = getCurrentWindow();\n await mainWindow.show();\n await mainWindow.setFocus();\n } catch (err) {\n log.catch(err);\n }\n });\n });\n\n return Capability.contributes(Capabilities.Null, null, () =>\n Effect.sync(() => {\n unlisten();\n }),\n );\n }),\n);\n"],
5
+ "mappings": ";AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,uBAAuB;AAChC,SAASC,WAAW;;AAWpB,IAAA,6BAAeF,WAAWG,WACjBC,kBAAW,aAAA;AAChB,QAAM,EAAEC,cAAa,IAAK,OAAOL,WAAWM,IAAIP,aAAaQ,gBAAgB;AAE7E,QAAMC,WAAW,OAAcC,eAAQ,YAAA;AACrC,UAAM,EAAEC,OAAM,IAAK,MAAM,OAAO,uBAAA;AAChC,UAAM,EAAEC,iBAAgB,IAAK,MAAM,OAAO,wBAAA;AAE1C,WAAOD,OAA+B,oBAAoB,OAAOE,UAAAA;AAC/D,YAAM,EAAEC,WAAWC,QAAO,IAAKF,MAAME;AACrCZ,UAAIa,KAAK,mCAAmC;QAAEF;QAAWC;MAAQ,GAAA;;;;;;AACjE,UAAI;AACF,gBAAQD,WAAAA;UACN,KAAK;AACH,kBAAMR,cAAcJ,gBAAgBe,MAAMF,OAAAA;AAC1C;UACF,KAAK;AACH,kBAAMT,cAAcJ,gBAAgBgB,iBAAiBH,OAAAA;AACrD;UACF;AACEZ,gBAAIgB,KAAK,+BAA+B;cAAEL;YAAU,GAAA;;;;;;QACxD;AAEA,cAAMM,aAAaR,iBAAAA;AACnB,cAAMQ,WAAWC,KAAI;AACrB,cAAMD,WAAWE,SAAQ;MAC3B,SAASC,KAAK;AACZpB,YAAIqB,MAAMD,KAAAA,QAAAA;;;;;;MACZ;IACF,CAAA;EACF,CAAA;AAEA,SAAOtB,WAAWwB,YAAYzB,aAAa0B,MAAM,MAAM,MAC9CC,YAAK,MAAA;AACVlB,aAAAA;EACF,CAAA,CAAA;AAEJ,CAAA,CAAA;",
6
+ "names": ["Effect", "Capabilities", "Capability", "LayoutOperation", "log", "makeModule", "fnUntraced", "invokePromise", "get", "OperationInvoker", "unlisten", "promise", "listen", "getCurrentWindow", "event", "operation", "payload", "info", "Open", "SwitchWorkspace", "warn", "mainWindow", "show", "setFocus", "err", "catch", "contributes", "Null", "sync"]
7
+ }
@@ -0,0 +1,199 @@
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
+
18
+ // src/constants.ts
19
+ var TAURI_LOCALHOST_PORT = "26777";
20
+
21
+ // src/capabilities/updater/updater.ts
22
+ var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-native/src/capabilities/updater/updater.ts";
23
+ var SUPPORTS_OTA = [
24
+ "linux",
25
+ "macos",
26
+ "windows"
27
+ ];
28
+ var check2 = async () => {
29
+ try {
30
+ return await Updater.check();
31
+ } catch (error) {
32
+ log.error("failed to check for updates", {
33
+ error
34
+ }, {
35
+ F: __dxlog_file,
36
+ L: 30,
37
+ S: void 0,
38
+ C: (f, a) => f(...a)
39
+ });
40
+ return null;
41
+ }
42
+ };
43
+ var downloadAndInstall = async (update, handleDownload) => {
44
+ try {
45
+ await update.downloadAndInstall(handleDownload);
46
+ return true;
47
+ } catch (error) {
48
+ log.error("failed to download and install update", {
49
+ error
50
+ }, {
51
+ F: __dxlog_file,
52
+ L: 46,
53
+ S: void 0,
54
+ C: (f, a) => f(...a)
55
+ });
56
+ return false;
57
+ }
58
+ };
59
+ var updater_default = Capability.makeModule(Effect.fnUntraced(function* () {
60
+ const platform = type();
61
+ const isDevServer = window.location.port !== TAURI_LOCALHOST_PORT;
62
+ if (!SUPPORTS_OTA.includes(platform) || isDevServer) {
63
+ log.info("skipping updater", {
64
+ platform,
65
+ port: window.location.port
66
+ }, {
67
+ F: __dxlog_file,
68
+ L: 57,
69
+ S: this,
70
+ C: (f, a) => f(...a)
71
+ });
72
+ return;
73
+ }
74
+ const { invoke } = yield* Capability.get(Capabilities.OperationInvoker);
75
+ const action = Effect.gen(function* () {
76
+ log.info("checking for updates", void 0, {
77
+ F: __dxlog_file,
78
+ L: 66,
79
+ S: this,
80
+ C: (f, a) => f(...a)
81
+ });
82
+ const update = yield* Effect.promise(() => check2());
83
+ if (!update) {
84
+ log.info("no update available", void 0, {
85
+ F: __dxlog_file,
86
+ L: 69,
87
+ S: this,
88
+ C: (f, a) => f(...a)
89
+ });
90
+ return true;
91
+ }
92
+ log.info("update check complete", {
93
+ available: update.available,
94
+ currentVersion: update.currentVersion,
95
+ version: update.version,
96
+ date: update.date,
97
+ body: update.body
98
+ }, {
99
+ F: __dxlog_file,
100
+ L: 72,
101
+ S: this,
102
+ C: (f, a) => f(...a)
103
+ });
104
+ if (update.available) {
105
+ log.info("update available, starting download", {
106
+ version: update.version
107
+ }, {
108
+ F: __dxlog_file,
109
+ L: 80,
110
+ S: this,
111
+ C: (f, a) => f(...a)
112
+ });
113
+ let downloaded = 0;
114
+ let contentLength = 0;
115
+ const handleDownload = Match.type().pipe(Match.when({
116
+ event: "Started"
117
+ }, (event) => {
118
+ contentLength = event.data.contentLength ?? 0;
119
+ log.info("download started", {
120
+ contentLength
121
+ }, {
122
+ F: __dxlog_file,
123
+ L: 87,
124
+ S: this,
125
+ C: (f, a) => f(...a)
126
+ });
127
+ }), Match.when({
128
+ event: "Progress"
129
+ }, (event) => {
130
+ downloaded += event.data.chunkLength;
131
+ log.verbose("download progress", {
132
+ downloaded,
133
+ contentLength
134
+ }, {
135
+ F: __dxlog_file,
136
+ L: 91,
137
+ S: this,
138
+ C: (f, a) => f(...a)
139
+ });
140
+ }), Match.when({
141
+ event: "Finished"
142
+ }, () => {
143
+ log.info("download completed", void 0, {
144
+ F: __dxlog_file,
145
+ L: 94,
146
+ S: this,
147
+ C: (f, a) => f(...a)
148
+ });
149
+ }), Match.exhaustive);
150
+ const downloadSuccess = yield* Effect.promise(() => downloadAndInstall(update, handleDownload));
151
+ if (downloadSuccess) {
152
+ yield* invoke(LayoutOperation.AddToast, {
153
+ id: `${meta.id}.update-ready`,
154
+ title: [
155
+ "update ready label",
156
+ {
157
+ ns: meta.id
158
+ }
159
+ ],
160
+ description: [
161
+ "update ready description",
162
+ {
163
+ ns: meta.id
164
+ }
165
+ ],
166
+ duration: Infinity,
167
+ actionLabel: [
168
+ "update label",
169
+ {
170
+ ns: meta.id
171
+ }
172
+ ],
173
+ actionAlt: [
174
+ "update alt",
175
+ {
176
+ ns: meta.id
177
+ }
178
+ ],
179
+ onAction: () => relaunch()
180
+ });
181
+ return false;
182
+ }
183
+ }
184
+ return true;
185
+ });
186
+ const schedule = Schedule.fixed(Duration.hours(1)).pipe(Schedule.whileInput((keepChecking) => keepChecking));
187
+ const fiber = yield* action.pipe(Effect.repeat(schedule), Effect.forkDaemon);
188
+ log.info("updater module initialized, update check scheduled", void 0, {
189
+ F: __dxlog_file,
190
+ L: 122,
191
+ S: this,
192
+ C: (f, a) => f(...a)
193
+ });
194
+ return Capability.contributes(Capabilities.Null, null, () => Effect.sync(() => Effect.runSync(Fiber.interrupt(fiber))));
195
+ }));
196
+ export {
197
+ updater_default as default
198
+ };
199
+ //# sourceMappingURL=updater-FDID3Y6C.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/updater/updater.ts", "../../../src/constants.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 { TAURI_LOCALHOST_PORT } from '../../constants';\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 const isDevServer = window.location.port !== TAURI_LOCALHOST_PORT;\n if (!SUPPORTS_OTA.includes(platform) || isDevServer) {\n log.info('skipping updater', { platform, port: window.location.port });\n return;\n }\n\n const { invoke } = yield* Capability.get(Capabilities.OperationInvoker);\n\n // https://tauri.app/plugin/updater/#checking-for-updates\n // Returns true to keep checking, false to stop.\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 true;\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 return false;\n }\n }\n return true;\n });\n\n // Run immediately on startup, then repeat every hour. Stop once an update is found.\n const schedule = Schedule.fixed(Duration.hours(1)).pipe(\n Schedule.whileInput((keepChecking: boolean) => keepChecking),\n );\n const fiber = yield* action.pipe(Effect.repeat(schedule), 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", "//\n// Copyright 2025 DXOS.org\n//\n\n/// Stable port for the Tauri localhost asset server in production builds.\n/// Must match LOCALHOST_PORT in src-tauri/src/lib.rs.\nexport const TAURI_LOCALHOST_PORT = '26777';\n"],
5
+ "mappings": "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",
6
+ "names": ["type", "relaunch", "Updater", "Duration", "Effect", "Fiber", "Match", "Schedule", "Capabilities", "Capability", "LayoutOperation", "log", "TAURI_LOCALHOST_PORT", "SUPPORTS_OTA", "check", "error", "log", "downloadAndInstall", "update", "handleDownload", "Capability", "makeModule", "fnUntraced", "platform", "type", "isDevServer", "window", "location", "port", "TAURI_LOCALHOST_PORT", "includes", "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", "schedule", "fixed", "hours", "whileInput", "keepChecking", "fiber", "repeat", "forkDaemon", "contributes", "Null", "sync", "runSync", "interrupt"]
7
+ }
@@ -1,2 +1,3 @@
1
- export declare const NativePlugin: import("@dxos/app-framework").PluginFactory<void>;
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const NativePlugin: Plugin.PluginFactory<void>;
2
3
  //# sourceMappingURL=NativePlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NativePlugin.d.ts","sourceRoot":"","sources":["../../../src/NativePlugin.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY,mDAqBvB,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,4 +1,4 @@
1
- export declare const Ollama: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<any> | import("@dxos/app-framework").AnyCapability[]>>;
2
- export declare const Updater: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<null>> | import("@dxos/app-framework").AnyCapability[]>>;
3
- export declare const Window: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<null>> | import("@dxos/app-framework").AnyCapability[]>>;
1
+ export * from './ollama';
2
+ export * from './spotlight-listener';
3
+ export * from './updater';
4
4
  //# sourceMappingURL=index.d.ts.map