@decido/shell 4.0.2 → 4.0.3

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 (37) hide show
  1. package/dist/CenterComposite-RPEGBKQU.mjs +1697 -0
  2. package/dist/DebugPanel-KEKDMHDN.mjs +14 -0
  3. package/dist/MorphShell-FKDBB7E5.mjs +14 -0
  4. package/dist/PlaygroundAppSidebar-ALYJJGAO.mjs +9 -0
  5. package/dist/PlaygroundChat-MI2KXMK6.mjs +15 -0
  6. package/dist/PlaygroundTerminal-5AV4BJAI.mjs +7 -0
  7. package/dist/PluginSandbox-WMNAUQOJ.mjs +188 -0
  8. package/dist/ReactFlowEditor-RTF2652X.mjs +3574 -0
  9. package/dist/ReactFlowEditor-ZW5MCN5Y.css +561 -0
  10. package/dist/TimelineEditor-N4HRMHTB.mjs +226 -0
  11. package/dist/WidgetSlotPanel-KJI4CHHD.mjs +11 -0
  12. package/dist/chunk-2YMI4N5I.mjs +2004 -0
  13. package/dist/chunk-3BZX7LF2.mjs +139 -0
  14. package/dist/chunk-3P4P3M54.mjs +136 -0
  15. package/dist/chunk-F3OTFHNO.mjs +40 -0
  16. package/dist/chunk-IMHORBTL.mjs +48 -0
  17. package/dist/chunk-JF5QSJYT.mjs +295 -0
  18. package/dist/chunk-LWMMFTJC.mjs +382 -0
  19. package/dist/chunk-MSVEFEXE.mjs +179 -0
  20. package/dist/chunk-OCHGY2MN.mjs +1662 -0
  21. package/dist/chunk-PMYAM764.mjs +813 -0
  22. package/dist/chunk-Q64KZXPK.mjs +43 -0
  23. package/dist/chunk-QHQW2HMU.mjs +155 -0
  24. package/dist/chunk-RWZ4BOIN.mjs +385 -0
  25. package/dist/chunk-UHT6FIYF.mjs +195 -0
  26. package/dist/chunk-UJCSKKID.mjs +30 -0
  27. package/dist/chunk-V3CYNPGL.mjs +8758 -0
  28. package/dist/chunk-VBPGEFNM.mjs +2381 -0
  29. package/dist/chunk-XMSU6UWD.mjs +158 -0
  30. package/dist/chunk-ZCCCBHE6.mjs +55 -0
  31. package/dist/index.css +561 -0
  32. package/dist/index.js +65130 -0
  33. package/dist/index.mjs +40248 -0
  34. package/dist/useIntentLens-LEQCAXCK.mjs +13 -0
  35. package/dist/useSuggestionsStore-4L2AIZ2D.mjs +7 -0
  36. package/dist/wasm-QFXGEYGP.mjs +81 -0
  37. package/package.json +17 -18
