@dxos/plugin-native 0.8.4-main.ae835ea → 0.8.4-main.bcb3aa67d6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/index.mjs +35 -37
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/types/src/NativePlugin.d.ts +2 -1
- package/dist/types/src/NativePlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +4 -3
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/ollama.d.ts +5 -2
- package/dist/types/src/capabilities/ollama.d.ts.map +1 -1
- package/dist/types/src/capabilities/spotlight-listener.d.ts +8 -0
- package/dist/types/src/capabilities/spotlight-listener.d.ts.map +1 -0
- package/dist/types/src/capabilities/updater.d.ts +3 -2
- package/dist/types/src/capabilities/updater.d.ts.map +1 -1
- package/dist/types/src/constants.d.ts +2 -0
- package/dist/types/src/constants.d.ts.map +1 -0
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +5 -5
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +24 -14
- package/src/NativePlugin.tsx +18 -19
- package/src/capabilities/index.ts +4 -4
- package/src/capabilities/ollama.ts +26 -20
- package/src/capabilities/spotlight-listener.ts +58 -0
- package/src/capabilities/updater.ts +101 -58
- package/src/constants.ts +7 -0
- package/src/meta.ts +3 -3
- package/src/translations.ts +5 -5
- package/dist/lib/browser/chunk-SP3MEGKI.mjs +0 -15
- package/dist/lib/browser/chunk-SP3MEGKI.mjs.map +0 -7
- package/dist/lib/browser/ollama-CQE7ZIWL.mjs +0 -76
- package/dist/lib/browser/ollama-CQE7ZIWL.mjs.map +0 -7
- package/dist/lib/browser/updater-SDBPTCXA.mjs +0 -138
- package/dist/lib/browser/updater-SDBPTCXA.mjs.map +0 -7
- package/dist/lib/browser/window-6G542FZL.mjs +0 -34
- package/dist/lib/browser/window-6G542FZL.mjs.map +0 -7
- package/dist/types/src/capabilities/window.d.ts +0 -4
- package/dist/types/src/capabilities/window.d.ts.map +0 -1
- package/src/capabilities/window.ts +0 -49
|
@@ -1,54 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
// src/meta.ts
|
|
2
|
+
import { trim } from "@dxos/util";
|
|
3
|
+
var meta = {
|
|
4
|
+
id: "org.dxos.plugin.native",
|
|
5
|
+
name: "Native",
|
|
6
|
+
description: trim`
|
|
7
|
+
Native platform integration providing desktop-specific features and system-level capabilities.
|
|
8
|
+
Access native file dialogs, notifications, and OS integrations.
|
|
9
|
+
`
|
|
10
|
+
};
|
|
4
11
|
|
|
5
12
|
// src/NativePlugin.tsx
|
|
6
|
-
import {
|
|
13
|
+
import { ActivationEvents, Plugin } from "@dxos/app-framework";
|
|
14
|
+
import { AppPlugin } from "@dxos/app-toolkit";
|
|
7
15
|
import { AssistantEvents } from "@dxos/plugin-assistant";
|
|
8
|
-
|
|
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"));
|
|
16
|
+
import { meta as meta3 } from "#meta";
|
|
14
17
|
|
|
15
18
|
// src/translations.ts
|
|
19
|
+
import { meta as meta2 } from "#meta";
|
|
16
20
|
var translations = [
|
|
17
21
|
{
|
|
18
22
|
"en-US": {
|
|
19
|
-
[
|
|
20
|
-
"update
|
|
21
|
-
"update
|
|
22
|
-
"update
|
|
23
|
-
"update
|
|
23
|
+
[meta2.id]: {
|
|
24
|
+
"update-ready.label": "Ready to update",
|
|
25
|
+
"update-ready.description": "A new version of Composer is available.",
|
|
26
|
+
"update.label": "Update",
|
|
27
|
+
"update.alt": "Relaunch the app to update"
|
|
24
28
|
}
|
|
25
29
|
}
|
|
26
30
|
}
|
|
27
31
|
];
|
|
28
32
|
|
|
29
33
|
// src/NativePlugin.tsx
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
defineModule({
|
|
47
|
-
id: `${meta.id}/module/ollama`,
|
|
48
|
-
activatesOn: AssistantEvents.SetupAiServiceProviders,
|
|
49
|
-
activate: Ollama
|
|
50
|
-
})
|
|
51
|
-
]);
|
|
34
|
+
import { Ollama, SpotlightListener, Updater } from "#capabilities";
|
|
35
|
+
var NativePlugin = Plugin.define(meta3).pipe(AppPlugin.addTranslationsModule({
|
|
36
|
+
translations
|
|
37
|
+
}), Plugin.addModule({
|
|
38
|
+
id: "spotlight-listener",
|
|
39
|
+
activatesOn: ActivationEvents.OperationInvokerReady,
|
|
40
|
+
activate: SpotlightListener
|
|
41
|
+
}), Plugin.addModule({
|
|
42
|
+
id: "updater",
|
|
43
|
+
activatesOn: ActivationEvents.OperationInvokerReady,
|
|
44
|
+
activate: Updater
|
|
45
|
+
}), Plugin.addModule({
|
|
46
|
+
id: "ollama",
|
|
47
|
+
activatesOn: AssistantEvents.SetupAiServiceProviders,
|
|
48
|
+
activate: Ollama
|
|
49
|
+
}), Plugin.make);
|
|
52
50
|
export {
|
|
53
51
|
NativePlugin,
|
|
54
52
|
meta
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport {
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["
|
|
3
|
+
"sources": ["../../../src/meta.ts", "../../../src/NativePlugin.tsx", "../../../src/translations.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", "//\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 { meta } from '#meta';\nimport { translations } from './translations';\n\nimport { Ollama, SpotlightListener, Updater } from '#capabilities';\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": ";AAKA,SAASA,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;AAIf;;;ACVA,SAASC,kBAAkBC,cAAc;AACzC,SAASC,iBAAiB;AAC1B,SAASC,uBAAuB;AAEhC,SAASC,QAAAA,aAAY;;;ACFrB,SAASC,QAAAA,aAAY;AAEd,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,MAAKC,EAAE,GAAG;QACT,sBAAsB;QACtB,4BAA4B;QAC5B,gBAAgB;QAChB,cAAc;MAChB;IACF;EACF;;;;ADPF,SAASC,QAAQC,mBAAmBC,eAAe;AAE5C,IAAMC,eAAeC,OAAOC,OAAOC,KAAAA,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": ["trim", "meta", "id", "name", "description", "trim", "ActivationEvents", "Plugin", "AppPlugin", "AssistantEvents", "meta", "meta", "translations", "meta", "id", "Ollama", "SpotlightListener", "Updater", "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":
|
|
1
|
+
{"inputs":{"src/meta.ts":{"bytes":1392,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/translations.ts":{"bytes":1620,"imports":[{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/NativePlugin.tsx":{"bytes":3468,"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":"#meta","kind":"import-statement","external":true},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"#capabilities","kind":"import-statement","external":true}],"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":3134},"dist/lib/browser/index.mjs":{"imports":[{"path":"@dxos/util","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/plugin-assistant","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true}],"exports":["NativePlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/meta.ts":{"bytesInOutput":293},"src/index.ts":{"bytesInOutput":0},"src/NativePlugin.tsx":{"bytesInOutput":753},"src/translations.ts":{"bytesInOutput":333}},"bytes":1538}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativePlugin.d.ts","sourceRoot":"","sources":["../../../src/NativePlugin.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NativePlugin.d.ts","sourceRoot":"","sources":["../../../src/NativePlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAoB,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAS/D,eAAO,MAAM,YAAY,4BAkBxB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
1
|
+
import { Capability } from '@dxos/app-framework';
|
|
2
|
+
export declare const Ollama: Capability.LazyCapability<[], import("./ollama").OllamaCapabilities, Error>;
|
|
3
|
+
export declare const SpotlightListener: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<null>>, Error>;
|
|
4
|
+
export declare const Updater: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<null>> | undefined, Error>;
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,MAAM,6EAAsD,CAAC;AAC1E,eAAO,MAAM,iBAAiB,8FAA6E,CAAC;AAC5G,eAAO,MAAM,OAAO,0GAAwD,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
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>;
|
|
3
6
|
export default _default;
|
|
4
7
|
//# sourceMappingURL=ollama.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ollama.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/ollama.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ollama.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
/**
|
|
4
|
+
* Listens for spotlight:invoke events from the popover window and dispatches the corresponding operation.
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<null>>, Error, Capability.Service>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=spotlight-listener.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spotlight-listener.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/spotlight-listener.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAU/D;;GAEG;;AACH,wBAsCE"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<null>> | undefined, Error, Capability.Service>;
|
|
3
4
|
export default _default;
|
|
4
5
|
//# sourceMappingURL=updater.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updater.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/updater.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"updater.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/updater.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAqC/D,wBA6EE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/constants.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,oBAAoB,UAAU,CAAC"}
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export declare const meta:
|
|
1
|
+
import { type Plugin } from '@dxos/app-framework';
|
|
2
|
+
export declare const meta: Plugin.Meta;
|
|
3
3
|
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,IAOzB,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { meta } from '
|
|
1
|
+
import { meta } from '#meta';
|
|
2
2
|
export declare const translations: [{
|
|
3
3
|
readonly 'en-US': {
|
|
4
4
|
readonly [meta.id]: {
|
|
5
|
-
readonly 'update
|
|
6
|
-
readonly 'update
|
|
7
|
-
readonly 'update
|
|
8
|
-
readonly 'update
|
|
5
|
+
readonly 'update-ready.label': "Ready to update";
|
|
6
|
+
readonly 'update-ready.description': "A new version of Composer is available.";
|
|
7
|
+
readonly 'update.label': "Update";
|
|
8
|
+
readonly 'update.alt': "Relaunch the app to update";
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE7B,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;;;;UAKR;;EAGwB,CAAC"}
|