myaiforone 1.1.59 → 1.1.60

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 (2) hide show
  1. package/package.json +1 -1
  2. package/public/home2.html +23 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myaiforone",
3
- "version": "1.1.59",
3
+ "version": "1.1.60",
4
4
  "type": "module",
5
5
  "description": "Routes messages from phone channels to project-specific Claude Code agents",
6
6
  "bin": {
package/public/home2.html CHANGED
@@ -5046,6 +5046,29 @@ function handleHomeFiles(e) {
5046
5046
  e.target.value = '';
5047
5047
  }
5048
5048
 
5049
+ // Ctrl+V / Cmd+V paste of images (e.g. screenshots) — mirrors /ui behavior
5050
+ document.addEventListener('paste', function(e) {
5051
+ // Don't hijack pastes inside non-chat editable fields (e.g. canvas / settings inputs)
5052
+ const target = e.target;
5053
+ if (target && target.tagName === 'INPUT' && target.type !== 'text' && target.type !== 'search') return;
5054
+ const items = e.clipboardData?.items;
5055
+ if (!items) return;
5056
+ const imageFiles = [];
5057
+ for (const item of items) {
5058
+ if (item.type && item.type.startsWith('image/')) {
5059
+ const file = item.getAsFile();
5060
+ if (file) imageFiles.push(file);
5061
+ }
5062
+ }
5063
+ if (imageFiles.length > 0) {
5064
+ e.preventDefault();
5065
+ for (const f of imageFiles) homeFiles.push(f);
5066
+ const zone = document.getElementById('homeFileDropZone');
5067
+ if (zone) zone.classList.add('visible');
5068
+ renderHomeFiles();
5069
+ }
5070
+ });
5071
+
5049
5072
  function renderHomeFiles() {
5050
5073
  const area = document.getElementById('homeFileListArea');
5051
5074
  const btn = document.getElementById('homeClipBtn');