Skip to content

Commit a9092e5

Browse files
committed
Fix polyIMC multi channel handling & any channel would handle all channels under same window (view) ID
1 parent 590257d commit a9092e5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+308
-116
lines changed

.changeset/green-laws-lose.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@pulse-editor/shared-utils": patch
3+
"@pulse-editor/react-api": patch
4+
---
5+
6+
Fix polyIMC any channel would handle all channels under same window (view) ID

.changeset/pre.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"fruity-goats-look",
3737
"full-beans-stop",
3838
"fuzzy-sheep-pay",
39+
"green-laws-lose",
3940
"hot-symbols-fry",
4041
"hot-windows-march",
4142
"large-moose-tap",

desktop/package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

npm-packages/react-api/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @pulse-editor/react-api
22

3+
## 0.1.1-alpha.51
4+
5+
### Patch Changes
6+
7+
- Fix polyIMC any channel would handle all channels under same window (view) ID
8+
- Updated dependencies
9+
- @pulse-editor/shared-utils@0.1.1-alpha.51
10+
311
## 0.1.1-alpha.50
412

513
### Patch Changes

npm-packages/react-api/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pulse-editor/react-api",
3-
"version": "0.1.1-alpha.50",
3+
"version": "0.1.1-alpha.51",
44
"main": "dist/main.js",
55
"files": [
66
"dist"
@@ -21,7 +21,6 @@
2121
"@eslint/js": "^9.25.0",
2222
"@rollup/plugin-babel": "^6.0.4",
2323
"@rollup/plugin-node-resolve": "^16.0.1",
24-
"@rollup/plugin-terser": "^0.4.4",
2524
"@rollup/plugin-typescript": "^12.1.2",
2625
"@types/react": "^19.1.2",
2726
"eslint": "^9.25.0",
@@ -38,8 +37,8 @@
3837
"typescript-eslint": "^8.30.1"
3938
},
4039
"peerDependencies": {
41-
"@pulse-editor/shared-utils": "0.1.1-alpha.50",
40+
"@pulse-editor/shared-utils": "0.1.1-alpha.51",
4241
"react": "^19.0.0",
4342
"react-dom": "^19.0.0"
4443
}
45-
}
44+
}

npm-packages/react-api/rollup.config.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import resolve from "@rollup/plugin-node-resolve";
22
import peerDepsExternal from "rollup-plugin-peer-deps-external";
33
import babel from "@rollup/plugin-babel";
44
import typescript from "@rollup/plugin-typescript";
5-
import terser from "@rollup/plugin-terser";
65

76
// rollup.config.mjs
87
export default {
@@ -12,6 +11,7 @@ export default {
1211
file: "dist/main.js",
1312
format: "es",
1413
exports: "named",
14+
sourcemap: true,
1515
},
1616
],
1717
plugins: [
@@ -29,6 +29,5 @@ export default {
2929
rootDir: "src",
3030
exclude: ["node_modules/**"],
3131
}),
32-
terser(),
3332
],
3433
};

npm-packages/react-api/src/hooks/agent/use-agent-tools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function useAgentTools() {
1212
(senderWindow: Window, message: IMCMessage) => Promise<void>
1313
>();
1414

15-
const { imc } = useIMC(receiverHandlerMap);
15+
const { imc } = useIMC(receiverHandlerMap, "agent-tools");
1616

1717
return { };
1818
}

npm-packages/react-api/src/hooks/agent/use-agents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function useAgents() {
1212
(senderWindow: Window, message: IMCMessage) => Promise<void>
1313
>();
1414

15-
const { imc, isReady } = useIMC(receiverHandlerMap);
15+
const { imc, isReady } = useIMC(receiverHandlerMap, "agents");
1616

1717
async function runAgentMethod(
1818
agentName: string,

npm-packages/react-api/src/hooks/ai-modality/use-image-gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function useImageGen() {
1111
(senderWindow: Window, message: IMCMessage) => Promise<void>
1212
>();
1313

14-
const { imc, isReady } = useIMC(receiverHandlerMap);
14+
const { imc, isReady } = useIMC(receiverHandlerMap, "image-gen");
1515

1616
/**
1717
*

npm-packages/react-api/src/hooks/ai-modality/use-llm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function useLLM() {
1111
(senderWindow: Window, message: IMCMessage) => Promise<void>
1212
>();
1313

14-
const { imc, isReady } = useIMC(receiverHandlerMap);
14+
const { imc, isReady } = useIMC(receiverHandlerMap, "llm");
1515

1616
async function runLLM(
1717
prompt: string,

0 commit comments

Comments
 (0)