Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/cruel-waves-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@pulse-editor/shared-utils": patch
"@pulse-editor/react-api": patch
---

Rebuild packages
6 changes: 6 additions & 0 deletions .changeset/few-wasps-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@pulse-editor/shared-utils": patch
"@pulse-editor/react-api": patch
---

Fix getwindowid IMC issue
6 changes: 6 additions & 0 deletions .changeset/fruity-goats-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@pulse-editor/shared-utils": patch
"@pulse-editor/react-api": patch
---

Add imc debug message for ignored messages
4 changes: 4 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@
"beige-pandas-rhyme",
"calm-rivers-march",
"chatty-trains-beam",
"cruel-waves-double",
"cruel-zoos-play",
"curvy-places-wash",
"dirty-swans-rescue",
"early-pumas-listen",
"few-wasps-beam",
"fruity-goats-look",
"hot-symbols-fry",
"large-moose-tap",
"lazy-zebras-mate",
Expand All @@ -30,6 +33,7 @@
"sad-tables-join",
"slick-roses-fix",
"social-donkeys-cross",
"stale-groups-poke",
"tender-jeans-occur",
"wicked-spoons-fry"
]
Expand Down
6 changes: 6 additions & 0 deletions .changeset/stale-groups-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@pulse-editor/shared-utils": patch
"@pulse-editor/react-api": patch
---

Add new AI modality
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ node_modules
# misc
.DS_Store
*.pem
*.cert

# local env files
.env*.local
Expand All @@ -22,3 +23,4 @@ node_modules
*.secrets

dist/
.git
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ Pulse Editor
- [Desktop Development](#desktop-development)
- [VSCode Extension Development](#vscode-extension-development)
- [Pulse Editor Extension Development](#pulse-editor-extension-development)
- [Pulse Editor NPM libraries development](#pulse-editor-npm-libraries-development)
- [Versioning](#versioning)

</span>

Expand Down Expand Up @@ -243,3 +245,36 @@ Some of our official extensions are also open-source. Feel free to take examples

- [Pulse Editor Code View](https://github.com/ClayPulse/pulse-editor-code-view)
- [Pulse Editor Terminal](https://github.com/ClayPulse/pulse-editor-terminal)

## Pulse Editor NPM libraries development
### Versioning
Use changeset to version each release of npm library.

Enter/Exit prerelease
```bash
npx changeset pre enter alpha
npx changeset pre exit
```

Add a new version
```bash
npx changeset
```

Commit the new version
```bash
npx changeset version
```

Publish npm libraries
```bash
# Run build before publishing
npm run shared-utils-build && npm run react-api-build
npx changeset publish
```

For developing main client and using recently modified npm libraries without publishing, you can change web/package.json to have the following:
```json
"@pulse-editor/shared-utils": "../npm-packages/shared-utils",
```
Make sure to change back if using published versions.
8 changes: 7 additions & 1 deletion desktop/main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ function createWindow() {
}
// Development launch
else {
win.loadURL("http://localhost:3000");
// Choose either http or https by trying both
if (process.env.HTTPS === "true") {
win.loadURL("https://localhost:3000");
} else {
win.loadURL("http://localhost:3000");
}

win.webContents.openDevTools();
win.webContents.on("did-fail-load", (e, code, desc) => {
win.webContents.reloadIgnoringCache();
Expand Down
26 changes: 26 additions & 0 deletions desktop/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"type": "module",
"scripts": {
"dev": "electron .",
"dev-https": "cross-env HTTPS=true electron .",
"build": "electron-forge package",
"rebuild-native": "electron-rebuild -v 36.1.0"
},
Expand All @@ -21,6 +22,7 @@
"@electron-forge/cli": "^7.8.0",
"@electron/rebuild": "^3.7.2",
"@types/node": "^22",
"cross-env": "^10.0.0",
"electron": "^36.1.0",
"esbuild": "^0.25.3",
"esbuild-register": "^3.6.0"
Expand Down
10 changes: 4 additions & 6 deletions mobile/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- To allow clear text traffic only over localhost, -->
<!-- replace 'android:usesClearTextTraffic="true"' with the following: -->
Expand All @@ -10,8 +10,7 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true"
>
android:usesCleartextTraffic="true">
<activity
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
android:name=".MainActivity"
Expand All @@ -30,8 +29,7 @@
android:authorities="${applicationId}.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" />
</provider>
</application>

Expand All @@ -48,4 +46,4 @@
<!-- Maybe need to remove this storage on Play Store to stay compliant; use this on OA full
version. -->
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
</manifest>
</manifest>
32 changes: 32 additions & 0 deletions npm-packages/react-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# @pulse-editor/react-api

## 0.1.1-alpha.22

### Patch Changes

- Fix getwindowid IMC issue
- Updated dependencies
- @pulse-editor/[email protected]

## 0.1.1-alpha.21

### Patch Changes

- Rebuild packages
- Updated dependencies
- @pulse-editor/[email protected]

## 0.1.1-alpha.20

### Patch Changes

- Add imc debug message for ignored messages
- Updated dependencies
- @pulse-editor/[email protected]

## 0.1.1-alpha.19

### Patch Changes

- Add new AI modality
- Updated dependencies
- @pulse-editor/[email protected]

## 0.1.1-alpha.18

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions npm-packages/react-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pulse-editor/react-api",
"version": "0.1.1-alpha.18",
"version": "0.1.1-alpha.22",
"main": "dist/main.js",
"files": [
"dist"
Expand Down Expand Up @@ -38,7 +38,7 @@
"typescript-eslint": "^8.30.1"
},
"peerDependencies": {
"@pulse-editor/shared-utils": "0.1.1-alpha.18",
"@pulse-editor/shared-utils": "0.1.1-alpha.22",
"react": "^19.0.0",
"react-dom": "^19.0.0"
}
Expand Down
24 changes: 24 additions & 0 deletions npm-packages/shared-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# @pulse-editor/shared-utils

## 0.1.1-alpha.22

### Patch Changes

- Fix getwindowid IMC issue

## 0.1.1-alpha.21

### Patch Changes

- Rebuild packages

## 0.1.1-alpha.20

### Patch Changes

- Add imc debug message for ignored messages

## 0.1.1-alpha.19

### Patch Changes

- Add new AI modality

## 0.1.1-alpha.18

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion npm-packages/shared-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pulse-editor/shared-utils",
"version": "0.1.1-alpha.18",
"version": "0.1.1-alpha.22",
"main": "dist/main.js",
"files": [
"dist"
Expand Down
10 changes: 8 additions & 2 deletions npm-packages/shared-utils/src/imc/inter-module-communication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,16 @@ export class InterModuleCommunication {

this.listener = (event: MessageEvent<IMCMessage>) => {
const messageId = event.data.id;
const type = event.data.type;

if (this.messageRecords?.has(messageId)) {
if (
this.messageRecords?.has(messageId) &&
type !== IMCMessageTypeEnum.GetWindowId
) {
console.warn(
`Duplicate message received with ID: ${messageId}. Ignoring this message.`
`Duplicate message received with ID: ${messageId}. Ignoring this message. Message: ${JSON.stringify(
event.data
)}`
);
return;
}
Expand Down
1 change: 1 addition & 0 deletions npm-packages/shared-utils/src/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export enum IMCMessageTypeEnum {
UseImageGen = "use-image-gen",
UseVideoGen = "use-video-gen",
UseOCR = "use-ocr",
UseMusicGen = "use-music-gen",

/* Extension commands*/
RunExtCommand = "run-ext-command",
Expand Down
Loading
Loading