uloop-cli 1.0.2 → 1.1.0

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.0.2",
3
+ "version": "1.1.0",
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",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "type": "module",
11
11
  "scripts": {
12
- "build": "esbuild src/cli.ts --bundle --platform=node --format=cjs --outfile=dist/cli.bundle.cjs --sourcemap --banner:js='#!/usr/bin/env node' --loader:.md=text",
12
+ "build": "esbuild src/cli.ts --bundle --platform=node --format=cjs --outfile=dist/cli.bundle.cjs --sourcemap --banner:js=\"#!/usr/bin/env node\" --loader:.md=text",
13
13
  "lint": "eslint src",
14
14
  "lint:fix": "eslint src --fix",
15
15
  "format": "prettier --write src/**/*.ts",
@@ -57,11 +57,11 @@
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.86.0",
60
+ "knip": "5.87.0",
61
61
  "prettier": "3.8.1",
62
62
  "ts-jest": "29.4.6",
63
63
  "typescript": "5.9.3",
64
- "typescript-eslint": "8.57.0"
64
+ "typescript-eslint": "8.57.1"
65
65
  },
66
66
  "overrides": {
67
67
  "minimatch": "10.2.4"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.2",
2
+ "version": "1.1.0",
3
3
  "tools": [
4
4
  {
5
5
  "name": "compile",
@@ -530,6 +530,34 @@
530
530
  }
531
531
  }
532
532
  }
533
+ },
534
+ {
535
+ "name": "simulate-keyboard",
536
+ "description": "Simulate keyboard key input in PlayMode via Input System. Supports one-shot press, key-down hold, and key-up release for game controls (WASD, Space, etc.). Requires the Input System package (com.unity.inputsystem).",
537
+ "inputSchema": {
538
+ "type": "object",
539
+ "properties": {
540
+ "Action": {
541
+ "type": "string",
542
+ "description": "Keyboard action: Press - one-shot key tap (Down then Up), KeyDown - hold key down, KeyUp - release held key",
543
+ "enum": [
544
+ "Press",
545
+ "KeyDown",
546
+ "KeyUp"
547
+ ],
548
+ "default": "Press"
549
+ },
550
+ "Key": {
551
+ "type": "string",
552
+ "description": "Key name matching Input System Key enum (e.g. \"W\", \"Space\", \"LeftShift\", \"A\", \"Return\"). Case-insensitive."
553
+ },
554
+ "Duration": {
555
+ "type": "number",
556
+ "description": "Hold duration in seconds for Press action (0 = one-shot tap). Ignored by KeyDown/KeyUp.",
557
+ "default": 0
558
+ }
559
+ }
560
+ }
533
561
  }
534
562
  ]
535
563
  }
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.0.2'; // x-release-please-version
7
+ export const VERSION = '1.1.0'; // x-release-please-version