@quenty/studio-bridge 0.21.1 → 0.22.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/CHANGELOG.md +10 -0
- package/README.md +109 -17
- package/build-scripts/transform-add-session-attribute.lua +1 -0
- package/deploy.nevermore.json +10 -0
- package/dist/src/bridge/bridge-connection.d.ts +26 -2
- package/dist/src/bridge/bridge-connection.d.ts.map +1 -1
- package/dist/src/bridge/bridge-connection.js +159 -14
- package/dist/src/bridge/bridge-connection.js.map +1 -1
- package/dist/src/bridge/bridge-connection.test.js +81 -0
- package/dist/src/bridge/bridge-connection.test.js.map +1 -1
- package/dist/src/bridge/bridge-session.d.ts +35 -2
- package/dist/src/bridge/bridge-session.d.ts.map +1 -1
- package/dist/src/bridge/bridge-session.js +185 -28
- package/dist/src/bridge/bridge-session.js.map +1 -1
- package/dist/src/bridge/bridge-session.test.js +6 -4
- package/dist/src/bridge/bridge-session.test.js.map +1 -1
- package/dist/src/bridge/index.d.ts +1 -1
- package/dist/src/bridge/index.d.ts.map +1 -1
- package/dist/src/bridge/index.js.map +1 -1
- package/dist/src/bridge/internal/bridge-client.d.ts +4 -0
- package/dist/src/bridge/internal/bridge-client.d.ts.map +1 -1
- package/dist/src/bridge/internal/bridge-client.js +20 -7
- package/dist/src/bridge/internal/bridge-client.js.map +1 -1
- package/dist/src/bridge/internal/bridge-client.test.js +18 -0
- package/dist/src/bridge/internal/bridge-client.test.js.map +1 -1
- package/dist/src/bridge/internal/bridge-host.d.ts +13 -1
- package/dist/src/bridge/internal/bridge-host.d.ts.map +1 -1
- package/dist/src/bridge/internal/bridge-host.js +35 -0
- package/dist/src/bridge/internal/bridge-host.js.map +1 -1
- package/dist/src/bridge/internal/bridge-host.test.js +31 -0
- package/dist/src/bridge/internal/bridge-host.test.js.map +1 -1
- package/dist/src/bridge/internal/hand-off.d.ts.map +1 -1
- package/dist/src/bridge/internal/hand-off.js +4 -1
- package/dist/src/bridge/internal/hand-off.js.map +1 -1
- package/dist/src/bridge/internal/host-protocol.d.ts +8 -0
- package/dist/src/bridge/internal/host-protocol.d.ts.map +1 -1
- package/dist/src/bridge/internal/host-protocol.js +120 -13
- package/dist/src/bridge/internal/host-protocol.js.map +1 -1
- package/dist/src/bridge/internal/host-protocol.test.js +13 -0
- package/dist/src/bridge/internal/host-protocol.test.js.map +1 -1
- package/dist/src/bridge/internal/instance-state.d.ts +9 -0
- package/dist/src/bridge/internal/instance-state.d.ts.map +1 -0
- package/dist/src/bridge/internal/instance-state.js +28 -0
- package/dist/src/bridge/internal/instance-state.js.map +1 -0
- package/dist/src/bridge/internal/transport-client.d.ts.map +1 -1
- package/dist/src/bridge/internal/transport-client.js +2 -1
- package/dist/src/bridge/internal/transport-client.js.map +1 -1
- package/dist/src/bridge/internal/transport-server.d.ts.map +1 -1
- package/dist/src/bridge/internal/transport-server.js +5 -1
- package/dist/src/bridge/internal/transport-server.js.map +1 -1
- package/dist/src/bridge/types.d.ts +43 -4
- package/dist/src/bridge/types.d.ts.map +1 -1
- package/dist/src/bridge/types.js.map +1 -1
- package/dist/src/cli/adapters/cli-command-adapter-handler.test.js +24 -0
- package/dist/src/cli/adapters/cli-command-adapter-handler.test.js.map +1 -1
- package/dist/src/cli/adapters/cli-command-adapter.d.ts +6 -0
- package/dist/src/cli/adapters/cli-command-adapter.d.ts.map +1 -1
- package/dist/src/cli/adapters/cli-command-adapter.js +107 -11
- package/dist/src/cli/adapters/cli-command-adapter.js.map +1 -1
- package/dist/src/cli/adapters/group-builder.d.ts +3 -0
- package/dist/src/cli/adapters/group-builder.d.ts.map +1 -1
- package/dist/src/cli/adapters/group-builder.js +34 -15
- package/dist/src/cli/adapters/group-builder.js.map +1 -1
- package/dist/src/cli/adapters/group-builder.test.js +26 -2
- package/dist/src/cli/adapters/group-builder.test.js.map +1 -1
- package/dist/src/cli/adapters/help-formatter.d.ts.map +1 -1
- package/dist/src/cli/adapters/help-formatter.js +4 -3
- package/dist/src/cli/adapters/help-formatter.js.map +1 -1
- package/dist/src/cli/adapters/help-formatter.test.js +1 -1
- package/dist/src/cli/adapters/help-formatter.test.js.map +1 -1
- package/dist/src/cli/adapters/playtest-edit-guard.test.d.ts +2 -0
- package/dist/src/cli/adapters/playtest-edit-guard.test.d.ts.map +1 -0
- package/dist/src/cli/adapters/playtest-edit-guard.test.js +28 -0
- package/dist/src/cli/adapters/playtest-edit-guard.test.js.map +1 -0
- package/dist/src/cli/args/global-args.d.ts +1 -1
- package/dist/src/cli/args/global-args.d.ts.map +1 -1
- package/dist/src/cli/cli-output-context.d.ts +14 -0
- package/dist/src/cli/cli-output-context.d.ts.map +1 -0
- package/dist/src/cli/cli-output-context.js +39 -0
- package/dist/src/cli/cli-output-context.js.map +1 -0
- package/dist/src/cli/cli-output-context.test.d.ts +2 -0
- package/dist/src/cli/cli-output-context.test.d.ts.map +1 -0
- package/dist/src/cli/cli-output-context.test.js +38 -0
- package/dist/src/cli/cli-output-context.test.js.map +1 -0
- package/dist/src/cli/cli.js +40 -17
- package/dist/src/cli/cli.js.map +1 -1
- package/dist/src/cli/managed-studio-run.d.ts +21 -0
- package/dist/src/cli/managed-studio-run.d.ts.map +1 -0
- package/dist/src/cli/managed-studio-run.js +75 -0
- package/dist/src/cli/managed-studio-run.js.map +1 -0
- package/dist/src/cli/managed-studio-run.test.d.ts +2 -0
- package/dist/src/cli/managed-studio-run.test.d.ts.map +1 -0
- package/dist/src/cli/managed-studio-run.test.js +52 -0
- package/dist/src/cli/managed-studio-run.test.js.map +1 -0
- package/dist/src/cli/resolve-session.js +1 -1
- package/dist/src/cli/resolve-session.js.map +1 -1
- package/dist/src/cli/resolve-session.test.js +1 -1
- package/dist/src/cli/resolve-session.test.js.map +1 -1
- package/dist/src/cli/script-executor.d.ts +13 -1
- package/dist/src/cli/script-executor.d.ts.map +1 -1
- package/dist/src/cli/script-executor.js +77 -47
- package/dist/src/cli/script-executor.js.map +1 -1
- package/dist/src/commands/console/exec/exec.d.ts +17 -0
- package/dist/src/commands/console/exec/exec.d.ts.map +1 -1
- package/dist/src/commands/console/exec/exec.js +39 -7
- package/dist/src/commands/console/exec/exec.js.map +1 -1
- package/dist/src/commands/console/exec/exec.test.js +62 -3
- package/dist/src/commands/console/exec/exec.test.js.map +1 -1
- package/dist/src/commands/console/logs/logs.d.ts +30 -2
- package/dist/src/commands/console/logs/logs.d.ts.map +1 -1
- package/dist/src/commands/console/logs/logs.js +82 -7
- package/dist/src/commands/console/logs/logs.js.map +1 -1
- package/dist/src/commands/console/logs/logs.test.js +63 -4
- package/dist/src/commands/console/logs/logs.test.js.map +1 -1
- package/dist/src/commands/explorer/export/export.d.ts +19 -0
- package/dist/src/commands/explorer/export/export.d.ts.map +1 -0
- package/dist/src/commands/explorer/export/export.js +37 -0
- package/dist/src/commands/explorer/export/export.js.map +1 -0
- package/dist/src/commands/explorer/export/export.test.d.ts +2 -0
- package/dist/src/commands/explorer/export/export.test.d.ts.map +1 -0
- package/dist/src/commands/explorer/export/export.test.js +25 -0
- package/dist/src/commands/explorer/export/export.test.js.map +1 -0
- package/dist/src/commands/explorer/find/find.d.ts +28 -0
- package/dist/src/commands/explorer/find/find.d.ts.map +1 -0
- package/dist/src/commands/explorer/find/find.js +75 -0
- package/dist/src/commands/explorer/find/find.js.map +1 -0
- package/dist/src/commands/explorer/find/find.test.d.ts +2 -0
- package/dist/src/commands/explorer/find/find.test.d.ts.map +1 -0
- package/dist/src/commands/explorer/find/find.test.js +44 -0
- package/dist/src/commands/explorer/find/find.test.js.map +1 -0
- package/dist/src/commands/explorer/grep/grep.d.ts +24 -0
- package/dist/src/commands/explorer/grep/grep.d.ts.map +1 -0
- package/dist/src/commands/explorer/grep/grep.js +63 -0
- package/dist/src/commands/explorer/grep/grep.js.map +1 -0
- package/dist/src/commands/explorer/grep/grep.test.d.ts +2 -0
- package/dist/src/commands/explorer/grep/grep.test.d.ts.map +1 -0
- package/dist/src/commands/explorer/grep/grep.test.js +42 -0
- package/dist/src/commands/explorer/grep/grep.test.js.map +1 -0
- package/dist/src/commands/explorer/import/import.d.ts +21 -0
- package/dist/src/commands/explorer/import/import.d.ts.map +1 -0
- package/dist/src/commands/explorer/import/import.js +37 -0
- package/dist/src/commands/explorer/import/import.js.map +1 -0
- package/dist/src/commands/explorer/import/import.test.d.ts +2 -0
- package/dist/src/commands/explorer/import/import.test.d.ts.map +1 -0
- package/dist/src/commands/explorer/import/import.test.js +45 -0
- package/dist/src/commands/explorer/import/import.test.js.map +1 -0
- package/dist/src/commands/formatters.test.js +7 -1
- package/dist/src/commands/formatters.test.js.map +1 -1
- package/dist/src/commands/framework/action-loader.d.ts +5 -1
- package/dist/src/commands/framework/action-loader.d.ts.map +1 -1
- package/dist/src/commands/framework/action-loader.js +9 -2
- package/dist/src/commands/framework/action-loader.js.map +1 -1
- package/dist/src/commands/framework/action-loader.test.js +23 -0
- package/dist/src/commands/framework/action-loader.test.js.map +1 -1
- package/dist/src/commands/framework/arg-builder.d.ts +15 -2
- package/dist/src/commands/framework/arg-builder.d.ts.map +1 -1
- package/dist/src/commands/framework/arg-builder.js +22 -2
- package/dist/src/commands/framework/arg-builder.js.map +1 -1
- package/dist/src/commands/framework/define-command.d.ts +19 -3
- package/dist/src/commands/framework/define-command.d.ts.map +1 -1
- package/dist/src/commands/framework/define-command.js.map +1 -1
- package/dist/src/commands/framework/index.d.ts +1 -1
- package/dist/src/commands/framework/index.d.ts.map +1 -1
- package/dist/src/commands/framework/index.js.map +1 -1
- package/dist/src/commands/index.d.ts +11 -0
- package/dist/src/commands/index.d.ts.map +1 -1
- package/dist/src/commands/index.js +11 -0
- package/dist/src/commands/index.js.map +1 -1
- package/dist/src/commands/linux/inject-credentials/inject-credentials.d.ts.map +1 -1
- package/dist/src/commands/linux/inject-credentials/inject-credentials.js +1 -3
- package/dist/src/commands/linux/inject-credentials/inject-credentials.js.map +1 -1
- package/dist/src/commands/linux/setup/setup.d.ts.map +1 -1
- package/dist/src/commands/linux/setup/setup.js +1 -3
- package/dist/src/commands/linux/setup/setup.js.map +1 -1
- package/dist/src/commands/linux/status/status.d.ts +9 -1
- package/dist/src/commands/linux/status/status.d.ts.map +1 -1
- package/dist/src/commands/linux/status/status.js +66 -86
- package/dist/src/commands/linux/status/status.js.map +1 -1
- package/dist/src/commands/playtest/player/add/add.d.ts +17 -0
- package/dist/src/commands/playtest/player/add/add.d.ts.map +1 -0
- package/dist/src/commands/playtest/player/add/add.js +45 -0
- package/dist/src/commands/playtest/player/add/add.js.map +1 -0
- package/dist/src/commands/playtest/player/list/list.d.ts +13 -0
- package/dist/src/commands/playtest/player/list/list.d.ts.map +1 -0
- package/dist/src/commands/playtest/player/list/list.js +33 -0
- package/dist/src/commands/playtest/player/list/list.js.map +1 -0
- package/dist/src/commands/playtest/player/playtest-players.d.ts +36 -0
- package/dist/src/commands/playtest/player/playtest-players.d.ts.map +1 -0
- package/dist/src/commands/playtest/player/playtest-players.js +187 -0
- package/dist/src/commands/playtest/player/playtest-players.js.map +1 -0
- package/dist/src/commands/playtest/player/playtest-players.test.d.ts +2 -0
- package/dist/src/commands/playtest/player/playtest-players.test.d.ts.map +1 -0
- package/dist/src/commands/playtest/player/playtest-players.test.js +89 -0
- package/dist/src/commands/playtest/player/playtest-players.test.js.map +1 -0
- package/dist/src/commands/playtest/player/remove/remove.d.ts +17 -0
- package/dist/src/commands/playtest/player/remove/remove.d.ts.map +1 -0
- package/dist/src/commands/playtest/player/remove/remove.js +42 -0
- package/dist/src/commands/playtest/player/remove/remove.js.map +1 -0
- package/dist/src/commands/playtest/playtest-sessions.d.ts +49 -0
- package/dist/src/commands/playtest/playtest-sessions.d.ts.map +1 -0
- package/dist/src/commands/playtest/playtest-sessions.js +283 -0
- package/dist/src/commands/playtest/playtest-sessions.js.map +1 -0
- package/dist/src/commands/playtest/playtest-sessions.test.d.ts +2 -0
- package/dist/src/commands/playtest/playtest-sessions.test.d.ts.map +1 -0
- package/dist/src/commands/playtest/playtest-sessions.test.js +87 -0
- package/dist/src/commands/playtest/playtest-sessions.test.js.map +1 -0
- package/dist/src/commands/playtest/restart/restart.d.ts +23 -0
- package/dist/src/commands/playtest/restart/restart.d.ts.map +1 -0
- package/dist/src/commands/playtest/restart/restart.js +105 -0
- package/dist/src/commands/playtest/restart/restart.js.map +1 -0
- package/dist/src/commands/playtest/run/run.d.ts +47 -0
- package/dist/src/commands/playtest/run/run.d.ts.map +1 -0
- package/dist/src/commands/playtest/run/run.js +137 -0
- package/dist/src/commands/playtest/run/run.js.map +1 -0
- package/dist/src/commands/playtest/start/start.d.ts +42 -0
- package/dist/src/commands/playtest/start/start.d.ts.map +1 -0
- package/dist/src/commands/playtest/start/start.js +70 -0
- package/dist/src/commands/playtest/start/start.js.map +1 -0
- package/dist/src/commands/playtest/stop/stop.d.ts +15 -0
- package/dist/src/commands/playtest/stop/stop.d.ts.map +1 -0
- package/dist/src/commands/playtest/stop/stop.js +24 -0
- package/dist/src/commands/playtest/stop/stop.js.map +1 -0
- package/dist/src/commands/process/close/close.d.ts +19 -10
- package/dist/src/commands/process/close/close.d.ts.map +1 -1
- package/dist/src/commands/process/close/close.js +118 -15
- package/dist/src/commands/process/close/close.js.map +1 -1
- package/dist/src/commands/process/close/close.test.d.ts +2 -0
- package/dist/src/commands/process/close/close.test.d.ts.map +1 -0
- package/dist/src/commands/process/close/close.test.js +190 -0
- package/dist/src/commands/process/close/close.test.js.map +1 -0
- package/dist/src/commands/process/info/info.d.ts +45 -5
- package/dist/src/commands/process/info/info.d.ts.map +1 -1
- package/dist/src/commands/process/info/info.js +117 -13
- package/dist/src/commands/process/info/info.js.map +1 -1
- package/dist/src/commands/process/info/info.test.js +140 -38
- package/dist/src/commands/process/info/info.test.js.map +1 -1
- package/dist/src/commands/process/launch/launch.d.ts +11 -1
- package/dist/src/commands/process/launch/launch.d.ts.map +1 -1
- package/dist/src/commands/process/launch/launch.js +37 -7
- package/dist/src/commands/process/launch/launch.js.map +1 -1
- package/dist/src/commands/process/launch/launch.test.js +99 -20
- package/dist/src/commands/process/launch/launch.test.js.map +1 -1
- package/dist/src/commands/process/list/list.d.ts +2 -1
- package/dist/src/commands/process/list/list.d.ts.map +1 -1
- package/dist/src/commands/process/list/list.js +9 -6
- package/dist/src/commands/process/list/list.js.map +1 -1
- package/dist/src/commands/process/list/list.test.js +1 -0
- package/dist/src/commands/process/list/list.test.js.map +1 -1
- package/dist/src/commands/process/run/run.d.ts +9 -0
- package/dist/src/commands/process/run/run.d.ts.map +1 -1
- package/dist/src/commands/process/run/run.js +15 -5
- package/dist/src/commands/process/run/run.js.map +1 -1
- package/dist/src/commands/serve/serve.d.ts +2 -0
- package/dist/src/commands/serve/serve.d.ts.map +1 -1
- package/dist/src/commands/serve/serve.js +17 -4
- package/dist/src/commands/serve/serve.js.map +1 -1
- package/dist/src/commands/serve/serve.test.js +9 -2
- package/dist/src/commands/serve/serve.test.js.map +1 -1
- package/dist/src/commands/viewport/screenshot/screenshot.d.ts.map +1 -1
- package/dist/src/commands/viewport/screenshot/screenshot.js +4 -1
- package/dist/src/commands/viewport/screenshot/screenshot.js.map +1 -1
- package/dist/src/commands/viewport/screenshot/screenshot.test.js +5 -9
- package/dist/src/commands/viewport/screenshot/screenshot.test.js.map +1 -1
- package/dist/src/deploy/deploy-places.d.ts +39 -0
- package/dist/src/deploy/deploy-places.d.ts.map +1 -0
- package/dist/src/deploy/deploy-places.js +162 -0
- package/dist/src/deploy/deploy-places.js.map +1 -0
- package/dist/src/deploy/deploy-places.test.d.ts +2 -0
- package/dist/src/deploy/deploy-places.test.d.ts.map +1 -0
- package/dist/src/deploy/deploy-places.test.js +96 -0
- package/dist/src/deploy/deploy-places.test.js.map +1 -0
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/plugin/persistent-plugin-installer.d.ts.map +1 -1
- package/dist/src/plugin/persistent-plugin-installer.js +2 -1
- package/dist/src/plugin/persistent-plugin-installer.js.map +1 -1
- package/dist/src/plugin/persistent-plugin-installer.test.js +3 -0
- package/dist/src/plugin/persistent-plugin-installer.test.js.map +1 -1
- package/dist/src/plugin/plugin-build-version.d.ts +7 -0
- package/dist/src/plugin/plugin-build-version.d.ts.map +1 -0
- package/dist/src/plugin/plugin-build-version.js +42 -0
- package/dist/src/plugin/plugin-build-version.js.map +1 -0
- package/dist/src/plugin/plugin-build-version.test.d.ts +2 -0
- package/dist/src/plugin/plugin-build-version.test.d.ts.map +1 -0
- package/dist/src/plugin/plugin-build-version.test.js +41 -0
- package/dist/src/plugin/plugin-build-version.test.js.map +1 -0
- package/dist/src/plugin/plugin-injector.d.ts.map +1 -1
- package/dist/src/plugin/plugin-injector.js +7 -1
- package/dist/src/plugin/plugin-injector.js.map +1 -1
- package/dist/src/process/studio-process-closer.d.ts +35 -0
- package/dist/src/process/studio-process-closer.d.ts.map +1 -0
- package/dist/src/process/studio-process-closer.js +129 -0
- package/dist/src/process/studio-process-closer.js.map +1 -0
- package/dist/src/process/studio-process-closer.test.d.ts +2 -0
- package/dist/src/process/studio-process-closer.test.d.ts.map +1 -0
- package/dist/src/process/studio-process-closer.test.js +80 -0
- package/dist/src/process/studio-process-closer.test.js.map +1 -0
- package/dist/src/process/studio-settings.d.ts +14 -0
- package/dist/src/process/studio-settings.d.ts.map +1 -0
- package/dist/src/process/studio-settings.js +50 -0
- package/dist/src/process/studio-settings.js.map +1 -0
- package/dist/src/process/studio-settings.test.d.ts +2 -0
- package/dist/src/process/studio-settings.test.d.ts.map +1 -0
- package/dist/src/process/studio-settings.test.js +16 -0
- package/dist/src/process/studio-settings.test.js.map +1 -0
- package/dist/src/process/studio-window-state.d.ts +13 -0
- package/dist/src/process/studio-window-state.d.ts.map +1 -0
- package/dist/src/process/studio-window-state.js +48 -0
- package/dist/src/process/studio-window-state.js.map +1 -0
- package/dist/src/server/studio-bridge-server.d.ts +3 -1
- package/dist/src/server/studio-bridge-server.d.ts.map +1 -1
- package/dist/src/server/studio-bridge-server.js +12 -4
- package/dist/src/server/studio-bridge-server.js.map +1 -1
- package/dist/src/server/web-socket-protocol.d.ts +173 -6
- package/dist/src/server/web-socket-protocol.d.ts.map +1 -1
- package/dist/src/server/web-socket-protocol.js +244 -1
- package/dist/src/server/web-socket-protocol.js.map +1 -1
- package/dist/src/server/web-socket-protocol.test.js +48 -0
- package/dist/src/server/web-socket-protocol.test.js.map +1 -1
- package/dist/src/test/e2e/persistent-session.test.js +121 -0
- package/dist/src/test/e2e/persistent-session.test.js.map +1 -1
- package/dist/src/test/e2e/split-server.test.d.ts +3 -5
- package/dist/src/test/e2e/split-server.test.d.ts.map +1 -1
- package/dist/src/test/e2e/split-server.test.js +3 -5
- package/dist/src/test/e2e/split-server.test.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/docker/Dockerfile +3 -0
- package/package.json +8 -6
- package/src/bridge/bridge-connection.test.ts +126 -0
- package/src/bridge/bridge-connection.ts +217 -22
- package/src/bridge/bridge-session.test.ts +6 -4
- package/src/bridge/bridge-session.ts +273 -28
- package/src/bridge/index.ts +3 -0
- package/src/bridge/internal/bridge-client.test.ts +23 -0
- package/src/bridge/internal/bridge-client.ts +25 -7
- package/src/bridge/internal/bridge-host.test.ts +38 -0
- package/src/bridge/internal/bridge-host.ts +47 -0
- package/src/bridge/internal/hand-off.ts +4 -1
- package/src/bridge/internal/host-protocol.test.ts +15 -0
- package/src/bridge/internal/host-protocol.ts +148 -37
- package/src/bridge/internal/instance-state.ts +34 -0
- package/src/bridge/internal/transport-client.ts +2 -1
- package/src/bridge/internal/transport-server.ts +5 -1
- package/src/bridge/types.ts +47 -2
- package/src/cli/adapters/cli-command-adapter-handler.test.ts +28 -0
- package/src/cli/adapters/cli-command-adapter.ts +150 -18
- package/src/cli/adapters/group-builder.test.ts +34 -2
- package/src/cli/adapters/group-builder.ts +52 -20
- package/src/cli/adapters/help-formatter.test.ts +1 -1
- package/src/cli/adapters/help-formatter.ts +4 -3
- package/src/cli/adapters/playtest-edit-guard.test.ts +54 -0
- package/src/cli/args/global-args.ts +1 -1
- package/src/cli/cli-output-context.test.ts +55 -0
- package/src/cli/cli-output-context.ts +50 -0
- package/src/cli/cli.ts +49 -17
- package/src/cli/managed-studio-run.test.ts +71 -0
- package/src/cli/managed-studio-run.ts +135 -0
- package/src/cli/resolve-session.test.ts +1 -1
- package/src/cli/resolve-session.ts +1 -1
- package/src/cli/script-executor.ts +99 -51
- package/src/commands/console/exec/exec.test.ts +96 -3
- package/src/commands/console/exec/exec.ts +59 -6
- package/src/commands/console/exec/execute.lua +356 -240
- package/src/commands/console/exec/execute.spec.lua +286 -0
- package/src/commands/console/logs/logs.test.ts +76 -4
- package/src/commands/console/logs/logs.ts +132 -17
- package/src/commands/console/logs/query-logs.lua +85 -52
- package/src/commands/console/logs/query-logs.spec.lua +132 -0
- package/src/commands/explorer/export/export-instances.lua +108 -0
- package/src/commands/explorer/export/export-instances.spec.lua +87 -0
- package/src/commands/explorer/export/export.test.ts +27 -0
- package/src/commands/explorer/export/export.ts +60 -0
- package/src/commands/explorer/find/find-instances.lua +174 -0
- package/src/commands/explorer/find/find-instances.spec.lua +122 -0
- package/src/commands/explorer/find/find.test.ts +53 -0
- package/src/commands/explorer/find/find.ts +113 -0
- package/src/commands/explorer/grep/grep-scripts.lua +214 -0
- package/src/commands/explorer/grep/grep-scripts.spec.lua +130 -0
- package/src/commands/explorer/grep/grep.test.ts +45 -0
- package/src/commands/explorer/grep/grep.ts +93 -0
- package/src/commands/explorer/import/import-instances.lua +106 -0
- package/src/commands/explorer/import/import-instances.spec.lua +84 -0
- package/src/commands/explorer/import/import.test.ts +60 -0
- package/src/commands/explorer/import/import.ts +66 -0
- package/src/commands/explorer/query/query-data-model.lua +124 -152
- package/src/commands/explorer/query/query-data-model.spec.lua +150 -0
- package/src/commands/formatters.test.ts +7 -1
- package/src/commands/framework/action-loader.test.ts +28 -0
- package/src/commands/framework/action-loader.ts +10 -2
- package/src/commands/framework/arg-builder.ts +26 -3
- package/src/commands/framework/define-command.ts +32 -3
- package/src/commands/framework/index.ts +1 -0
- package/src/commands/index.ts +50 -0
- package/src/commands/linux/inject-credentials/inject-credentials.ts +1 -3
- package/src/commands/linux/setup/setup.ts +1 -3
- package/src/commands/linux/status/status.ts +105 -98
- package/src/commands/playtest/player/add/add.ts +85 -0
- package/src/commands/playtest/player/list/list.ts +57 -0
- package/src/commands/playtest/player/playtest-players.test.ts +146 -0
- package/src/commands/playtest/player/playtest-players.ts +270 -0
- package/src/commands/playtest/player/remove/remove.ts +78 -0
- package/src/commands/playtest/playtest-sessions.test.ts +143 -0
- package/src/commands/playtest/playtest-sessions.ts +417 -0
- package/src/commands/playtest/restart/restart.ts +199 -0
- package/src/commands/playtest/run/playtest-runner.luau +264 -0
- package/src/commands/playtest/run/playtest-runner.spec.lua +71 -0
- package/src/commands/playtest/run/run-playtest-script.lua +139 -0
- package/src/commands/playtest/run/run-playtest-script.spec.lua +43 -0
- package/src/commands/playtest/run/run.ts +239 -0
- package/src/commands/playtest/start/start-playtest.lua +108 -0
- package/src/commands/playtest/start/start.ts +138 -0
- package/src/commands/playtest/stop/end-playtest.lua +47 -0
- package/src/commands/playtest/stop/stop.ts +51 -0
- package/src/commands/process/close/close.test.ts +250 -0
- package/src/commands/process/close/close.ts +183 -17
- package/src/commands/process/info/info.test.ts +198 -44
- package/src/commands/process/info/info.ts +204 -15
- package/src/commands/process/info/query-state.lua +42 -29
- package/src/commands/process/info/query-state.spec.lua +39 -0
- package/src/commands/process/launch/launch.test.ts +138 -21
- package/src/commands/process/launch/launch.ts +69 -9
- package/src/commands/process/list/list.test.ts +1 -0
- package/src/commands/process/list/list.ts +14 -6
- package/src/commands/process/run/run.ts +26 -5
- package/src/commands/serve/serve.test.ts +17 -2
- package/src/commands/serve/serve.ts +25 -6
- package/src/commands/viewport/screenshot/capture-screenshot.lua +175 -182
- package/src/commands/viewport/screenshot/capture-screenshot.spec.lua +129 -0
- package/src/commands/viewport/screenshot/screenshot.test.ts +7 -10
- package/src/commands/viewport/screenshot/screenshot.ts +6 -1
- package/src/deploy/deploy-places.test.ts +127 -0
- package/src/deploy/deploy-places.ts +229 -0
- package/src/index.ts +11 -0
- package/src/plugin/persistent-plugin-installer.test.ts +4 -0
- package/src/plugin/persistent-plugin-installer.ts +2 -1
- package/src/plugin/plugin-build-version.test.ts +55 -0
- package/src/plugin/plugin-build-version.ts +53 -0
- package/src/plugin/plugin-injector.ts +7 -1
- package/src/process/studio-process-closer.test.ts +107 -0
- package/src/process/studio-process-closer.ts +187 -0
- package/src/process/studio-settings.test.ts +18 -0
- package/src/process/studio-settings.ts +61 -0
- package/src/process/studio-window-state.ts +65 -0
- package/src/server/studio-bridge-server.ts +15 -4
- package/src/server/web-socket-protocol.test.ts +55 -0
- package/src/server/web-socket-protocol.ts +468 -8
- package/src/test/e2e/persistent-session.test.ts +137 -0
- package/src/test/e2e/split-server.test.ts +3 -5
- package/templates/studio-bridge-plugin/default.project.json +3 -0
- package/templates/studio-bridge-plugin/src/Shared/ActionRouter.lua +208 -159
- package/templates/studio-bridge-plugin/src/Shared/ActionRouter.spec.lua +418 -0
- package/templates/studio-bridge-plugin/src/Shared/BuiltInActions.lua +94 -0
- package/templates/studio-bridge-plugin/src/Shared/BuiltInActions.spec.lua +166 -0
- package/templates/studio-bridge-plugin/src/Shared/DiscoveryStateMachine.lua +118 -137
- package/templates/studio-bridge-plugin/src/Shared/DiscoveryStateMachine.spec.lua +228 -0
- package/templates/studio-bridge-plugin/src/Shared/MessageBuffer.lua +80 -109
- package/templates/studio-bridge-plugin/src/Shared/MessageBuffer.spec.lua +116 -0
- package/templates/studio-bridge-plugin/src/Shared/StudioBridgeConnection.lua +233 -0
- package/templates/studio-bridge-plugin/src/Shared/StudioBridgeConnection.spec.lua +239 -0
- package/templates/studio-bridge-plugin/src/Shared/StudioBridgeLogUtils.lua +53 -0
- package/templates/studio-bridge-plugin/src/Shared/StudioBridgeLogUtils.spec.lua +27 -0
- package/templates/studio-bridge-plugin/src/Shared/StudioBridgeSessionUtils.lua +164 -0
- package/templates/studio-bridge-plugin/src/Shared/StudioBridgeSessionUtils.spec.lua +159 -0
- package/templates/studio-bridge-plugin/src/StudioBridgePlugin.server.lua +266 -368
- package/templates/studio-bridge-plugin/src/Vendor/png.lua +8 -2
- package/test/default.project.json +41 -0
- package/test/jest.config.lua +3 -0
- package/test/scripts/Server/ServerMain.server.lua +10 -0
- package/tsconfig.json +1 -0
- package/templates/studio-bridge-plugin/src/Shared/Protocol.lua +0 -132
- package/templates/studio-bridge-plugin-test/test/actions.test.lua +0 -580
- package/templates/studio-bridge-plugin-test/test/discovery.test.lua +0 -622
- package/templates/studio-bridge-plugin-test/test/execute-handler.test.lua +0 -517
- package/templates/studio-bridge-plugin-test/test/hash-lifecycle.test.lua +0 -814
- package/templates/studio-bridge-plugin-test/test/integration.test.lua +0 -1020
- package/templates/studio-bridge-plugin-test/test/new-actions.test.lua +0 -339
- package/templates/studio-bridge-plugin-test/test/plugin-entry.test.lua +0 -493
- package/templates/studio-bridge-plugin-test/test/protocol.test.lua +0 -506
- package/templates/studio-bridge-plugin-test/test/roblox-mocks.lua +0 -108
- package/templates/studio-bridge-plugin-test/test/test-runner.lua +0 -112
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define-command.d.ts","sourceRoot":"","sources":["../../../../src/commands/framework/define-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"define-command.d.ts","sourceRoot":"","sources":["../../../../src/commands/framework/define-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAChB,cAAc,EACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,aAAa,eAAsC,CAAC;AAEjE,qEAAqE;AACrE,MAAM,MAAM,aAAa,GAAG,M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Aa,CAAC,KAAK,EAAE,OAAO,EAC1C,KAAK,EAAE,sBAAsB,CAAC,KAAK,EAAE,OAAO,CAAC,GAC5C,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AAKrC;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,iBAAiB,CAM5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define-command.js","sourceRoot":"","sources":["../../../../src/commands/framework/define-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;
|
|
1
|
+
{"version":3,"file":"define-command.js","sourceRoot":"","sources":["../../../../src/commands/framework/define-command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AASH;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;AAwGjE,MAAM,UAAU,aAAa,CAAC,KAAmB;IAC/C,OAAO,EAAE,GAAG,KAAK,EAAE,CAAC,aAAa,CAAC,EAAE,IAAa,EAAE,CAAC;AACtD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CACjC,KAAc;IAEd,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,KAAK,IAAI;QACb,KAAa,CAAC,aAAa,CAAC,KAAK,IAAI,CACvC,CAAC;AACJ,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Declarative command framework. `defineCommand()` creates a single
|
|
3
3
|
* definition that drives the CLI adapter.
|
|
4
4
|
*/
|
|
5
|
-
export { COMMAND_BRAND, defineCommand, isCommandDefinition, type CommandSafety, type CommandScope, type CommandCategory, type CommandInput, type CommandDefinition, type SessionCommandInput, type ConnectionCommandInput, type StandaloneCommandInput, type CliConfig, } from './define-command.js';
|
|
5
|
+
export { COMMAND_BRAND, defineCommand, isCommandDefinition, type CommandSafety, type CommandScope, type CommandCategory, type CommandInput, type CommandDefinition, type SessionCommandInput, type ConnectionCommandInput, type StandaloneCommandInput, type SessionTargeting, type CliConfig, } from './define-command.js';
|
|
6
6
|
export { arg, toYargsOptions, toJsonSchema, type ArgKind, type ArgType, type ArgDefinition, type YargsPositional, type YargsArgConfig, type JsonSchemaOutput, } from './arg-builder.js';
|
|
7
7
|
export { CommandRegistry } from './command-registry.js';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/framework/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,SAAS,GACf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,GAAG,EACH,cAAc,EACd,YAAY,EACZ,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,gBAAgB,GACtB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/framework/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,SAAS,GACf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,GAAG,EACH,cAAc,EACd,YAAY,EACZ,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,gBAAgB,GACtB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/commands/framework/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,aAAa,EACb,aAAa,EACb,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/commands/framework/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,aAAa,EACb,aAAa,EACb,mBAAmB,GAWpB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,GAAG,EACH,cAAc,EACd,YAAY,GAOb,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -10,11 +10,22 @@ export { queryStateHandlerAsync, type StateResult, } from './process/info/info.j
|
|
|
10
10
|
export { queryLogsHandlerAsync, type LogsResult, type LogsOptions, } from './console/logs/logs.js';
|
|
11
11
|
export { captureScreenshotHandlerAsync, type ScreenshotResult, type ScreenshotOptions, } from './viewport/screenshot/screenshot.js';
|
|
12
12
|
export { queryDataModelHandlerAsync, type QueryResult, type QueryOptions, type DataModelNode, } from './explorer/query/query.js';
|
|
13
|
+
export { exportInstancesHandlerAsync, type ExportResult, } from './explorer/export/export.js';
|
|
14
|
+
export { importInstancesHandlerAsync, type ImportResult, type ImportOptions, } from './explorer/import/import.js';
|
|
15
|
+
export { findInstancesHandlerAsync, type FindResult, type FindOptions, } from './explorer/find/find.js';
|
|
16
|
+
export { grepScriptsHandlerAsync, type GrepResult, type GrepOptions, } from './explorer/grep/grep.js';
|
|
13
17
|
export { execHandlerAsync, type ExecOptions, type ExecResult, } from './console/exec/exec.js';
|
|
14
18
|
export { runHandlerAsync, type RunOptions, type RunResult, } from './console/exec/exec.js';
|
|
15
19
|
export { launchHandlerAsync, type LaunchOptions, type LaunchResult, } from './process/launch/launch.js';
|
|
16
20
|
export { connectHandlerAsync, type ConnectOptions, type ConnectResult, } from './connect.js';
|
|
17
21
|
export { disconnectHandler, type DisconnectResult } from './disconnect.js';
|
|
22
|
+
export { playtestStartHandlerAsync, type PlaytestStartOptions, type PlaytestStartResult, } from './playtest/start/start.js';
|
|
23
|
+
export { playtestStopHandlerAsync, type PlaytestStopOptions, type PlaytestStopResult, } from './playtest/stop/stop.js';
|
|
24
|
+
export { playtestRunHandlerAsync, type PlaytestRunOptions, type PlaytestRunResult, } from './playtest/run/run.js';
|
|
25
|
+
export { playtestRestartHandlerAsync, type PlaytestRestartOptions, } from './playtest/restart/restart.js';
|
|
26
|
+
export { playtestPlayerListHandlerAsync, type PlaytestPlayerListResult, } from './playtest/player/list/list.js';
|
|
27
|
+
export { playtestPlayerAddHandlerAsync, type PlaytestPlayerAddResult, } from './playtest/player/add/add.js';
|
|
28
|
+
export { playtestPlayerRemoveHandlerAsync, type PlaytestPlayerRemoveResult, } from './playtest/player/remove/remove.js';
|
|
18
29
|
export { processRunHandlerAsync, type ProcessRunOptions, type ProcessRunResult, } from './process/run/run.js';
|
|
19
30
|
export { processCloseHandlerAsync, type ProcessCloseResult, } from './process/close/close.js';
|
|
20
31
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,wBAAwB,EACxB,KAAK,cAAc,GACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,iBAAiB,EACjB,KAAK,YAAY,EACjB,KAAK,WAAW,GACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,yBAAyB,EACzB,KAAK,mBAAmB,GACzB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,2BAA2B,EAC3B,KAAK,qBAAqB,GAC3B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,sBAAsB,EACtB,KAAK,WAAW,GACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,qBAAqB,EACrB,KAAK,UAAU,EACf,KAAK,WAAW,GACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,6BAA6B,EAC7B,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,GACvB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,0BAA0B,EAC1B,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,aAAa,GACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,gBAAgB,EAChB,KAAK,WAAW,EAChB,KAAK,UAAU,GAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,eAAe,EACf,KAAK,UAAU,EACf,KAAK,SAAS,GACf,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,kBAAkB,EAClB,KAAK,aAAa,EAClB,KAAK,YAAY,GAClB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,mBAAmB,EACnB,KAAK,cAAc,EACnB,KAAK,aAAa,GACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,iBAAiB,EAAE,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EACL,sBAAsB,EACtB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,wBAAwB,EACxB,KAAK,kBAAkB,GACxB,MAAM,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,wBAAwB,EACxB,KAAK,cAAc,GACpB,MA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B,KAAK,cAAc,EACnB,KAAK,aAAa,GACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,iBAAiB,EAAE,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EACL,yBAAyB,EACzB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,wBAAwB,EACxB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,GACxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,uBAAuB,EACvB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,GACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,2BAA2B,EAC3B,KAAK,sBAAsB,GAC5B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,8BAA8B,EAC9B,KAAK,wBAAwB,GAC9B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,6BAA6B,EAC7B,KAAK,uBAAuB,GAC7B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,gCAAgC,EAChC,KAAK,0BAA0B,GAChC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,sBAAsB,EACtB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,wBAAwB,EACxB,KAAK,kBAAkB,GACxB,MAAM,0BAA0B,CAAC"}
|
|
@@ -10,11 +10,22 @@ export { queryStateHandlerAsync, } from './process/info/info.js';
|
|
|
10
10
|
export { queryLogsHandlerAsync, } from './console/logs/logs.js';
|
|
11
11
|
export { captureScreenshotHandlerAsync, } from './viewport/screenshot/screenshot.js';
|
|
12
12
|
export { queryDataModelHandlerAsync, } from './explorer/query/query.js';
|
|
13
|
+
export { exportInstancesHandlerAsync, } from './explorer/export/export.js';
|
|
14
|
+
export { importInstancesHandlerAsync, } from './explorer/import/import.js';
|
|
15
|
+
export { findInstancesHandlerAsync, } from './explorer/find/find.js';
|
|
16
|
+
export { grepScriptsHandlerAsync, } from './explorer/grep/grep.js';
|
|
13
17
|
export { execHandlerAsync, } from './console/exec/exec.js';
|
|
14
18
|
export { runHandlerAsync, } from './console/exec/exec.js';
|
|
15
19
|
export { launchHandlerAsync, } from './process/launch/launch.js';
|
|
16
20
|
export { connectHandlerAsync, } from './connect.js';
|
|
17
21
|
export { disconnectHandler } from './disconnect.js';
|
|
22
|
+
export { playtestStartHandlerAsync, } from './playtest/start/start.js';
|
|
23
|
+
export { playtestStopHandlerAsync, } from './playtest/stop/stop.js';
|
|
24
|
+
export { playtestRunHandlerAsync, } from './playtest/run/run.js';
|
|
25
|
+
export { playtestRestartHandlerAsync, } from './playtest/restart/restart.js';
|
|
26
|
+
export { playtestPlayerListHandlerAsync, } from './playtest/player/list/list.js';
|
|
27
|
+
export { playtestPlayerAddHandlerAsync, } from './playtest/player/add/add.js';
|
|
28
|
+
export { playtestPlayerRemoveHandlerAsync, } from './playtest/player/remove/remove.js';
|
|
18
29
|
export { processRunHandlerAsync, } from './process/run/run.js';
|
|
19
30
|
export { processCloseHandlerAsync, } from './process/close/close.js';
|
|
20
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,wBAAwB,GAEzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,iBAAiB,GAGlB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,yBAAyB,GAE1B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,2BAA2B,GAE5B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,sBAAsB,GAEvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,qBAAqB,GAGtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,6BAA6B,GAG9B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,0BAA0B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AChC,OAAO,EACL,kBAAkB,GAGnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,mBAAmB,GAGpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,iBAAiB,EAAyB,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EACL,yBAAyB,GAG1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,wBAAwB,GAGzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,uBAAuB,GAGxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,2BAA2B,GAE5B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,8BAA8B,GAE/B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,6BAA6B,GAE9B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,gCAAgC,GAEjC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,sBAAsB,GAGvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,wBAAwB,GAEzB,MAAM,0BAA0B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inject-credentials.d.ts","sourceRoot":"","sources":["../../../../../src/commands/linux/inject-credentials/inject-credentials.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,UAAU,QAAQ;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,UAAU;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAcD,wBAAsB,6BAA6B,CACjD,IAAI,EAAE,QAAQ,GACb,OAAO,CAAC,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"inject-credentials.d.ts","sourceRoot":"","sources":["../../../../../src/commands/linux/inject-credentials/inject-credentials.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,UAAU,QAAQ;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,UAAU;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAcD,wBAAsB,6BAA6B,CACjD,IAAI,EAAE,QAAQ,GACb,OAAO,CAAC,UAAU,CAAC,CA6DrB;AAED,eAAO,MAAM,6BAA6B,qFAkBxC,CAAC"}
|
|
@@ -22,8 +22,7 @@ export async function injectCredentialsHandlerAsync(args) {
|
|
|
22
22
|
try {
|
|
23
23
|
const envError = await checkLinuxEnvironmentAsync();
|
|
24
24
|
if (envError) {
|
|
25
|
-
|
|
26
|
-
process.exit(1);
|
|
25
|
+
return { success: false, summary: envError };
|
|
27
26
|
}
|
|
28
27
|
const linux = await import('../../../linux/index.js');
|
|
29
28
|
const config = linux.resolveLinuxConfig();
|
|
@@ -67,7 +66,6 @@ export async function injectCredentialsHandlerAsync(args) {
|
|
|
67
66
|
}
|
|
68
67
|
catch (err) {
|
|
69
68
|
const message = err instanceof Error ? err.message : String(err);
|
|
70
|
-
OutputHelper.error(message);
|
|
71
69
|
return { success: false, summary: message };
|
|
72
70
|
}
|
|
73
71
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inject-credentials.js","sourceRoot":"","sources":["../../../../../src/commands/linux/inject-credentials/inject-credentials.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAW/E,SAAS,cAAc;IACrB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,IAAI,IAAI,GAAG,EAAE,CAAC;QACd,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QACnC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE;YACjC,IAAI,IAAI,KAAK,CAAC;QAChB,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QAC7C,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,6BAA6B,CACjD,IAAc;IAEd,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,0BAA0B,EAAE,CAAC;QACpD,IAAI,QAAQ,EAAE,CAAC;YACb,
|
|
1
|
+
{"version":3,"file":"inject-credentials.js","sourceRoot":"","sources":["../../../../../src/commands/linux/inject-credentials/inject-credentials.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAW/E,SAAS,cAAc;IACrB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,IAAI,IAAI,GAAG,EAAE,CAAC;QACd,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QACnC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE;YACjC,IAAI,IAAI,KAAK,CAAC;QAChB,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,GAA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@@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../../../../src/commands/linux/setup/setup.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,UAAU,SAAS;IACjB,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,UAAU,WAAW;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../../../../src/commands/linux/setup/setup.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,UAAU,SAAS;IACjB,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,UAAU,WAAW;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,CA6F7E;AAED,eAAO,MAAM,iBAAiB,uFAwB5B,CAAC"}
|
|
@@ -10,8 +10,7 @@ export async function setupHandlerAsync(args) {
|
|
|
10
10
|
try {
|
|
11
11
|
const envError = await checkLinuxEnvironmentAsync();
|
|
12
12
|
if (envError) {
|
|
13
|
-
|
|
14
|
-
process.exit(1);
|
|
13
|
+
return { success: false, summary: envError };
|
|
15
14
|
}
|
|
16
15
|
const linux = await import('../../../linux/index.js');
|
|
17
16
|
const config = linux.resolveLinuxConfig();
|
|
@@ -76,7 +75,6 @@ export async function setupHandlerAsync(args) {
|
|
|
76
75
|
}
|
|
77
76
|
catch (err) {
|
|
78
77
|
const message = err instanceof Error ? err.message : String(err);
|
|
79
|
-
OutputHelper.error(message);
|
|
80
78
|
return { success: false, summary: message };
|
|
81
79
|
}
|
|
82
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../../../../src/commands/linux/setup/setup.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAe/E,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,IAAe;IACrD,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,0BAA0B,EAAE,CAAC;QACpD,IAAI,QAAQ,EAAE,CAAC;YACb,
|
|
1
|
+
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../../../../src/commands/linux/setup/setup.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAe/E,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,IAAe;IACrD,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,0BAA0B,EAAE,CAAC;QACpD,IAAI,QAAQ,EAAE,CAAC;YACb,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QAC/C,CAAC;QA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;SACtD,CAAC;IACJ,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,OAAO,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACjE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IAC9C,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAyB;IACrE,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,OAAO;IACb,WAAW,EACT,oGAAoG;IACtG,QAAQ,EAAE,gBAAgB;IAC1B,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,YAAY;IACnB,IAAI,EAAE;QACJ,cAAc,EAAE,GAAG,CAAC,IAAI,CAAC;YACvB,WAAW,EAAE,yDAAyD;SACvE,CAAC;QACF,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC;YAC3B,WAAW,EAAE,gDAAgD;SAC9D,CAAC;QACF,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC;YACvB,WAAW,EAAE,wCAAwC;SACtD,CAAC;QACF,cAAc,EAAE,GAAG,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,sBAAsB,EAAE,CAAC;QACjE,KAAK,EAAE,GAAG,CAAC,IAAI,CAAC;YACd,WAAW,EAAE,2CAA2C;SACzD,CAAC;KACH;IACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC;CACjD,CAAC,CAAC"}
|
|
@@ -10,14 +10,20 @@ interface PrerequisiteStatus {
|
|
|
10
10
|
version?: string;
|
|
11
11
|
hint?: string;
|
|
12
12
|
}
|
|
13
|
-
interface StatusResult {
|
|
13
|
+
export interface StatusResult {
|
|
14
|
+
/** False only when the check could not run; an unhealthy environment still reports. */
|
|
15
|
+
success: boolean;
|
|
14
16
|
healthy: boolean;
|
|
17
|
+
summary: string;
|
|
18
|
+
error?: string;
|
|
15
19
|
prerequisites: PrerequisiteStatus[];
|
|
16
20
|
display: {
|
|
21
|
+
name?: string;
|
|
17
22
|
xvfb: boolean;
|
|
18
23
|
openbox: boolean;
|
|
19
24
|
};
|
|
20
25
|
studio: {
|
|
26
|
+
dir?: string;
|
|
21
27
|
installed: boolean;
|
|
22
28
|
version?: string;
|
|
23
29
|
fflags: boolean;
|
|
@@ -25,10 +31,12 @@ interface StatusResult {
|
|
|
25
31
|
};
|
|
26
32
|
auth: {
|
|
27
33
|
writeCredExe: boolean;
|
|
34
|
+
winePrefix: boolean;
|
|
28
35
|
credentialsInjected: boolean;
|
|
29
36
|
};
|
|
30
37
|
}
|
|
31
38
|
export declare function statusHandlerAsync(_args: StatusArgs): Promise<StatusResult>;
|
|
39
|
+
export declare function formatStatusText(result: StatusResult): string;
|
|
32
40
|
export declare const linuxStatusCommand: import("../../framework/define-command.js").CommandDefinition<StatusArgs, StatusResult>;
|
|
33
41
|
export {};
|
|
34
42
|
//# sourceMappingURL=status.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../../../src/commands/linux/status/status.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,UAAU,UAAU;CAAG;AAEvB,UAAU,kBAAkB;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../../../src/commands/linux/status/status.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,UAAU,UAAU;CAAG;AAEvB,UAAU,kBAAkB;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,uFAAuF;IACvF,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,kBAAkB,EAAE,CAAC;IACpC,OAAO,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAC5D,MAAM,EAAE;QACN,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,OAAO,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,OAAO,CAAC;QAChB,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;IACF,IAAI,EAAE;QACJ,YAAY,EAAE,OAAO,CAAC;QACtB,UAAU,EAAE,OAAO,CAAC;QACpB,mBAAmB,EAAE,OAAO,CAAC;KAC9B,CAAC;CACH;AA4BD,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,UAAU,GAChB,OAAO,CAAC,YAAY,CAAC,CA4DvB;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAuC7D;AAED,eAAO,MAAM,kBAAkB,yFAa7B,CAAC"}
|
|
@@ -15,111 +15,88 @@ async function fileExistsAsync(filePath) {
|
|
|
15
15
|
return false;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
+
function unhealthy(error) {
|
|
19
|
+
return {
|
|
20
|
+
success: false,
|
|
21
|
+
healthy: false,
|
|
22
|
+
summary: error,
|
|
23
|
+
error,
|
|
24
|
+
prerequisites: [],
|
|
25
|
+
display: { xvfb: false, openbox: false },
|
|
26
|
+
studio: { installed: false, fflags: false, shaders: false },
|
|
27
|
+
auth: {
|
|
28
|
+
writeCredExe: false,
|
|
29
|
+
winePrefix: false,
|
|
30
|
+
credentialsInjected: false,
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
}
|
|
18
34
|
export async function statusHandlerAsync(_args) {
|
|
19
35
|
try {
|
|
20
36
|
const envError = await checkLinuxEnvironmentAsync();
|
|
21
37
|
if (envError) {
|
|
22
|
-
|
|
23
|
-
process.exit(1);
|
|
38
|
+
return unhealthy(envError);
|
|
24
39
|
}
|
|
25
40
|
const linux = await import('../../../linux/index.js');
|
|
26
41
|
const config = linux.resolveLinuxConfig();
|
|
27
|
-
|
|
28
|
-
// 1. Prerequisites
|
|
29
|
-
OutputHelper.info('System prerequisites:');
|
|
30
|
-
const prereqs = linux.checkPrerequisites();
|
|
31
|
-
for (const p of prereqs) {
|
|
32
|
-
const status = p.available
|
|
33
|
-
? ` OK ${p.name}${p.version ? ` (${p.version})` : ''}`
|
|
34
|
-
: ` MISSING ${p.name} — ${p.hint}`;
|
|
35
|
-
if (p.available) {
|
|
36
|
-
OutputHelper.info(status);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
OutputHelper.error(status);
|
|
40
|
-
allOk = false;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
// 2. Display
|
|
42
|
+
const prerequisites = linux.checkPrerequisites();
|
|
44
43
|
const displayNum = config.display.replace(':', '');
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
OutputHelper.info('Display:');
|
|
49
|
-
OutputHelper.info(` Xvfb (${config.display}): ${xvfbOk ? 'running' : 'not running'}`);
|
|
50
|
-
OutputHelper.info(` openbox: ${openboxOk ? 'running' : 'not running'}`);
|
|
51
|
-
if (!xvfbOk || !openboxOk)
|
|
52
|
-
allOk = false;
|
|
53
|
-
// 3. Studio installation
|
|
54
|
-
OutputHelper.info('');
|
|
55
|
-
OutputHelper.info('Studio installation:');
|
|
56
|
-
const studioExists = await fileExistsAsync(config.studioExe);
|
|
57
|
-
OutputHelper.info(` ${config.studioDir}: ${studioExists ? 'installed' : 'not found'}`);
|
|
58
|
-
if (!studioExists)
|
|
59
|
-
allOk = false;
|
|
44
|
+
const xvfb = linux.isXvfbRunning(displayNum);
|
|
45
|
+
const openbox = linux.isOpenboxRunning();
|
|
46
|
+
const installed = await fileExistsAsync(config.studioExe);
|
|
60
47
|
const { readInstalledVersionAsync } = await import('../../../linux/linux-version-resolver.js');
|
|
61
48
|
const version = await readInstalledVersionAsync(config.studioDir);
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
// 4. FFlags
|
|
66
|
-
const fflagsExist = await fileExistsAsync(config.clientSettingsPath);
|
|
67
|
-
OutputHelper.info(` FFlags: ${fflagsExist ? 'configured' : 'not found'}`);
|
|
68
|
-
// 5. Shaders
|
|
69
|
-
const shadersExist = await fileExistsAsync(`${config.shadersDir}/shaders_glsl3.pack`);
|
|
70
|
-
OutputHelper.info(` Shaders: ${shadersExist ? 'present' : 'not found'}`);
|
|
71
|
-
// 6. Credentials
|
|
72
|
-
OutputHelper.info('');
|
|
73
|
-
OutputHelper.info('Authentication:');
|
|
74
|
-
const writeCredExists = await fileExistsAsync(config.writeCredExe);
|
|
75
|
-
OutputHelper.info(` write-cred.exe: ${writeCredExists ? 'compiled' : 'not found'}`);
|
|
76
|
-
// Check Wine registry for credential entries
|
|
77
|
-
let credentialsInjected = false;
|
|
49
|
+
const fflags = await fileExistsAsync(config.clientSettingsPath);
|
|
50
|
+
const shaders = await fileExistsAsync(`${config.shadersDir}/shaders_glsl3.pack`);
|
|
51
|
+
const writeCredExe = await fileExistsAsync(config.writeCredExe);
|
|
78
52
|
const wineRegPath = `${config.winePrefix}/user.reg`;
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
else {
|
|
88
|
-
OutputHelper.info(' Wine prefix: not initialized');
|
|
89
|
-
allOk = false;
|
|
90
|
-
}
|
|
91
|
-
// Summary
|
|
92
|
-
OutputHelper.info('');
|
|
93
|
-
if (allOk) {
|
|
94
|
-
OutputHelper.info('Environment is ready for Studio.');
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
OutputHelper.warn('Environment has issues. See above for details.');
|
|
98
|
-
}
|
|
53
|
+
const winePrefix = await fileExistsAsync(wineRegPath);
|
|
54
|
+
const credentialsInjected = winePrefix &&
|
|
55
|
+
(await fs.readFile(wineRegPath, 'utf-8')).includes('RobloxStudioAuth');
|
|
56
|
+
const healthy = prerequisites.every((p) => p.available) &&
|
|
57
|
+
xvfb &&
|
|
58
|
+
openbox &&
|
|
59
|
+
installed &&
|
|
60
|
+
credentialsInjected;
|
|
99
61
|
return {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
62
|
+
success: true,
|
|
63
|
+
healthy,
|
|
64
|
+
summary: healthy
|
|
65
|
+
? 'Environment is ready for Studio.'
|
|
66
|
+
: 'Environment has issues. See above for details.',
|
|
67
|
+
prerequisites,
|
|
68
|
+
display: { name: config.display, xvfb, openbox },
|
|
103
69
|
studio: {
|
|
104
|
-
|
|
70
|
+
dir: config.studioDir,
|
|
71
|
+
installed,
|
|
105
72
|
version: version ?? undefined,
|
|
106
|
-
fflags
|
|
107
|
-
shaders
|
|
73
|
+
fflags,
|
|
74
|
+
shaders,
|
|
108
75
|
},
|
|
109
|
-
auth: { writeCredExe
|
|
76
|
+
auth: { writeCredExe, winePrefix, credentialsInjected },
|
|
110
77
|
};
|
|
111
78
|
}
|
|
112
79
|
catch (err) {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
80
|
+
return unhealthy(err instanceof Error ? err.message : String(err));
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
export function formatStatusText(result) {
|
|
84
|
+
if (result.error)
|
|
85
|
+
return OutputHelper.formatError(result.error);
|
|
86
|
+
const { prerequisites, display, studio, auth } = result;
|
|
87
|
+
const lines = ['System prerequisites:'];
|
|
88
|
+
for (const p of prerequisites) {
|
|
89
|
+
lines.push(p.available
|
|
90
|
+
? ` OK ${p.name}${p.version ? ` (${p.version})` : ''}`
|
|
91
|
+
: OutputHelper.formatError(` MISSING ${p.name} — ${p.hint}`));
|
|
122
92
|
}
|
|
93
|
+
lines.push('', 'Display:', ` Xvfb (${display.name}): ${display.xvfb ? 'running' : 'not running'}`, ` openbox: ${display.openbox ? 'running' : 'not running'}`, '', 'Studio installation:', ` ${studio.dir}: ${studio.installed ? 'installed' : 'not found'}`);
|
|
94
|
+
if (studio.version)
|
|
95
|
+
lines.push(` Version: ${studio.version}`);
|
|
96
|
+
lines.push(` FFlags: ${studio.fflags ? 'configured' : 'not found'}`, ` Shaders: ${studio.shaders ? 'present' : 'not found'}`, '', 'Authentication:', ` write-cred.exe: ${auth.writeCredExe ? 'compiled' : 'not found'}`, auth.winePrefix
|
|
97
|
+
? ` Wine credentials: ${auth.credentialsInjected ? 'present' : 'not injected'}`
|
|
98
|
+
: ' Wine prefix: not initialized', '', result.healthy ? result.summary : OutputHelper.formatWarning(result.summary));
|
|
99
|
+
return lines.join('\n');
|
|
123
100
|
}
|
|
124
101
|
export const linuxStatusCommand = defineCommand({
|
|
125
102
|
group: 'linux',
|
|
@@ -129,6 +106,9 @@ export const linuxStatusCommand = defineCommand({
|
|
|
129
106
|
safety: 'none',
|
|
130
107
|
scope: 'standalone',
|
|
131
108
|
args: {},
|
|
109
|
+
cli: {
|
|
110
|
+
format: formatStatusText,
|
|
111
|
+
},
|
|
132
112
|
handler: async (args) => statusHandlerAsync(args),
|
|
133
113
|
});
|
|
134
114
|
//# sourceMappingURL=status.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../../../../src/commands/linux/status/status.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,MAAM,aAAa,CAAC;AAClC,OAA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KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAA2B;IACxE,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,QAAQ;IACd,WAAW,EACT,yFAAyF;IAC3F,QAAQ,EAAE,gBAAgB;IAC1B,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,YAAY;IACnB,IAAI,EAAE,EAAE;IACR,GAAG,EAAE;QACH,MAAM,EAAE,gBAAgB;KACzB;IACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,kBAAkB,CAAC,IAAI,CAAC;CAClD,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `playtest player add` — add players to the running multiplayer test.
|
|
3
|
+
*/
|
|
4
|
+
import type { BridgeConnection } from '../../../../bridge/index.js';
|
|
5
|
+
import { type PlaytestPlayer } from '../playtest-players.js';
|
|
6
|
+
export interface PlaytestPlayerAddResult {
|
|
7
|
+
players: PlaytestPlayer[];
|
|
8
|
+
summary: string;
|
|
9
|
+
}
|
|
10
|
+
interface PlaytestPlayerAddArgs {
|
|
11
|
+
count?: number;
|
|
12
|
+
}
|
|
13
|
+
export declare function playtestPlayerAddHandlerAsync(connection: BridgeConnection, count: number, target?: string): Promise<PlaytestPlayerAddResult>;
|
|
14
|
+
export declare function formatPlayerAddText(result: PlaytestPlayerAddResult): string;
|
|
15
|
+
export declare const playtestPlayerAddCommand: import("../../../framework/define-command.js").CommandDefinition<PlaytestPlayerAddArgs, PlaytestPlayerAddResult>;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=add.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/playtest/player/add/add.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,qBAAqB;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAsB,6BAA6B,CACjD,UAAU,EAAE,gBAAgB,EAC5B,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,uBAAuB,CAAC,CAsBlC;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,uBAAuB,GAAG,MAAM,CAI3E;AAED,eAAO,MAAM,wBAAwB,kHA2BnC,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `playtest player add` — add players to the running multiplayer test.
|
|
3
|
+
*/
|
|
4
|
+
import { defineCommand } from '../../../framework/define-command.js';
|
|
5
|
+
import { arg } from '../../../framework/arg-builder.js';
|
|
6
|
+
import { resolvePlaytestServerSessionAsync } from '../../playtest-sessions.js';
|
|
7
|
+
import { addPlaytestPlayersAsync, formatPlayersTable, } from '../playtest-players.js';
|
|
8
|
+
export async function playtestPlayerAddHandlerAsync(connection, count, target) {
|
|
9
|
+
if (!Number.isInteger(count) || count < 1) {
|
|
10
|
+
throw new Error(`Player count must be a whole number of at least 1`);
|
|
11
|
+
}
|
|
12
|
+
const serverSession = await resolvePlaytestServerSessionAsync(connection, target);
|
|
13
|
+
const players = await addPlaytestPlayersAsync(connection, serverSession, count);
|
|
14
|
+
return {
|
|
15
|
+
players,
|
|
16
|
+
summary: players.length < count
|
|
17
|
+
? `Added ${players.length} of ${count} player(s); the rest did not join in time`
|
|
18
|
+
: `Added ${players.length} player(s)`,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export function formatPlayerAddText(result) {
|
|
22
|
+
return result.players.length === 0
|
|
23
|
+
? result.summary
|
|
24
|
+
: `${result.summary}\n${formatPlayersTable(result.players)}`;
|
|
25
|
+
}
|
|
26
|
+
export const playtestPlayerAddCommand = defineCommand({
|
|
27
|
+
group: 'playtest player',
|
|
28
|
+
name: 'add',
|
|
29
|
+
description: 'Add players to the running multiplayer test (playtest start --players)',
|
|
30
|
+
category: 'execution',
|
|
31
|
+
safety: 'mutate',
|
|
32
|
+
scope: 'connection',
|
|
33
|
+
args: {
|
|
34
|
+
count: arg.positional({
|
|
35
|
+
description: 'How many players to add',
|
|
36
|
+
type: 'number',
|
|
37
|
+
required: false,
|
|
38
|
+
}),
|
|
39
|
+
},
|
|
40
|
+
cli: {
|
|
41
|
+
format: formatPlayerAddText,
|
|
42
|
+
},
|
|
43
|
+
handler: async (connection, args, targeting) => playtestPlayerAddHandlerAsync(connection, args.count ?? 1, targeting.target),
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=add.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.js","sourceRoot":"","sources":["../../../../../../src/commands/playtest/player/add/add.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAExD,OAAO,EAAE,iCAAiC,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EACL,uBAAuB,EACvB,kBAAkB,GAEnB,MAAM,wBAAwB,CAAC;AAWhC,MAAM,CAAC,KAAK,UAAU,6BAA6B,CACjD,UAA4B,EAC5B,KAAa,EACb,MAAe;IAEf,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;QAC1C,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;IACvE,CAAC;IAED,MAAM,aAAa,GAAG,MAAM,iCAAiC,CAC3D,UAAU,EACV,MAAM,CACP,CAAC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} from '../../../../bridge/index.js';
|
|
5
|
+
import { type PlaytestPlayer } from '../playtest-players.js';
|
|
6
|
+
export interface PlaytestPlayerListResult {
|
|
7
|
+
players: PlaytestPlayer[];
|
|
8
|
+
summary: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function playtestPlayerListHandlerAsync(connection: BridgeConnection, target?: string): Promise<PlaytestPlayerListResult>;
|
|
11
|
+
export declare function formatPlayerListText(result: PlaytestPlayerListResult): string;
|
|
12
|
+
export declare const playtestPlayerListCommand: import("../../../framework/define-command.js").CommandDefinition<Record<string, never>, PlaytestPlayerListResult>;
|
|
13
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/playtest/player/list/list.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAsB,8BAA8B,CAClD,UAAU,EAAE,gBAAgB,EAC5B,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,wBAAwB,CAAC,CAWnC;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,wBAAwB,GAAG,MAAM,CAI7E;AAED,eAAO,MAAM,yBAAyB,mHAgBpC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `playtest player list` — list the players in the running playtest.
|
|
3
|
+
*/
|
|
4
|
+
import { defineCommand } from '../../../framework/define-command.js';
|
|
5
|
+
import { resolvePlaytestServerSessionAsync } from '../../playtest-sessions.js';
|
|
6
|
+
import { formatPlayersTable, listPlaytestPlayersAsync, } from '../playtest-players.js';
|
|
7
|
+
export async function playtestPlayerListHandlerAsync(connection, target) {
|
|
8
|
+
const serverSession = await resolvePlaytestServerSessionAsync(connection, target);
|
|
9
|
+
const players = await listPlaytestPlayersAsync(connection, serverSession);
|
|
10
|
+
return {
|
|
11
|
+
players,
|
|
12
|
+
summary: `${players.length} player(s) in the playtest`,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export function formatPlayerListText(result) {
|
|
16
|
+
return result.players.length === 0
|
|
17
|
+
? 'No players in the playtest'
|
|
18
|
+
: formatPlayersTable(result.players);
|
|
19
|
+
}
|
|
20
|
+
export const playtestPlayerListCommand = defineCommand({
|
|
21
|
+
group: 'playtest player',
|
|
22
|
+
name: 'list',
|
|
23
|
+
description: 'List the players in the running playtest',
|
|
24
|
+
category: 'execution',
|
|
25
|
+
safety: 'read',
|
|
26
|
+
scope: 'connection',
|
|
27
|
+
args: {},
|
|
28
|
+
cli: {
|
|
29
|
+
format: formatPlayerListText,
|
|
30
|
+
},
|
|
31
|
+
handler: async (connection, _args, targeting) => playtestPlayerListHandlerAsync(connection, targeting.target),
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../../src/commands/playtest/player/list/list.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAErE,OAAO,EAAE,iCAAiC,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EACL,kBAAkB,EAClB,wBAAwB,GAEzB,MAAM,wBAAwB,CAAC;AAOhC,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAClD,UAA4B,EAC5B,MAAe;IAEf,MAAM,aAAa,GAAG,MAAM,iCAAiC,CAC3D,UAAU,EACV,MAAM,CACP,CAAC;IACF,MAAM,OAAO,GAAG,MAAM,wBAAwB,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;IAE1E,OAAO;QACL,OAAO;QACP,OAAO,EAAE,GAAG,OAAO,CAAC,MAAM,4BAA4B;KACvD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,MAAgC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC;QAChC,CAAC,CAAC,4BAA4B;QAC9B,CAAC,CAAC,kBAAkB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,CAAC,MAAM,yBAAyB,GAAG,aAAa,CAGpD;IACA,KAAK,EAAE,iBAAiB;IACxB,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,0CAA0C;IACvD,QAAQ,EAAE,WAAW;IACrB,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,YAAY;IACnB,IAAI,EAAE,EAAE;IACR,GAAG,EAAE;QACH,MAAM,EAAE,oBAAoB;KAC7B;IACD,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,CAC9C,8BAA8B,CAAC,UAAU,EAAE,SAAS,CAAC,MAAM,CAAC;CAC/D,CAAC,CAAC"}
|