@@ -0,0 +1,13 @@
1
+ import {
2
+ INTENT_PATTERNS,
3
+ getIntentPatterns,
4
+ registerIntentPattern,
5
+ useIntentLens
6
+ } from "./chunk-QHQW2HMU.mjs";
7
+ import "./chunk-UJCSKKID.mjs";
8
+ export {
9
+ INTENT_PATTERNS,
10
+ getIntentPatterns,
11
+ registerIntentPattern,
12
+ useIntentLens
13
+ };
@@ -0,0 +1,7 @@
1
+ import {
2
+ useSuggestionsStore
3
+ } from "./chunk-F3OTFHNO.mjs";
4
+ import "./chunk-UJCSKKID.mjs";
5
+ export {
6
+ useSuggestionsStore
7
+ };
@@ -0,0 +1,81 @@
1
+ import "./chunk-UJCSKKID.mjs";
2
+
3
+ // ../sdk/src/wasm.ts
4
+ import { useEffect, useState, useCallback, useRef } from "react";
5
+ var tauriInvoke = null;
6
+ async function getInvoke() {
7
+ if (!tauriInvoke) {
8
+ try {
9
+ const mod = await import("@tauri-apps/api/core");
10
+ tauriInvoke = mod.invoke;
11
+ } catch {
12
+ throw new Error(
13
+ "[WASM Bridge] @tauri-apps/api not available. WASM plugins are only supported in the desktop app."
14
+ );
15
+ }
16
+ }
17
+ return tauriInvoke;
18
+ }
19
+ async function runWasmPlugin(name, fn = "run") {
20
+ const invoke = await getInvoke();
21
+ return invoke("run_wasm_plugin", { name, function: fn });
22
+ }
23
+ async function checkWasmPermission(pluginName, permission) {
24
+ const invoke = await getInvoke();
25
+ return invoke("check_plugin_permission", {
26
+ pluginName,
27
+ permission
28
+ });
29
+ }
30
+ async function getWasmManifest(name) {
31
+ const invoke = await getInvoke();
32
+ return invoke("get_wasm_manifest", { name });
33
+ }
34
+ async function onWasmPluginEvent(callback) {
35
+ try {
36
+ const { listen } = await import("@tauri-apps/api/event");
37
+ const unlisten = await listen("wasm-plugin-event", (e) => {
38
+ callback(e.payload);
39
+ });
40
+ return unlisten;
41
+ } catch {
42
+ console.warn("[WASM Bridge] Event listener not available outside Tauri desktop.");
43
+ return () => {
44
+ };
45
+ }
46
+ }
47
+ function useWasmPluginEvents(maxHistory = 50) {
48
+ const [events, setEvents] = useState([]);
49
+ const [lastEvent, setLastEvent] = useState(null);
50
+ const unlistenRef = useRef(null);
51
+ useEffect(() => {
52
+ let cancelled = false;
53
+ onWasmPluginEvent((event) => {
54
+ if (cancelled) return;
55
+ setLastEvent(event);
56
+ setEvents((prev) => [...prev.slice(-(maxHistory - 1)), event]);
57
+ }).then((unlisten) => {
58
+ if (cancelled) {
59
+ unlisten();
60
+ } else {
61
+ unlistenRef.current = unlisten;
62
+ }
63
+ });
64
+ return () => {
65
+ cancelled = true;
66
+ unlistenRef.current?.();
67
+ };
68
+ }, [maxHistory]);
69
+ const clear = useCallback(() => {
70
+ setEvents([]);
71
+ setLastEvent(null);
72
+ }, []);
73
+ return { events, lastEvent, clear };
74
+ }
75
+ export {
76
+ checkWasmPermission,
77
+ getWasmManifest,
78
+ onWasmPluginEvent,
79
+ runWasmPlugin,
80
+ useWasmPluginEvents
81
+ };
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@decido/shell",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "Decido OS Shell — Main facade: UI composition, morphology, auth, overlays, adapters",
5
5
  "main": "./dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
8
8
  ".": {
9
+ "development": "./src/index.ts",
9
10
  "types": "./dist/index.d.ts",
10
11
  "import": "./dist/index.mjs",
11
12
  "require": "./dist/index.js",
@@ -24,8 +25,6 @@
24
25
  "idb-keyval": "^6.2.1",
25
26
  "lucide-react": "^0.370.0",
26
27
  "motion": "^11.16.1",
27
- "react": "^18.3.1",
28
- "react-dom": "^18.3.1",
29
28
  "react-resizable-panels": "^4.7.2",
30
29
  "recharts": "^3.7.0",
31
30
  "socket.io-client": "^4.8.3",
@@ -33,19 +32,19 @@
33
32
  "y-websocket": "^1.5.4",
34
33
  "yjs": "^13.6.29",
35
34
  "zustand": "^4.5.2",
36
- "@decido/core": "4.0.2",
37
- "@decido/commands": "4.0.2",
38
- "@decido/kernel-bridge": "4.0.2",
39
- "@decido/logger": "^4.0.2",
40
- "@decido/sentinel-browser": "4.0.2",
41
- "@decido/canvas-core": "4.0.2",
42
- "@decido/shell-auth": "4.0.2",
43
- "@decido/shell-telemetry": "4.0.2",
44
- "@decido/plugin-engine": "4.0.2",
45
- "@decido/sdk": "4.0.2",
46
- "@decido/chat": "4.0.2",
47
- "@decido/engine": "4.0.2",
48
- "@decido/macia-core": "4.0.2"
35
+ "@decido/canvas-core": "4.0.3",
36
+ "@decido/chat": "4.0.3",
37
+ "@decido/logger": "^4.0.3",
38
+ "@decido/commands": "4.0.3",
39
+ "@decido/core": "4.0.3",
40
+ "@decido/plugin-engine": "4.0.3",
41
+ "@decido/sdk": "4.0.3",
42
+ "@decido/sentinel-browser": "4.0.3",
43
+ "@decido/shell-auth": "4.0.3",
44
+ "@decido/shell-telemetry": "4.0.3",
45
+ "@decido/engine": "4.0.3",
46
+ "@decido/kernel-bridge": "4.0.3",
47
+ "@decido/macia-core": "4.0.3"
49
48
  },
50
49
  "devDependencies": {
51
50
  "@types/react": "^18.2.0",
@@ -56,8 +55,8 @@
56
55
  "typescript": "^5.0.0"
57
56
  },
58
57
  "peerDependencies": {
59
- "react": "^18.2.0",
60
- "react-dom": "^18.2.0"
58
+ "react": "^18.3.1",
59
+ "react-dom": "^18.3.1"
61
60
  },
62
61
  "publishConfig": {
63
62
  "access": "public"