@dxos/plugin-transformer 0.8.3 → 0.8.4-main.f9ba587
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 +7 -7
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +7 -7
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/components/Voice.stories.d.ts +1 -1
- package/dist/types/src/components/Voice.stories.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +6 -6
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +23 -25
- package/src/TransformerPlugin.tsx +1 -1
- package/src/components/Voice.stories.tsx +1 -1
- package/src/translations.ts +6 -4
- package/dist/lib/node/index.cjs +0 -71
- package/dist/lib/node/index.cjs.map +0 -7
- package/dist/lib/node/meta.json +0 -1
- package/dist/lib/node/types/index.cjs +0 -2
- package/dist/lib/node/types/index.cjs.map +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-transformer",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4-main.f9ba587",
|
|
4
4
|
"description": "Client transformer",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -37,43 +37,41 @@
|
|
|
37
37
|
"@preact-signals/safe-react": "^0.9.0",
|
|
38
38
|
"@preact/signals-core": "^1.9.0",
|
|
39
39
|
"date-fns": "^3.3.1",
|
|
40
|
-
"effect": "
|
|
41
|
-
"@dxos/app-framework": "0.8.
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/echo-schema": "0.8.
|
|
46
|
-
"@dxos/invariant": "0.8.
|
|
47
|
-
"@dxos/live-object": "0.8.
|
|
48
|
-
"@dxos/log": "0.8.
|
|
49
|
-
"@dxos/plugin-client": "0.8.
|
|
50
|
-
"@dxos/plugin-graph": "0.8.
|
|
51
|
-
"@dxos/plugin-space": "0.8.
|
|
52
|
-
"@dxos/react-client": "0.8.
|
|
53
|
-
"@dxos/react-ui-attention": "0.8.
|
|
54
|
-
"@dxos/react-ui-stack": "0.8.
|
|
55
|
-
"@dxos/util": "0.8.
|
|
40
|
+
"effect": "3.16.13",
|
|
41
|
+
"@dxos/app-framework": "0.8.4-main.f9ba587",
|
|
42
|
+
"@dxos/async": "0.8.4-main.f9ba587",
|
|
43
|
+
"@dxos/echo": "0.8.4-main.f9ba587",
|
|
44
|
+
"@dxos/display-name": "0.8.4-main.f9ba587",
|
|
45
|
+
"@dxos/echo-schema": "0.8.4-main.f9ba587",
|
|
46
|
+
"@dxos/invariant": "0.8.4-main.f9ba587",
|
|
47
|
+
"@dxos/live-object": "0.8.4-main.f9ba587",
|
|
48
|
+
"@dxos/log": "0.8.4-main.f9ba587",
|
|
49
|
+
"@dxos/plugin-client": "0.8.4-main.f9ba587",
|
|
50
|
+
"@dxos/plugin-graph": "0.8.4-main.f9ba587",
|
|
51
|
+
"@dxos/plugin-space": "0.8.4-main.f9ba587",
|
|
52
|
+
"@dxos/react-client": "0.8.4-main.f9ba587",
|
|
53
|
+
"@dxos/react-ui-attention": "0.8.4-main.f9ba587",
|
|
54
|
+
"@dxos/react-ui-stack": "0.8.4-main.f9ba587",
|
|
55
|
+
"@dxos/util": "0.8.4-main.f9ba587"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@phosphor-icons/react": "^2.1.5",
|
|
59
58
|
"@types/react": "~18.2.0",
|
|
60
59
|
"@types/react-dom": "~18.2.0",
|
|
61
60
|
"@xenova/transformers": "^2.17.2",
|
|
62
61
|
"react": "~18.2.0",
|
|
63
62
|
"react-dom": "~18.2.0",
|
|
64
63
|
"vite": "5.4.7",
|
|
65
|
-
"@dxos/random": "0.8.
|
|
66
|
-
"@dxos/react-ui
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
64
|
+
"@dxos/random": "0.8.4-main.f9ba587",
|
|
65
|
+
"@dxos/react-ui": "0.8.4-main.f9ba587",
|
|
66
|
+
"@dxos/react-ui-theme": "0.8.4-main.f9ba587",
|
|
67
|
+
"@dxos/storybook-utils": "0.8.4-main.f9ba587"
|
|
69
68
|
},
|
|
70
69
|
"peerDependencies": {
|
|
71
|
-
"@phosphor-icons/react": "^2.1.5",
|
|
72
70
|
"effect": "^3.13.3",
|
|
73
71
|
"react": "~18.2.0",
|
|
74
72
|
"react-dom": "~18.2.0",
|
|
75
|
-
"@dxos/react-ui": "0.8.
|
|
76
|
-
"@dxos/react-ui-theme": "0.8.
|
|
73
|
+
"@dxos/react-ui": "0.8.4-main.f9ba587",
|
|
74
|
+
"@dxos/react-ui-theme": "0.8.4-main.f9ba587"
|
|
77
75
|
},
|
|
78
76
|
"publishConfig": {
|
|
79
77
|
"access": "public"
|
|
@@ -7,7 +7,7 @@ import { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';
|
|
|
7
7
|
|
|
8
8
|
// import { IntentResolver } from './capabilities';
|
|
9
9
|
import { meta } from './meta';
|
|
10
|
-
import translations from './translations';
|
|
10
|
+
import { translations } from './translations';
|
|
11
11
|
|
|
12
12
|
export const TransformerPlugin = () =>
|
|
13
13
|
definePlugin(meta, [
|
package/src/translations.ts
CHANGED
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { type Resource } from '@dxos/react-ui';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
import { meta } from './meta';
|
|
8
|
+
|
|
9
|
+
export const translations = [
|
|
8
10
|
{
|
|
9
11
|
'en-US': {
|
|
10
|
-
[
|
|
12
|
+
[meta.id]: {
|
|
11
13
|
'plugin name': 'Transformers',
|
|
12
14
|
},
|
|
13
15
|
},
|
|
14
16
|
},
|
|
15
|
-
];
|
|
17
|
+
] as const satisfies Resource[];
|
package/dist/lib/node/index.cjs
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var node_exports = {};
|
|
20
|
-
__export(node_exports, {
|
|
21
|
-
TRANSFORMER_PLUGIN: () => TRANSFORMER_PLUGIN,
|
|
22
|
-
TransformerPlugin: () => TransformerPlugin,
|
|
23
|
-
meta: () => meta
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(node_exports);
|
|
26
|
-
var import_app_framework = require("@dxos/app-framework");
|
|
27
|
-
var import_plugin_client = require("@dxos/plugin-client");
|
|
28
|
-
var TRANSFORMER_PLUGIN = "dxos.org/plugin/transformer";
|
|
29
|
-
var meta = {
|
|
30
|
-
id: TRANSFORMER_PLUGIN,
|
|
31
|
-
name: "Transformer",
|
|
32
|
-
description: "Run local transformers.",
|
|
33
|
-
icon: "ph--cpu--regular",
|
|
34
|
-
source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-transformer",
|
|
35
|
-
tags: [
|
|
36
|
-
"labs"
|
|
37
|
-
]
|
|
38
|
-
};
|
|
39
|
-
var translations_default = [
|
|
40
|
-
{
|
|
41
|
-
"en-US": {
|
|
42
|
-
[TRANSFORMER_PLUGIN]: {
|
|
43
|
-
"plugin name": "Transformers"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
];
|
|
48
|
-
var TransformerPlugin = () => (0, import_app_framework.definePlugin)(meta, [
|
|
49
|
-
(0, import_app_framework.defineModule)({
|
|
50
|
-
id: `${meta.id}/module/translations`,
|
|
51
|
-
activatesOn: import_app_framework.Events.SetupTranslations,
|
|
52
|
-
activate: () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.Translations, translations_default)
|
|
53
|
-
}),
|
|
54
|
-
(0, import_app_framework.defineModule)({
|
|
55
|
-
id: `${meta.id}/module/metadata`,
|
|
56
|
-
activatesOn: import_app_framework.Events.SetupMetadata,
|
|
57
|
-
activate: () => []
|
|
58
|
-
}),
|
|
59
|
-
(0, import_app_framework.defineModule)({
|
|
60
|
-
id: `${meta.id}/module/schema`,
|
|
61
|
-
activatesOn: import_plugin_client.ClientEvents.SetupSchema,
|
|
62
|
-
activate: () => (0, import_app_framework.contributes)(import_plugin_client.ClientCapabilities.Schema, [])
|
|
63
|
-
})
|
|
64
|
-
]);
|
|
65
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
66
|
-
0 && (module.exports = {
|
|
67
|
-
TRANSFORMER_PLUGIN,
|
|
68
|
-
TransformerPlugin,
|
|
69
|
-
meta
|
|
70
|
-
});
|
|
71
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/meta.ts", "../../../src/TransformerPlugin.tsx", "../../../src/translations.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const TRANSFORMER_PLUGIN = 'dxos.org/plugin/transformer';\n\nexport const meta: PluginMeta = {\n id: TRANSFORMER_PLUGIN,\n name: 'Transformer',\n description: 'Run local transformers.',\n icon: 'ph--cpu--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-transformer',\n tags: ['labs'],\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { Capabilities, contributes, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';\n\n// import { IntentResolver } from './capabilities';\nimport { meta } from './meta';\nimport translations from './translations';\n\nexport const TransformerPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/metadata`,\n activatesOn: Events.SetupMetadata,\n activate: () => [],\n }),\n defineModule({\n id: `${meta.id}/module/schema`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () => contributes(ClientCapabilities.Schema, []),\n }),\n // defineModule({\n // id: `${meta.id}/module/intent-resolver`,\n // activatesOn: Events.SetupIntentResolver,\n // activate: IntentResolver,\n // }),\n ]);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { TRANSFORMER_PLUGIN } from './meta';\n\nexport default [\n {\n 'en-US': {\n [TRANSFORMER_PLUGIN]: {\n 'plugin name': 'Transformers',\n },\n },\n },\n];\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;ACIA,2BAA8E;AAC9E,2BAAiD;ADC1C,IAAMA,qBAAqB;AAE3B,IAAMC,OAAmB;EAC9BC,IAAIF;EACJG,MAAM;EACNC,aAAa;EACbC,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;AACT;AETA,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACP,kBAAAA,GAAqB;QACpB,eAAe;MACjB;IACF;EACF;;ADFK,IAAMQ,oBAAoB,UAC/BC,mCAAaR,MAAM;MACjBS,mCAAa;IACXR,IAAI,GAAGD,KAAKC,EAAE;IACdS,aAAaC,4BAAOC;IACpBC,UAAU,UAAMC,kCAAYC,kCAAaC,cAAcC,oBAAAA;EACzD,CAAA;MACAR,mCAAa;IACXR,IAAI,GAAGD,KAAKC,EAAE;IACdS,aAAaC,4BAAOO;IACpBL,UAAU,MAAM,CAAA;EAClB,CAAA;MACAJ,mCAAa;IACXR,IAAI,GAAGD,KAAKC,EAAE;IACdS,aAAaS,kCAAaC;IAC1BP,UAAU,UAAMC,kCAAYO,wCAAmBC,QAAQ,CAAA,CAAE;EAC3D,CAAA;CAMD;",
|
|
6
|
-
"names": ["TRANSFORMER_PLUGIN", "meta", "id", "name", "description", "icon", "source", "tags", "TransformerPlugin", "definePlugin", "defineModule", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "SetupMetadata", "ClientEvents", "SetupSchema", "ClientCapabilities", "Schema"]
|
|
7
|
-
}
|
package/dist/lib/node/meta.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"packages/plugins/plugin-transformer/src/meta.ts":{"bytes":1546,"imports":[],"format":"esm"},"packages/plugins/plugin-transformer/src/translations.ts":{"bytes":1036,"imports":[{"path":"packages/plugins/plugin-transformer/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-transformer/src/TransformerPlugin.tsx":{"bytes":3915,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-transformer/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-transformer/src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"packages/plugins/plugin-transformer/src/index.ts":{"bytes":580,"imports":[{"path":"packages/plugins/plugin-transformer/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-transformer/src/TransformerPlugin.tsx","kind":"import-statement","original":"./TransformerPlugin"}],"format":"esm"},"packages/plugins/plugin-transformer/src/types/index.ts":{"bytes":393,"imports":[],"format":"esm"}},"outputs":{"packages/plugins/plugin-transformer/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3075},"packages/plugins/plugin-transformer/dist/lib/node/index.cjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true}],"exports":["TRANSFORMER_PLUGIN","TransformerPlugin","meta"],"entryPoint":"packages/plugins/plugin-transformer/src/index.ts","inputs":{"packages/plugins/plugin-transformer/src/meta.ts":{"bytesInOutput":304},"packages/plugins/plugin-transformer/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-transformer/src/TransformerPlugin.tsx":{"bytesInOutput":704},"packages/plugins/plugin-transformer/src/translations.ts":{"bytesInOutput":137}},"bytes":1485},"packages/plugins/plugin-transformer/dist/lib/node/types/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-transformer/dist/lib/node/types/index.cjs":{"imports":[],"exports":[],"entryPoint":"packages/plugins/plugin-transformer/src/types/index.ts","inputs":{"packages/plugins/plugin-transformer/src/types/index.ts":{"bytesInOutput":0}},"bytes":35}}}
|