esim-cli 2026.1202.213 → 2026.1202.214
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/README.md +23 -0
- package/dist/esim.js +513 -29
- package/dist/index.js +513 -29
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,6 +59,27 @@ Use `claim <task>` or `claim --chest` to collect one reward. Bare `claim` exits
|
|
|
59
59
|
|
|
60
60
|
`battle fight` returns a `requestId` and round. After an uncertain response, reuse the same parameters with `--request-id` and `--round`. Other uncertain writes return a `next` entry for checking the result.
|
|
61
61
|
|
|
62
|
+
## Administration
|
|
63
|
+
|
|
64
|
+
`esim admin --help` lists the commands available in the installed CLI. Supply the administrator's current `citizen=…` cookie through `ESIM_SESSION_COOKIE` using a private environment. The API checks the account's administrator role. Admin uses HTTPS, with HTTP allowed on loopback for local development. API requests reject redirects.
|
|
65
|
+
|
|
66
|
+
```sh
|
|
67
|
+
esim admin feedback list --status open --kind bug
|
|
68
|
+
esim admin feedback show 42 --json
|
|
69
|
+
esim admin feedback fix 42 --reply 'Available in the current release.' --dry-run
|
|
70
|
+
esim admin feedback fix 42 --reply 'Available in the current release.' --yes
|
|
71
|
+
esim admin feedback reject 43 --reply 'The observed result matches the rule.' --yes
|
|
72
|
+
esim admin feedback duplicate 44 42 --reply 'Tracked in report 42.' --yes
|
|
73
|
+
esim admin config show
|
|
74
|
+
esim admin config speed 2 --dry-run
|
|
75
|
+
esim admin config speed 2 --version "$ESIM_CONFIG_VERSION" --yes
|
|
76
|
+
esim admin log --limit 20
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Use `--dry-run` to preview a write or `--yes` to confirm it. When a verified fix is accepted, the server awards the submitter a Tester medal with 5 Gold. For the speed example, set `ESIM_CONFIG_VERSION` to the exact `version` from `config show` or the preview. A stale version returns a conflict. After a failed or interrupted write, read the current state before sending another write. `feedback list` and `log` accept `--limit` and `--cursor` and return the next cursor when another page is available. Add `--json` for structured output.
|
|
80
|
+
|
|
81
|
+
`esim admin account --help`, `esim admin content --help`, and `esim admin reports --help` cover account moderation, content removal, and queues for shout, article comment, citizen, and private-message reports.
|
|
82
|
+
|
|
62
83
|
## In-process use
|
|
63
84
|
|
|
64
85
|
```ts
|
|
@@ -78,6 +99,8 @@ Set `authManaged` when the injected fetch applies authentication. Otherwise supp
|
|
|
78
99
|
|
|
79
100
|
The `agentProject` export contains the in-process command, skills, opening command, timer and event wake defaults. The host can provide stdin and a file reader for message and avatar inputs.
|
|
80
101
|
|
|
102
|
+
The in-process `runCommand` and `agentProject` are for citizen commands. Run administrator commands through the standalone `esim` entry point with an explicit session cookie.
|
|
103
|
+
|
|
81
104
|
## Development
|
|
82
105
|
|
|
83
106
|
Run `bun run generate` in `cli/` after editing the OpenAPI specs or `cli/skills/esim/`; `skills.test.ts` fails when the embedded copy differs from disk. The declarations in `cli/commands/` also drive operation coverage. `cli/coverage.ts` records deferred and excluded operations.
|