@rizzmyrobot/mochi-cli 0.0.3 → 0.0.5
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 +41 -30
- package/dist/index.js +12640 -814
- package/migrations/0001_decision_traces.sql +36 -0
- package/migrations/0001_gateway_runs.sql +75 -0
- package/migrations/0001_memory_records.sql +23 -0
- package/migrations/0001_telegram_callback_state.sql +18 -0
- package/migrations/0001_wake_events.sql +50 -0
- package/migrations/0002_gateway_tool_invocations.sql +96 -0
- package/migrations/0002_telegram_delivery_records.sql +26 -0
- package/migrations/0002_wake_job_leases.sql +19 -0
- package/migrations/0003_contract_trust.sql +44 -0
- package/migrations/0003_telegram_bot_runtime_offsets.sql +5 -0
- package/migrations/0004_update_ledger.sql +46 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -174,12 +174,12 @@ explicit-config live Telegram delivery and Bot API polling primitives, tests,
|
|
|
174
174
|
and planning docs. The local V0 owner proof lives in
|
|
175
175
|
[`docs/runtime/v0-manual-proof.md`](docs/runtime/v0-manual-proof.md).
|
|
176
176
|
|
|
177
|
-
Mochi still does not publish player packages, host
|
|
178
|
-
ingress by default, expose public dashboard
|
|
179
|
-
control panels, run production Prom13us/Rizz
|
|
180
|
-
contracts and server-validated proofs, support
|
|
181
|
-
arbitrary live MCP tools, provide hosted accounts, or
|
|
182
|
-
trusted game-owned validation.
|
|
177
|
+
Mochi still does not publish preferred `@mochi/*` player packages, host
|
|
178
|
+
certification, open live HTTP ingress by default, expose public dashboard
|
|
179
|
+
ingress, provide dashboard game control panels, run production Prom13us/Rizz
|
|
180
|
+
play outside compatible-game contracts and server-validated proofs, support
|
|
181
|
+
unsupported games, execute arbitrary live MCP tools, provide hosted accounts, or
|
|
182
|
+
mutate game canon outside trusted game-owned validation.
|
|
183
183
|
|
|
184
184
|
Mochi uses the Apache-2.0 license. See `CONTRIBUTING.md`, `SECURITY.md`, and
|
|
185
185
|
`PRIVACY.md` before opening public contributions, reporting vulnerabilities, or
|
|
@@ -192,28 +192,34 @@ as a default.
|
|
|
192
192
|
|
|
193
193
|
## Player Install
|
|
194
194
|
|
|
195
|
-
Mochi is pre-alpha, and
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
195
|
+
Mochi is pre-alpha, and the fallback CLI package is registry-proven at
|
|
196
|
+
`@rizzmyrobot/mochi-cli@0.0.4` by trusted publishing plus
|
|
197
|
+
`npm view @rizzmyrobot/mochi-cli@0.0.4` proof. The public player install path is npm/npx,
|
|
198
|
+
not cloning the repository and running Bun.
|
|
199
199
|
|
|
200
200
|
Because `@mochi/*` npm ownership is not proven, the fallback package scope is
|
|
201
|
-
the current public install target. The
|
|
201
|
+
the current public install target. The one-line player install is:
|
|
202
202
|
|
|
203
203
|
```bash
|
|
204
204
|
npm install -g @rizzmyrobot/mochi-cli
|
|
205
205
|
mochi onboard
|
|
206
206
|
```
|
|
207
207
|
|
|
208
|
-
`mochi onboard` is the player first-run command.
|
|
209
|
-
|
|
210
|
-
Telegram
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
208
|
+
`mochi onboard` is the player first-run command. In an interactive terminal it
|
|
209
|
+
runs a real guided setup: choose MiniMax OAuth, OpenAI API key, or Codex OAuth;
|
|
210
|
+
choose Telegram, Discord, or no channel; seed the proof workspace; write local
|
|
211
|
+
runtime config refs; store local secrets; validate Telegram bot tokens with the
|
|
212
|
+
Bot API `getMe` check; and print the exact `mochi talk` / `mochi telegram
|
|
213
|
+
listen` proof commands to run next. Non-interactive `mochi onboard --guide`
|
|
214
|
+
remains a no-write preview for CI, docs, and scripts.
|
|
215
|
+
|
|
216
|
+
MiniMax OAuth, OpenAI API-key refs, Telegram config, workspace seed files,
|
|
217
|
+
local provider credential refs, and local Telegram token refs reuse the existing
|
|
218
|
+
provider auth, configure, proof workspace seed, Telegram, Gateway, and
|
|
219
|
+
secret-store packages. Codex OAuth runs the external `codex login` path, but it
|
|
220
|
+
is not yet a Mochi provider runtime for `mochi talk`. Discord is exposed as a
|
|
221
|
+
product choice, but it does not accept or store Discord bot tokens until a
|
|
222
|
+
Discord runtime package exists.
|
|
217
223
|
|
|
218
224
|
npx follows the same fallback scope:
|
|
219
225
|
|
|
@@ -234,16 +240,21 @@ npx @mochi/cli gateway status --dry-run
|
|
|
234
240
|
mochi onboard
|
|
235
241
|
```
|
|
236
242
|
|
|
237
|
-
Current public install `gateway start
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
243
|
+
Current public install `gateway start --profile local --foreground` can start
|
|
244
|
+
the proven local loopback Gateway; `gateway status` and `gateway doctor` can
|
|
245
|
+
probe that local service. Dry-run planning remains available for setup review,
|
|
246
|
+
and `gateway install-service --confirm` can write/remove reviewed local launchd
|
|
247
|
+
or gated VPS systemd files without loading or starting them. Interactive
|
|
248
|
+
`mochi onboard` may write local workspace seed files, runtime config refs, and
|
|
249
|
+
local secrets; MiniMax OAuth may open a browser, start a loopback callback
|
|
250
|
+
server, and call the provider token endpoint; Telegram setup may call only the
|
|
251
|
+
Bot API `getMe` validation endpoint. It does not call model providers, poll
|
|
252
|
+
Telegram, send Telegram messages, connect Discord, connect production games,
|
|
253
|
+
submit production intents, or change game canon. The separate credentialed
|
|
254
|
+
`talk` command can call a selected model provider for a local Mochi reply;
|
|
255
|
+
contributor/runtime docs describe the local owner proof for credentialed
|
|
256
|
+
provider and Telegram conversation, and the mock-game proof exercises a fixture
|
|
257
|
+
provider response plus a trusted local adapter receipt.
|
|
247
258
|
|
|
248
259
|
The local laptop Gateway install flow lives in
|
|
249
260
|
[`docs/gateway/local-install.md`](docs/gateway/local-install.md).
|