uloop-cli 1.1.0 → 1.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uloop-cli",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
4
4
  "//version": "x-release-please-version",
5
5
  "description": "CLI tool for Unity Editor communication via Unity CLI Loop",
6
6
  "main": "dist/cli.bundle.cjs",
@@ -57,7 +57,7 @@
57
57
  "eslint-plugin-prettier": "5.5.5",
58
58
  "eslint-plugin-security": "4.0.0",
59
59
  "jest": "30.3.0",
60
- "knip": "5.87.0",
60
+ "knip": "5.88.0",
61
61
  "prettier": "3.8.1",
62
62
  "ts-jest": "29.4.6",
63
63
  "typescript": "5.9.3",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.0",
2
+ "version": "1.2.1",
3
3
  "tools": [
4
4
  {
5
5
  "name": "compile",
@@ -480,14 +480,14 @@
480
480
  }
481
481
  },
482
482
  {
483
- "name": "simulate-mouse",
484
- "description": "Simulate mouse click and drag on PlayMode UI elements via screen coordinates",
483
+ "name": "simulate-mouse-ui",
484
+ "description": "Simulate mouse click, long-press, and drag on PlayMode UI elements via EventSystem screen coordinates",
485
485
  "inputSchema": {
486
486
  "type": "object",
487
487
  "properties": {
488
488
  "Action": {
489
489
  "type": "string",
490
- "description": "Mouse action: Click - left click, Drag - one-shot drag, DragStart - begin drag and hold, DragMove - move while holding drag, DragEnd - release drag, LongPress - press and hold for Duration seconds",
490
+ "description": "Mouse action: Click - click at position, Drag - one-shot drag, DragStart - begin drag and hold, DragMove - move while holding drag, DragEnd - release drag, LongPress - press and hold for Duration seconds",
491
491
  "enum": [
492
492
  "Click",
493
493
  "Drag",
@@ -527,6 +527,82 @@
527
527
  "type": "number",
528
528
  "description": "Hold duration in seconds for LongPress action.",
529
529
  "default": 0.5
530
+ },
531
+ "Button": {
532
+ "type": "string",
533
+ "description": "Mouse button: Left (default), Right, Middle.",
534
+ "enum": [
535
+ "Left",
536
+ "Right",
537
+ "Middle"
538
+ ],
539
+ "default": "Left"
540
+ }
541
+ }
542
+ }
543
+ },
544
+ {
545
+ "name": "simulate-mouse-input",
546
+ "description": "Simulate mouse input in PlayMode via Input System. Injects button clicks, mouse delta, and scroll wheel directly into Mouse.current for game logic that reads Input System. Requires the Input System package and Active Input Handling set to 'Input System Package (New)' or 'Both'.",
547
+ "inputSchema": {
548
+ "type": "object",
549
+ "properties": {
550
+ "Action": {
551
+ "type": "string",
552
+ "description": "Mouse input action: Click - inject button press+release, LongPress - inject button hold for Duration seconds, MoveDelta - inject mouse delta (one-shot), SmoothDelta - inject mouse delta smoothly over Duration seconds, Scroll - inject scroll wheel",
553
+ "enum": [
554
+ "Click",
555
+ "LongPress",
556
+ "MoveDelta",
557
+ "SmoothDelta",
558
+ "Scroll"
559
+ ],
560
+ "default": "Click"
561
+ },
562
+ "X": {
563
+ "type": "number",
564
+ "description": "Target X position in screen pixels (origin: top-left). Used by Click and LongPress.",
565
+ "default": 0
566
+ },
567
+ "Y": {
568
+ "type": "number",
569
+ "description": "Target Y position in screen pixels (origin: top-left). Used by Click and LongPress.",
570
+ "default": 0
571
+ },
572
+ "Button": {
573
+ "type": "string",
574
+ "description": "Mouse button: Left (default), Right, Middle. Used by Click and LongPress.",
575
+ "enum": [
576
+ "Left",
577
+ "Right",
578
+ "Middle"
579
+ ],
580
+ "default": "Left"
581
+ },
582
+ "Duration": {
583
+ "type": "number",
584
+ "description": "Duration in seconds for LongPress hold, SmoothDelta interpolation, or minimum hold time for Click (0 = one-shot tap).",
585
+ "default": 0
586
+ },
587
+ "DeltaX": {
588
+ "type": "number",
589
+ "description": "Delta X in pixels for MoveDelta/SmoothDelta action. Positive = right.",
590
+ "default": 0
591
+ },
592
+ "DeltaY": {
593
+ "type": "number",
594
+ "description": "Delta Y in pixels for MoveDelta/SmoothDelta action. Positive = up.",
595
+ "default": 0
596
+ },
597
+ "ScrollX": {
598
+ "type": "number",
599
+ "description": "Horizontal scroll delta for Scroll action.",
600
+ "default": 0
601
+ },
602
+ "ScrollY": {
603
+ "type": "number",
604
+ "description": "Vertical scroll delta for Scroll action. Positive = up, negative = down. Typically 120 per notch.",
605
+ "default": 0
530
606
  }
531
607
  }
532
608
  }
package/src/version.ts CHANGED
@@ -4,4 +4,4 @@
4
4
  * This file exists to avoid bundling the entire package.json into the CLI bundle.
5
5
  * This version is automatically updated by release-please.
6
6
  */
7
- export const VERSION = '1.1.0'; // x-release-please-version
7
+ export const VERSION = '1.2.1'; // x-release-please-version