@luaward/cli 0.0.0-stage → 0.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/LICENSE +21 -0
- package/README.md +60 -2
- package/action.yml +46 -0
- package/dist/cli.js +1641 -0
- package/dist/cli.js.map +7 -0
- package/package.json +48 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Luaward (ATG)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,61 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @luaward/cli - Luaward CLI (v0.2.1)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Manage script sources, builds, kill switches, license keys, and error reports, and run or debug `.lua`/`.luau` files inside live Roblox game sessions from your terminal or CI.
|
|
4
|
+
|
|
5
|
+
## Installation (Early Access)
|
|
6
|
+
|
|
7
|
+
- Install from public npm (requires Node.js **20+**; the dashboard and `/api/ide` are currently in **Early Access** for accounts allowlisted in `EARLY_ACCESS_EMAILS`; see [luaward.com/docs](https://luaward.com/docs) and [github.com/luaward](https://github.com/luaward)):
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install -g @luaward/cli
|
|
11
|
+
luaward --version
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Or install from the official tarball, or build directly from the repository:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install -g https://luaward.com/luaward-cli.tgz
|
|
18
|
+
luaward --version
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Or build from a repository checkout:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pnpm --filter @luaward/cli build
|
|
25
|
+
node packages/cli/dist/cli.js --help
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
To rebuild and update the hosted tarball at `apps/web/public/luaward-cli.tgz`:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pnpm --filter @luaward/cli pack:public
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Credentials and scopes
|
|
35
|
+
|
|
36
|
+
The CLI authenticates with a personal token (**`lwm_...`**) against `https://luaward.com/api/ide` (do not pass a Developer API key `lwa_live_...`). Credentials are stored in `~/.config/luaward/credentials.json` (override with `LUAWARD_CONFIG_DIR`) or supplied via `LUAWARD_TOKEN=lwm_...`.
|
|
37
|
+
|
|
38
|
+
- `read`: view workspace, scripts, sessions, builds, and error lists.
|
|
39
|
+
- `manage`: read script source, deploy builds, toggle kill switch/preset, issue/list/reset license keys, and triage error reports (requires an auto-approved token mode).
|
|
40
|
+
- `control`: execute local files (`dev`), run snippets (`exec`), stop running scripts (`stop`), and generate game-pairing commands (`pair`).
|
|
41
|
+
|
|
42
|
+
## Commands
|
|
43
|
+
|
|
44
|
+
| Command | Description |
|
|
45
|
+
| --- | --- |
|
|
46
|
+
| `login`, `logout`, `status` | Sign in with 1-Click Allow in your browser (or `--token`), remove local credentials, and check workspace status |
|
|
47
|
+
| `init [--project <id-or-name>] [--merge\|--force] [--pull]` | Create `luaward.json` (guards against accidental overwrites; use `--merge` to add newly discovered scripts only) |
|
|
48
|
+
| `scripts [--project <id-or-name>]` | List scripts with Enable/Pause status, version, protection preset, and build state |
|
|
49
|
+
| `pull [alias-or-script-id] [--out <file>] [--stdout]` | Pull the latest source into files configured in `luaward.json` or a specific 32-hex script ID |
|
|
50
|
+
| `push [alias-or-file] [--preset fast\|balanced\|max] [--script <id>] [--new --project <id> --name <name>] [--no-wait] [--timeout <sec>]` | Upload source and wait until the build is ready (exits with code 1 on compile failure or timeout) |
|
|
51
|
+
| `toggle <target> [--enable\|--disable] [--preset <preset>]` | Enable/pause kill switch or change protection preset from your terminal |
|
|
52
|
+
| `sessions`, `pair` | List active connected game sessions and generate a `loadstring(...)()` pairing snippet for your executor |
|
|
53
|
+
| `dev [alias-or-file] [--script <id>] [--watch\|--no-watch] [--session <sid>] [--observe <1-30>] [--stop-on-exit]` | Run a local file inside a live game session and hot-reload on every save without overwriting production builds |
|
|
54
|
+
| `exec <luau-code\|@file.luau> [--session <sid>] [--no-wait]` | Execute an inline Luau snippet or file inside a live game session and stream console output |
|
|
55
|
+
| `stop [--session <sid>]` | Stop an active test script running in the connected game session |
|
|
56
|
+
| `keys list [--project <id>] [--limit <1-50>]` | List recent license keys in a project |
|
|
57
|
+
| `keys create [--project <id>] [--days <N>] [--note <text>] [--discord <id>]` | Issue a new license key (supports binding a 15-22 digit Discord ID) |
|
|
58
|
+
| `keys reset-hwid <key-or-discord-id> [--project <id>]` | Reset HWID binding for a license key |
|
|
59
|
+
| `errors [target] [--status open\|resolved\|ignored\|all]` | Inspect error reports (or resolve/ignore/reopen via `--resolve`, `--ignore`, `--reopen <error-id>`) |
|
|
60
|
+
|
|
61
|
+
All commands support `--json` / `-j` for CI and automation scripts, and automatically walk parent directories for `luaward.json` when executed from a subdirectory.
|
package/action.yml
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
name: "Luaward Deploy Action"
|
|
2
|
+
description: "Protect and deploy Roblox Luau scripts defined in luaward.json using a Luaward Personal Token (lwm_…)"
|
|
3
|
+
author: "Luaward"
|
|
4
|
+
branding:
|
|
5
|
+
icon: "shield"
|
|
6
|
+
color: "red"
|
|
7
|
+
inputs:
|
|
8
|
+
token:
|
|
9
|
+
description: "Luaward Personal Token (lwm_…) stored in GitHub Secrets"
|
|
10
|
+
required: true
|
|
11
|
+
target:
|
|
12
|
+
description: "Optional script alias or file from luaward.json (omit to deploy all scripts in luaward.json)"
|
|
13
|
+
required: false
|
|
14
|
+
default: ""
|
|
15
|
+
preset:
|
|
16
|
+
description: "Optional override protection preset (fast, balanced, max)"
|
|
17
|
+
required: false
|
|
18
|
+
default: ""
|
|
19
|
+
api_url:
|
|
20
|
+
description: "Luaward base URL"
|
|
21
|
+
required: false
|
|
22
|
+
default: "https://luaward.com"
|
|
23
|
+
working_directory:
|
|
24
|
+
description: "Directory containing luaward.json"
|
|
25
|
+
required: false
|
|
26
|
+
default: "."
|
|
27
|
+
runs:
|
|
28
|
+
using: "composite"
|
|
29
|
+
steps:
|
|
30
|
+
- name: Deploy with Luaward CLI
|
|
31
|
+
shell: bash
|
|
32
|
+
working-directory: ${{ inputs.working_directory }}
|
|
33
|
+
env:
|
|
34
|
+
LUAWARD_TOKEN: ${{ inputs.token }}
|
|
35
|
+
LUAWARD_API_URL: ${{ inputs.api_url }}
|
|
36
|
+
INPUT_TARGET: ${{ inputs.target }}
|
|
37
|
+
INPUT_PRESET: ${{ inputs.preset }}
|
|
38
|
+
run: |
|
|
39
|
+
ARGS=("push")
|
|
40
|
+
if [ -n "$INPUT_TARGET" ]; then
|
|
41
|
+
ARGS+=("$INPUT_TARGET")
|
|
42
|
+
fi
|
|
43
|
+
if [ -n "$INPUT_PRESET" ]; then
|
|
44
|
+
ARGS+=("--preset" "$INPUT_PRESET")
|
|
45
|
+
fi
|
|
46
|
+
npx --yes @luaward/cli "${ARGS[@]}"
|