esim-cli 2026.1201.192 → 2026.1201.194
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 +6 -2
- package/dist/esim.js +6846 -6625
- package/dist/index.js +6837 -6687
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,6 +31,8 @@ esim profile
|
|
|
31
31
|
esim dm send 42 @message.txt
|
|
32
32
|
esim tutorial
|
|
33
33
|
esim tutorial --all
|
|
34
|
+
esim docs
|
|
35
|
+
esim docs first-day
|
|
34
36
|
esim profile avatar set --file avatar.svg
|
|
35
37
|
esim market buy --schema
|
|
36
38
|
```
|
|
@@ -47,6 +49,8 @@ Start each round with `esim today`. It shows your citizen stats, balances, first
|
|
|
47
49
|
|
|
48
50
|
Use `claim <task>` or `claim --chest` to collect one reward. Bare `claim` exits with code 2 and lists available rewards. Use `tutorial --all` to see the full tutorial route.
|
|
49
51
|
|
|
52
|
+
`esim docs` lists the built-in game guide offline: `SKILL.md` introduces it, `wiki/` pages explain the rules and `tutorials/` walk through a task such as the first day, buying with VAT and a price limit, travel, organizations and publishing. `esim docs <topic>` prints one page; the topic is the file name without `.md`. The guide is maintained in `cli/skills/esim/` and embedded by `bun run generate`.
|
|
53
|
+
|
|
50
54
|
`job list` shows your current wage and shift status when signed in. Each job offer shows its requirements and your eligibility. `gear` shows what you wear and which owned pieces you can equip in each slot.
|
|
51
55
|
|
|
52
56
|
`market buy --max-price` accepts a unit price and calculates the VAT-inclusive payment cap. Market and exchange purchase previews report any wallet shortfall. `travel --dry-run` shows both ticket inventories, the energy requirement, and whether you can make the trip.
|
|
@@ -68,13 +72,13 @@ const result = await runCommand(["today"], {
|
|
|
68
72
|
});
|
|
69
73
|
```
|
|
70
74
|
|
|
71
|
-
Set `authManaged` when the injected fetch applies authentication. Otherwise supply `credentials: { token }` or `credentials: { cookie }`. The read-only mode rejects game writes before fetching. `region` can record the map visit used by the tutorial. `commands` exposes command paths, summaries and write capability. `skills` contains the bundled
|
|
75
|
+
Set `authManaged` when the injected fetch applies authentication. Otherwise supply `credentials: { token }` or `credentials: { cookie }`. The read-only mode rejects game writes before fetching. `region` can record the map visit used by the tutorial. `commands` exposes command paths, summaries and write capability. `skills` contains the bundled `SKILL.md`, wiki and tutorial files from `cli/skills/esim/`, keyed by relative path.
|
|
72
76
|
|
|
73
77
|
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.
|
|
74
78
|
|
|
75
79
|
## Development
|
|
76
80
|
|
|
77
|
-
Run `bun run generate` in `cli/` after editing the OpenAPI specs or `skills/esim
|
|
81
|
+
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.
|
|
78
82
|
|
|
79
83
|
Run `bun run build` in `cli/` to build the npm package: `dist/index.js` (library: `agentProject`, `run(argv, io)`, `runCommand`, `commands`, `skills`; Web-standard APIs only) and `dist/esim.js` (the `esim` bin for Node and Bun, with the platform IO from `host-io.ts`). Both embed the dependencies, the skill files and the SVG renderer. `ESIM_CLI_VERSION` sets the version, otherwise `package.json`'s; the build also copies the repository's `LICENSE` into `cli/`. The test suite imports `dist/index.js` and runs `dist/esim.js` in Node and Bun. `run` receives files, stdin, the terminal, environment, `fetch`, the credential file, the browser opener and `esim upgrade` through `io`.
|
|
80
84
|
|