@halcyonlabs/app 0.47.0-halcyon.535 → 0.47.0-halcyon.536
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/dist/index.d.ts +6 -6
- package/dist/index.js +3 -3
- package/host-daemon/dist/bb +5 -5
- package/host-daemon/dist/moonlet +5 -5
- package/host-daemon/dist/moonlet-chunks/{browser-IWODESQR.js → browser-SIZXMCFP.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/chunk-AMLYXV3N.js +2 -0
- package/host-daemon/dist/moonlet-chunks/{chunk-5DB6ILXS.js → chunk-AMRIL2T2.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{chunk-2YLPV6R7.js → chunk-F3TVX7N5.js} +13 -7
- package/host-daemon/dist/moonlet-chunks/{chunk-5WEQI6SZ.js → chunk-GV5ARURY.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{chunk-FJ7OPZLD.js → chunk-NE2XK7OY.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{chunk-GIB2RA72.js → chunk-O3RW227I.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{chunk-2LXOXMSI.js → chunk-POGWL5WF.js} +24 -19
- package/host-daemon/dist/moonlet-chunks/chunk-TPPSA3DG.js +2 -0
- package/host-daemon/dist/moonlet-chunks/{chunk-E6LLZWJ6.js → chunk-U2AZAOUG.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{chunk-RHRD26IT.js → chunk-VVDGHVZG.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{chunk-UASXM664.js → chunk-YYI3LFPE.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{client-HHX6I5G7.js → client-VRBPIP2F.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{command-resolution-A5W6ZG6Y.js → command-resolution-UBY5F7QK.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{commander-errors-XJZJ4QJX.js → commander-errors-PJ4VE3N2.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{context-env-3K3JMHNL.js → context-env-PQXDGBS2.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{context-hints-ZKRUWY42.js → context-hints-3E453WTB.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{diagnostics-QS5IRZVG.js → diagnostics-VK5LVFB7.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{environment-LNQOM5HD.js → environment-DC5CSVF7.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{file-726E24IM.js → file-J6XJDVUF.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{guide-KFBTYRTC.js → guide-SQNG2F3M.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/json-shapes-5T3VYRCY.js +4 -0
- package/host-daemon/dist/moonlet-chunks/{machine-OZEFIYX7.js → machine-4HUCOSZP.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{marketplace-KVB7SK3N.js → marketplace-WE6QTMQ2.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{permissions-6K5LGDUH.js → permissions-5HX5ZAAP.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{plugin-IEBWXCIR.js → plugin-FFRP4XEV.js} +2 -2
- package/host-daemon/dist/moonlet-chunks/plugin-cli-proxy-D33QEUON.js +2 -0
- package/host-daemon/dist/moonlet-chunks/{project-HDLJ3O4V.js → project-Q5AWY3GY.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{prompt-history-IIGEPGEC.js → prompt-history-4KKUSAVA.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{provider-66TEV6Z2.js → provider-ZID2ZGC3.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/schedule-CRYJEZYV.js +2 -0
- package/host-daemon/dist/moonlet-chunks/{server-LN5BSS6R.js → server-4LTGC34Q.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{settings-ZPVKLBV5.js → settings-A2NWNM3T.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{skill-WVX2BH26.js → skill-MR2D45MT.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/status-W3DLEUQQ.js +2 -0
- package/host-daemon/dist/moonlet-chunks/{terminal-NLPM3TJM.js → terminal-66EE5CPJ.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{theme-T6QM7ZCC.js → theme-3YBQO5WC.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{thread-LM7Q2W4G.js → thread-332SGGKT.js} +13 -13
- package/host-daemon/dist/moonlet-chunks/{updates-M2LFHTO5.js → updates-KSFRMW7U.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{voice-TXW2NSEK.js → voice-4HYXR6BK.js} +1 -1
- package/package.json +1 -4
- package/server/dist/builtin-plugins/github-pr-status/dist/app.js +6 -6
- package/server/dist/builtin-plugins/library/dist/app.js +7 -7
- package/server/dist/builtin-plugins/orbit/dist/app.js +4 -4
- package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/manifest.json +14 -14
- package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/prompts/setup-finished.txt +1 -1
- package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/skills/tasks/SKILL.md +20 -20
- package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/orbit/docs/handoff-to-new-conversation.md +4 -4
- package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/back/CLAUDE.md +17 -17
- package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/front/CLAUDE.md +105 -106
- package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/github-change/SKILL.md +11 -11
- package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/github-change/references/branches.md +3 -3
- package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/github-change/references/merging.md +10 -10
- package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/github-change/references/work-queue.md +19 -19
- package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/mail/SKILL.md +16 -16
- package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/messages/SKILL.md +16 -16
- package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/owner-changes/SKILL.md +12 -12
- package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/station-build/SKILL.md +24 -24
- package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/thread-replies/SKILL.md +8 -8
- package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/userland/SKILL.md +20 -20
- package/server/dist/builtin-plugins/orbit/dist/assets/assets/orbit-guidance/starter/plugins/orbit/skills/welcome/SKILL.md +14 -14
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/docs/handoff-to-new-conversation.md +2 -2
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/fixed-runner/linux-x64/manifest.json +6 -6
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/fixed-runner/linux-x64/orbit-deploy +0 -0
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/revision +1 -1
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/source.json +1 -1
- package/server/dist/builtin-plugins/orbit/dist/assets/plugins/moonlet/front/platform.md +7 -7
- package/server/dist/builtin-plugins/orbit/dist/host.js +48 -48
- package/server/dist/builtin-plugins/orbit/dist/host.meta.json +1 -1
- package/server/dist/builtin-plugins/orbit/dist/server.js +436 -436
- package/server/dist/builtin-plugins/plugin-api-docs/dist/app.js +2 -2
- package/server/dist/builtin-plugins/plugin-api-docs/dist/server.js +1 -1
- package/server/dist/builtin-plugins/prompt-library/dist/app.js +12 -12
- package/server/dist/builtin-plugins/push-notifications/dist/app.js +6 -6
- package/server/dist/builtin-plugins/tasks/dist/app.js +26 -26
- package/server/dist/plugin-sdk-runtime.js +28 -13
- package/server/dist/start-server.js +52 -6
- package/host-daemon/dist/moonlet-chunks/chunk-IILF6XSA.js +0 -2
- package/host-daemon/dist/moonlet-chunks/chunk-UPSMMZV7.js +0 -2
- package/host-daemon/dist/moonlet-chunks/json-shapes-LCZWCUK7.js +0 -4
- package/host-daemon/dist/moonlet-chunks/plugin-cli-proxy-C4N6PNTD.js +0 -2
- package/host-daemon/dist/moonlet-chunks/schedule-ON52JN5U.js +0 -2
- package/host-daemon/dist/moonlet-chunks/status-T3X6X7ZP.js +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -4329,8 +4329,8 @@ declare const threadTimelinePendingTodosSchema: z$1.ZodObject<{
|
|
|
4329
4329
|
type ThreadTimelinePendingTodos = z$1.infer<typeof threadTimelinePendingTodosSchema>;
|
|
4330
4330
|
|
|
4331
4331
|
declare const threadParentNotificationsSchema: z$1.ZodEnum<{
|
|
4332
|
-
off: "off";
|
|
4333
4332
|
auto: "auto";
|
|
4333
|
+
off: "off";
|
|
4334
4334
|
stuck: "stuck";
|
|
4335
4335
|
}>;
|
|
4336
4336
|
type ThreadParentNotifications = z$1.infer<typeof threadParentNotificationsSchema>;
|
|
@@ -7862,14 +7862,14 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7862
7862
|
modifiedAtMs: z$1.ZodOptional<z$1.ZodNumber>;
|
|
7863
7863
|
sha256: z$1.ZodString;
|
|
7864
7864
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
7865
|
+
path: z$1.ZodString;
|
|
7865
7866
|
contentEncoding: z$1.ZodEnum<{
|
|
7866
7867
|
base64: "base64";
|
|
7867
7868
|
utf8: "utf8";
|
|
7868
7869
|
}>;
|
|
7869
|
-
sha256: z$1.ZodString;
|
|
7870
|
-
sizeBytes: z$1.ZodNumber;
|
|
7871
|
-
path: z$1.ZodString;
|
|
7872
7870
|
mimeType: z$1.ZodOptional<z$1.ZodString>;
|
|
7871
|
+
sizeBytes: z$1.ZodNumber;
|
|
7872
|
+
sha256: z$1.ZodString;
|
|
7873
7873
|
modifiedAtMs: z$1.ZodOptional<z$1.ZodNumber>;
|
|
7874
7874
|
notModified: z$1.ZodLiteral<true>;
|
|
7875
7875
|
}, z$1.core.$strip>]>, "onlineRpc", true>;
|
|
@@ -8133,11 +8133,11 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8133
8133
|
supported: z$1.ZodLiteral<true>;
|
|
8134
8134
|
health: z$1.ZodObject<{
|
|
8135
8135
|
status: z$1.ZodEnum<{
|
|
8136
|
-
ready: "ready";
|
|
8137
8136
|
unknown: "unknown";
|
|
8138
8137
|
not_installed: "not_installed";
|
|
8139
8138
|
unauthenticated: "unauthenticated";
|
|
8140
8139
|
expired: "expired";
|
|
8140
|
+
ready: "ready";
|
|
8141
8141
|
unsupported_version: "unsupported_version";
|
|
8142
8142
|
}>;
|
|
8143
8143
|
statusMessage: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -8633,8 +8633,8 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8633
8633
|
message: z$1.ZodNullable<z$1.ZodString>;
|
|
8634
8634
|
state: z$1.ZodNullable<z$1.ZodEnum<{
|
|
8635
8635
|
pending: "pending";
|
|
8636
|
-
activating: "activating";
|
|
8637
8636
|
ready: "ready";
|
|
8637
|
+
activating: "activating";
|
|
8638
8638
|
}>>;
|
|
8639
8639
|
}, z$1.core.$strict>, "onlineRpc", true>;
|
|
8640
8640
|
"server_move.prepare": HostDaemonCommandDescriptor<"server_move.prepare", z$1.ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -23289,7 +23289,7 @@ var templateDefinitions = [
|
|
|
23289
23289
|
},
|
|
23290
23290
|
{
|
|
23291
23291
|
"id": "bbGuideCustomization",
|
|
23292
|
-
"body": 'Customization commands\n\nBundled plugins such as Keep Awake, Concurrency limit, Thread list, and Push\nnotifications own their settings and commands; run `moonlet guide plugins`.\n\nTheming \u2014 the app-wide palette and typography\n\n`moonlet theme` controls a set of CSS-variable overrides for the app palette and\ntypography, persisted server-side and applied live to every open window.\nLight/dark mode is a separate per-client setting the theme layers on top of.\nCustom themes live on\ndisk, one folder per theme, at <bb-data-dir>/theme/<name>/theme.css (the packaged\napp uses ~/.bb/theme/\u2026). The folder name is the theme id.\n\nmoonlet theme list Built-in and custom themes; shows the active one\nmoonlet theme dir Print the custom-theme directory (where to author)\nmoonlet theme set <id> [--favicon-color <color>]\nActivate a theme (built-ins: default, nord,\ndracula, solarized, gruvbox, catppuccin),\npreserving the favicon color unless the flag\nsupplies the complete selection\nmoonlet theme show [id] [--css] Print the active palette, or resolve <id> without\nactivating it; --css dumps the CSS\nmoonlet theme reset Back to the default theme; preserve favicon color\nmoonlet theme favicon set <color> Set favicon color; preserve the active theme\nmoonlet theme favicon reset Reset favicon color; preserve the active theme\n\nTo author a custom theme, run `moonlet theme dir`, write <that-dir>/<name>/theme.css,\nthen `moonlet theme set <name>`. A name has at most 64 characters, starts with a\nletter or digit, then uses letters, digits, `.`, `_`, or `-`; avoid built-in\nids. Optional `pierre-dark.json` / `pierre-light.json`\n(or a `theme.json` `codeTheme` field) ship the matching code colors. Built-in\npalettes use the matching Shiki pair. The full design-token reference is in\nthe bb-cli skill (references/theming.md).\n\nTheme CSS can override typography as well as colors. `--font-terminal` controls\nthe integrated terminal\'s font family independently of `--font-mono`; set it in\nthe theme\'s `:root, .light` block and end the stack with a generic fallback.\n\nFavicon colors are `default`, `red`, `orange`, `yellow`, `green`, `teal`,\n`blue`, `purple`, and `pink`. Theme and favicon-only commands carry the other\nappearance value forward explicitly.\n\nHovering a palette in Settings \u2192 Appearance previews it live in that window\nwithout saving; `moonlet theme show <id>` is the CLI counterpart.\n\nAdd --json to any theme command for machine-readable output.\n\nPermissions\n\nSettings \u2192 Permissions brings policy, question levels, recipients and standing\npermissions together. Secret inputs name stored items and fields, never values.\nThe same operations are available through `sdk.experimental_permissions` and:\n\n- `moonlet permissions show` \u2014 policy references, approval controls, grants and recipients as JSON.\n- `moonlet permissions edit <file>` \u2014 a JSON object with `base`, `section` and `value`.\n Sections are `network`, `capability`, `login`, `secret_use` and `backup`; use\n `show` to get the current base and preserve unrelated fields when editing a row.\n For `backup`, `value` is the nightly backup\'s store (`type`, `path`, `options`,\n optional vault `item`, `recipient` public key), or `null` to turn it off.\n- `moonlet permissions export`, `import <file> --base <base>`, `history [id]` \u2014 the full\n policy and saved versions. Import saves; it does not apply to machines.\n- `moonlet permissions ability <name> <file>` \u2014 JSON with `level`, `sensitive` and\n `expireMinutes`. Levels: `never-ask`, `ask-changes`, `always-ask`, `read-only`.\n- `moonlet permissions revoke <id>` \u2014 revoke an exact-command grant.\n- `moonlet permissions take-back <id>` \u2014 open that standing permission\u2019s original\n protected question. This command does not answer it.\n- `moonlet permissions recipients <file>`, `relay-targets <file>`, `relay-hosts <file>` \u2014\n save the corresponding JSON list. Existing Ask/Allow rules and limits apply.\n- `moonlet permissions check-sign-ins <machine>` \u2014 check configured item titles without\n reading credential values, on macOS or Linux.\n- `moonlet permissions review <machines...>`, `apply <machines...>`, `jobs` \u2014 preview,\n apply through the existing deployment approval, and read progress/results.\n\nThese commands use authenticated settings routes. The machine gate refuses them;\nthere is no approval-answer command or alternate path after a refusal.\n\nActivity\n\nActivity in the rail collects Waiting for you, Changes, Approvals and Messages.\nChanges keeps Undo, details and remembered declines with Forget. Messages keeps\nnamed-message history, relay history, limits and delivery status. Waiting for you\nincludes held messages with Deliver and Discard and the original job questions.\nRecipient lists and live permission controls stay in Settings \u2192 Permissions.\n\nExisting SDK operations are unchanged: plugin RPCs `owner-changes.history`,\n`owner-changes.details`, `owner-changes.undo`, `owner-changes.forget`,\n`messages.state`, `messages.history`, `messages.deliver`, `messages.discard`,\n`relay.state` and `approvals.state` keep their original inputs and authorization.\n`messages.state` adds a `held` list, newest first, queried directly from held\nrecords independently of the latest history page.\nUse `sdk.plugins.callRpc({ pluginId: "orbit", method, input, outputSchema })` from an authenticated\nclient, with an output schema matching the existing RPC contract.\n`sdk.experimental_permissions.approvals()` also reads approval history.\nThe CLI counterparts are `moonlet orbit changes list|show|undo|forget`,\n`moonlet orbit messages list|read` and `moonlet permissions show`.\nUse `moonlet plugin rpc call orbit <method> --input-file <json-file> --json` for\nowner-only history, Deliver, Discard and Forget, with the same inputs as the SDK.\nFor example, `messages.deliver` and `messages.discard` take `{ "id": 123 }`,\n`owner-changes.forget` takes `{ "target": "prefs:example" }`, and `relay.state`\ntakes null (omit the input file). These commands keep their existing caller restrictions;\nthere is no CLI command to answer a protected job question.\n\nServer-backed settings\n\nSettings stored server-side apply to every window and survive restarts.\n\nmoonlet settings show\nmoonlet settings ai-services\nmoonlet settings ai-services set <thread-title|commit-message|voice> <automatic|off|service-id> [--plugin <plugin-id>]\nmoonlet settings ai-services test <thread-title|commit-message>\nmoonlet settings general <key> <value>\nmoonlet settings replay-onboarding\nmoonlet settings completed-turns [provider-id] [collapse|flat|default]\nmoonlet settings experiment <key> <value>\nmoonlet settings usage [--machine <id-or-name>] [--refresh]\nmoonlet settings cli-command [install|remove]\nmoonlet settings version [--force]\nmoonlet settings reload Reload bb-managed configuration\n\nAI services: `moonlet settings ai-services` shows which AI service writes thread\ntitles (and so branch names), commit messages, and voice transcripts, plus\nevery service a plugin registers and whether it is ready. `set` picks\n`automatic` (bb cloud first, then all other compatible services by plugin id\nand service id in lexicographic order, including third-party plugins), `off`,\nor one service id; a picked service is never swapped for another. A service is\nidentified by its plugin and its id, so two plugins may use the same id; pass\n`--plugin <plugin-id>` when they do. `test` runs a sample title or commit\nmessage through the current choice. Settings \u2192 AI services has the same\ncontrols. Each plugin chooses its own model. The removed `BB_INFERENCE`,\n`BB_INFERENCE_FALLBACK`, and `BB_TRANSCRIPTION` variables are ignored with a\nwarning in `~/.bb/config.json`, and `bb-app config set` refuses them.\n\nGeneral keys: `moonlet settings general` accepts any key from `generalSettings` in\n`moonlet settings show`; an unknown key or wrongly shaped value is rejected with the\nlist of known keys. Boolean preferences take `true`, `false`, `on`, or `off`,\nand `null` clears a preference that can be unset. Most appear in Settings \u2192\nGeneral. Machine-related keys (`machineServerUrl`, `defaultMachineAccess`,\n`machineGitCredentialsEnabled`) are covered in `moonlet guide machines`.\n\n- `timeZone` (default `null`, server default; Settings \u2192 General \u2192 Time zone) is the clock for reminders, routines and deadlines. Set an IANA name with `moonlet settings general timeZone Europe/London`; `moonlet settings general timeZone null` follows the server again. SDK callers use `system.config()` and `system.updateGeneralSettings({ ...config.generalSettings, timeZone: "Europe/London" })`. Existing saved assistant time zones carry over.\n- `showDiagnosticEvents` (default false) shows provider environment resolution\n and unhandled provider events in the timeline. Warnings, errors, and model\n fallback stay visible either way.\n- `steerActiveThreadOnEnter` (default true for a new install; an earlier\n install with saved settings or work keeps false): when on, Enter steers a\n running thread and Command+Enter queues a follow-up; when off, those are\n reversed. Shift+Enter inserts a newline.\n- `showGitChanges` (default true; Settings \u2192 General \u2192 Show Git changes and\n Commit button): false hides the git summary, expanded file list,\n pull-request status and actions above the composer, and Commit action in the\n thread header and overflow menu for every thread and connected client. Thread\n relationships and workspace warnings remain visible.\n- `keepHistoryAfterContextClear` (default false; Settings \u2192 General \u2192 Show\n messages from before a context clear): true keeps a cleared thread\'s earlier\n messages above the `Context cleared` boundary in the timeline, outline, and\n message lookups. The next prompt still starts a fresh provider conversation,\n and the context meter still resets.\n- `summarizeShellCommands` (default true; Settings \u2192 General \u2192 Summarize shell\n commands): false stops titling shell commands that read, list, or search files\n with a summary such as `Searched for X`. Each command row then shows its\n command and expands to the command and its output.\n- `confirmThreadArchive` (default true): set false to archive parent and child\n threads in the app without the confirmation popup; the toast still offers\n Undo. CLI and SDK archive calls are always non-interactive.\n- `terminalCopyOnSelect` (default true; Settings \u2192 General \u2192 Terminals \u2192 Copy\n on select) copies completed terminal selections exactly and shows "Selection\n copied". Text elsewhere in the app is unchanged. Set it with\n `moonlet settings general terminalCopyOnSelect <true|false|on|off>` or SDK\n `system.updateGeneralSettings`. Explicit Copy/Paste work when off. Supported\n Linux browsers use native primary selection for middle-click paste,\n independently of this preference, never the regular clipboard as a fallback.\n- `streamerMode` (default false) hides every `customModels` entry from\n `~/.bb/config.json` in all model lists (pickers, `moonlet provider models`, and\n the SDK) during a screen share. The entries stay in the config file; a\n request that names a hidden model still runs with it, and default model\n resolution still sees the full list.\n- `allowFastServiceTier` (default true; Settings \u2192 Providers): false hides the\n service tier control and runs new turns at the default service tier,\n including explicit requests for any other tier (fast, Codex ultrafast), saved\n project defaults, automations, and messages queued before the change. Project\n defaults saved while it was off retain the default tier.\n- `managedBranchPrefix` (default `bb/`, at most 64 characters) prefixes every\n branch bb creates for a worktree or a new checkout branch: the default gives\n `bb/fix-login-flow-thr_ab12cd34ef`, `sawyer/wt-` gives\n `sawyer/wt-fix-login-flow-thr_ab12cd34ef`, and an empty value gives no\n prefix. bb rejects a prefix that cannot start a valid git branch name.\n Existing branches keep their names.\n- `providerOrder` (default `[]`) is a JSON array of provider ids, and\n `defaultProviderId` (default `null`) names the default provider; `null`\n clears it.\n- `idleProviderSessionTimeoutMinutes` (default `30`; Settings \u2192 Providers \u2192 Configuration \u2192 Release idle agent sessions) sets how long an agent can sit idle after its last turn before every machine stops its provider process. Allowed values are `0` (ASAP), `5`, `10`, `30`, and `60`, for example `moonlet settings general idleProviderSessionTimeoutMinutes 5`. Machines check every five minutes, so release can take up to five minutes beyond the timeout. Changes apply live and on reconnect. Only restorable sessions without active or pending work are eligible; threads keep their history and resume on the next message. `moonlet thread stop` still releases a runtime manually. This is not a limit on loaded processes or memory. Read the value with `moonlet settings show`; SDK callers use `system.config()` and `system.updateGeneralSettings({ ...config.generalSettings, idleProviderSessionTimeoutMinutes: 5 })`.\n- `telemetryEnabled`: see Telemetry below.\n\n`moonlet settings replay-onboarding` clears `onboardingCompletedAt`, so the\nfirst-run setup guide (connect an agent, any steps plugins add, add projects,\npick plugins, connect integrations, set up devices) shows again in every open\nclient. Settings \u2192 General \u2192 Setup guide has the same button; SDK callers use\n`system.experimental_replayFirstRun()`. An install whose setup is finished is\nnever shown it again until it is replayed. The Integrations step appears only\nwhen a plugin places a section in Settings \u2192 Integrations, and shows those\nsame sections.\n\n`moonlet settings usage --refresh` fetches fresh provider usage; ordinary reads may\nreuse results for 10 seconds. The SDK equivalent is\n`bb.sdk.system.usageLimits({ refresh: true })`.\n\nCommand line: Settings \u2192 General \u2192 Command line puts the `bb` command on PATH\non the computer that runs the Moonlet server, so the user, a script, or an agent\nrunning outside bb (such as Claude Code or Codex) can control bb; threads in bb\nalready have `bb`. `moonlet settings cli-command` shows the state, and `install` or\n`remove` changes it. Install links the launcher at `~/.bb/bin/bb` into a PATH\nfolder such as `~/.local/bin` (on Windows it adds `~/.bb/bin` to the user\nPATH). bb never replaces another `bb`: install is refused while one runs first\nin a new terminal. Only an installed bb (`npx bb-app` or the desktop app)\noffers this; a source checkout does not.\n\nCompleted turns: `moonlet settings completed-turns` lists how each provider shows a\nfinished turn: `collapse` folds the turn\'s work into one "Worked for" row and\nkeeps the final answer visible, and `flat` keeps every step visible. Each\nprovider has a default (Claude Code is `flat`, the other first-party providers\n`collapse`); `--json` shows whether each value comes from your setting or that\ndefault. `moonlet settings completed-turns <provider-id> <collapse|flat>` overrides\nit for that provider, and `default` removes the override. It applies to\nexisting threads too, including `moonlet thread log`. Settings \u2192 Providers has the\nsame per-provider switch.\n\nExperiments: `moonlet settings experiment <key> <true|false>` toggles a default-off\nexperiment (Settings \u2192 Experiments). `changelogPreview` shows the latest\nrelease notes as a dismissible card on Settings \u2192 Updates. Experiments that\ngate a feature are documented with it: `serverMove` in `moonlet guide machines`,\n`performanceDiagnostics` under Server performance diagnostics below.\n`timelinePush` sends an open thread\'s timeline updates over the live\nconnection as row deltas instead of reloading the latest window after each\nupdate. `compactExpiredCache` offers a Compact chip in the composer when an idle\nthread\'s prompt cache has expired and its context holds at least 100k tokens;\nsee `moonlet guide thread-messaging` for `--compact-first`.\n`sidebarMultiSelect` lets the built-in thread list sidebar select several threads with\nCmd/Ctrl-click and Shift-click for bulk actions and drag; while it is off,\nCmd/Ctrl-click opens a thread in a split.\n`moonlet settings general earlyAdopter on` (Settings \u2192 Experiments \u2192 Become an early\nadopter) turns on the experiments marked Early adopter, currently\n`timelinePush`, `compactExpiredCache`, and `sidebarMultiSelect`; an experiment you set yourself keeps\nyour value.\n\nLauncher settings\n\n`bb-app config` and `bb-app env` reload runtime settings in a running server,\nbut the CLI identifies settings that are startup-only, including binding/ports,\ndata and the dev-app port, telemetry, inherited skill roots, and\n`BB_LOG_LEVEL`. Use `bb-app config`, not `bb-app env`, to change `BB_APP_URL`\nlive. After a startup-only change, run `bb-app stop && bb-app start` or restart\nthe desktop app; until then, changing or unsetting `BB_SERVER_BIND_HOST` does\nnot close a previous `0.0.0.0` listener.\n\n`--server-bind-host 0.0.0.0` (or `BB_SERVER_BIND_HOST=0.0.0.0`) listens on\nevery interface for direct remote access; containers must also publish the\nport. BB accepts request hosts that are `localhost`, IP addresses (including\nLAN and Tailscale IPs), or the hostname in `BB_APP_URL`. For a custom DNS name\nor reverse proxy, run `npx bb-app config set BB_APP_URL https://bb.example.com`\nbefore connecting, including from the CLI or SDK; forwarded host headers cannot\nauthorize an unconfigured name. BB Connect needs no additional configuration.\n\nKeyboard shortcuts\n\nSettings \u2192 Keyboard records per-command shortcut overrides, persisted\nserver-side and applied live to every connected window, including desktop menu\naccelerators. Reset removes an override and returns to Moonlet\'s current default;\n`disabled` explicitly unbinds a command. `Mod` means Command on macOS and\nControl on Windows/Linux. The complete default table is in docs/configuration.md.\n\nmoonlet settings keyboard list\nmoonlet settings keyboard hints <true|false>\nmoonlet settings keyboard set <command> <shortcut|disabled> [--platform mac|windows|linux]\nmoonlet settings keyboard reset [command] [--platform mac|windows|linux]\n\n`keyboard list` prints core command ids with their effective bindings, plus\nevery saved override; examples include `panel.previousTab` / `panel.nextTab`,\n`pane.focus.left|right|up|down`, `pane.maximize.toggle`, and the initially\nunbound `panel.fullScreen.toggle`. `hints` (default true) shows or hides the\ndelayed shortcut badges shown while holding the modifier key; shortcuts work\neither way.\n\n`history.back` / `history.forward` (`Mod+[` / `Mod+]`) follow the pages opened\nin the current window, like the sidebar arrows. `thread.previous` /\n`thread.next` follow sidebar order instead: `Mod+Shift+[` / `Mod+Shift+]`\non desktop and `Control+Shift+[` / `Control+Shift+]` on the web.\n\nAn override can be scoped with `--platform`; without it, it applies on all\nplatforms. A platform-specific override takes precedence over a general one,\nincluding when disabled. Scoped `set` and `reset` keep other platforms\'\noverrides; unscoped `set` updates the general override, and unscoped `reset`\nclears every scope for the command (or every command if omitted). The SDK uses\n`system.updateKeyboardSettings` to write and `system.config` to read bindings.\n\nPlugin commands use `plugin:<plugin-id>/<command-id>` as their binding ID, for\nexample `moonlet settings keyboard set plugin:example/open-issue Mod+Shift+I`;\n`reset` restores the plugin\'s default. Overrides survive plugin disable,\nre-enable, and reload. Commands without defaults start unbound, and\nconflicting plugin defaults stay unbound. Plugin defaults resolve in each app\nwindow, not in `keyboard list`, so CLI/SDK callers should clear conflicting\nexplicit bindings in the same update.\n\nSidebar preferences\n\n`moonlet settings ui` reads and writes server-side sidebar preferences shared by\nevery window, device, and the CLI. The same registry stores which thread Info\npanel sections are collapsed (`infoPanel.collapsedSections`).\n\nmoonlet settings ui list [--json]\nmoonlet settings ui get <key> [--json]\nmoonlet settings ui set <key> <value> [--json]\nmoonlet settings ui reset <key> [--json]\n\n`list` prints every key with its value, revision, and a short description.\n`set` takes plain strings for enum and provider keys and JSON for lists and\n`null`; it retries once if another writer changed the key. `reset` writes the\ndefault. The SDK offers `sdk.system.uiPreferences.list()`, `.set()`, and\n`.reset()`.\n\nThe thread list is drawn by `sidebar.threadListProvider`, which defaults to\n`__automatic__`: the first installed thread list plugin other than the bundled\nThread list plugin (`thread-list/thread-list`), or the bundled plugin when\nthere is none, so installing a thread list plugin switches to it. Select one\nwith `moonlet settings ui set sidebar.threadListProvider <plugin-id>/<slot-id>`, or\nreset to restore Automatic. The bundled Thread list plugin keeps its own\nlayout (organization mode, sort, grouping, hidden and collapsed groups) and\ncopies the legacy `sidebar.*` layout keys from here only once; change its\nlayout with `bb thread-list prefs` (see `moonlet guide plugins`).\n\nThe composer\'s input box is drawn by `composer.provider`, which defaults to\n`__automatic__`: the first composer plugin you installed, or the bundled\nComposer plugin (`bb--composer/composer`) when there is none. Pick one with\n`moonlet settings ui set composer.provider <plugin-id>/<slot-id>`, or reset to\nrestore Automatic. With no composer plugin enabled, no composer is shown.\n\nA vertical rail of destinations sits on the left edge of the sidebar on every\nscreen size. Home is at the top and returns to the last thread; the visible\ndestinations (Plugins, Skills, and plugin panels) follow; More holds hidden\ndestinations and Customize navigation; Settings is at the bottom. On wide\nwindows the rail shows each destination\'s name beside its icon; the\nCollapse control at the bottom of the rail shrinks it to icons (names move\nto tooltips) and Show names widens it again. That choice is remembered on\neach device, not synced, so there is no `moonlet settings ui` key for it; plugins\ncan change it through `experimental_useSidebar()`. Phones and narrow windows\nalways use icons.\nNew thread sits in the sidebar header and cannot be hidden from the rail. The list beside the rail swaps between\nthe thread list, Plugins, Skills, and Settings, and collapsing the sidebar\nhides that list and leaves the rail. Rail order and visibility are\n`sidebar.pluginPanelOrder` and `sidebar.visiblePluginPanels`. In the macOS\ndesktop app, wide windows add a title bar holding the window controls, Back\nand Forward, and the sidebar toggle; the sidebar and page sit in a card below\nit. On narrow windows and phones the rail sits inside the drawer: Home,\nPlugins, Skills, and Settings swap the list beside it and leave the drawer\nopen, and a plugin page closes it.\n\nThe rail and the top list below are the two layouts of the bundled Navigation\nplugin, a built-in you can fork like the thread list.\n`sidebar.navigationProvider` picks what draws the navigation:\n`navigation/rail` (the rail above), `navigation/top-list` (labeled rows above\nthe thread list), another navigation plugin as `<plugin-id>/<slot-id>`, or\n`__automatic__` (the default: the first navigation from another plugin, else\n`navigation/rail`). Pick one in Settings \u2192 Appearance \u2192 Navigation, or:\n\nmoonlet settings ui set sidebar.navigationProvider navigation/top-list\nmoonlet settings ui reset sidebar.navigationProvider\n\nThe top list puts the visible destinations, New thread among them, and More\nabove the thread list, moves Settings into the footer, and adds a Back to app\nrow to the Settings, Plugins, and Skills lists. New thread can be reordered\nand hidden like any other row there. Collapsing hides the whole sidebar, and\nthe macOS desktop app drops the separate title bar. A navigation plugin\ndeclares whether it draws a rail or a list, and gets the matching layout; a\nlist navigation can also bring its own controls beside the sidebar toggle.\nThe same order and visibility keys apply to every provider.\n\nFooter actions: `sidebar.footerOrder` and `sidebar.hiddenFooterItems` are\nstring lists of `builtin:settings` (top list only), `builtin:mobile`,\n`builtin:report-bug`, or\n`plugin:<encoded pluginId>/<encoded registrationId>`. They survive plugin\nreloads and temporarily unavailable plugins; new items are visible by default.\n\nmoonlet settings ui set sidebar.hiddenFooterItems \'["plugin:bb--provider-usage/usage"]\'\nmoonlet settings ui reset sidebar.hiddenFooterItems\n\nIn the app, the sidebar footer\'s More menu holds hidden actions and actions\nthat don\'t fit; Settings \u2192 Appearance \u2192 Sidebar footer, or right-clicking an\naction, edits the footer.\n\nThe command palette\'s thread search has its own Active/Archived filter, which\nis browser-local: it is not a server setting or a CLI/SDK option. The sidebar\nthread list\'s Active/Archived filter is the Thread list plugin\'s\n`threadLifecycles` preference.\n\nSidebar width and open state are per window and stay local to the browser.\n\nHost files and voice transcription\n\nmoonlet file read|write|list|paths|mkdir|move|remove ...\nmoonlet voice transcribe <audio-file> [--type <mime>] [--prompt <context>]\n--type defaults to audio/webm\n\n`moonlet file` supports `--host` for remote machines and `--root` on mutating\ncommands to confine access beneath an absolute directory. `moonlet file write`\ntakes exactly one of `--content` or `--stdin`; `moonlet file paths` lists files and\ndirectories unless `--files` or `--directories` narrows it. `moonlet file list` and\n`moonlet file paths` include dot-prefixed entries; pass `--no-hidden` to skip them.\nBoth skip a default set of dependency and cache directories such as\n`node_modules`, `.venv`, `.pnpm-store`, and root-relative `.claude/worktrees`;\n`--exclude <names...>` replaces that set. Entries match basenames at any depth\nor exact root-relative paths using `/` separators. Use\n`--json` for metadata and machine-readable results.\n\n`moonlet file remove` needs `--yes` without a terminal. `moonlet file remove --recursive`\nand `sdk.files.remove({ recursive: true, ... })` first stop processes whose\nworking directory is inside the directory, including dev servers in nested\ncheckouts (macOS and Linux only).\n\nVoice transcription uses the Voice input service chosen with\n`moonlet settings ai-services set voice <automatic|off|service-id>`. bb accepts\nrecordings up to 25 MB, and each service may set a lower limit; Codex takes up\nto 20 MB. These limits apply to the app, SDK, and CLI. The app\'s microphone\nchoice is per browser and has no `bb` command. Right-click the composer\nmicrophone, press Shift+F10, or click the Microphone control in Settings \u2192\nVoice Input to open preferences in a desktop popover or mobile drawer.\nOpening starts a local waveform preview; closing releases it. Recording\ncontrols contain cancel, stop, and send; preferences are available while idle.\n\nMissing or unreadable inputs fall back to the system default, then other\navailable inputs. Permission denials do not trigger fallback. A disconnect\nswitches inputs in the same recorder, preserving captured audio. A reconnected\npreferred device is used on the next recording. A missing preference alone\nshows no warning. Capture failures warn on the idle microphone; five seconds\nof near-silent audio warns in the preview or recording row without switching\ninputs or stopping capture. Preview audio is never saved or transcribed.\n\nTelemetry\n\nAnonymous usage telemetry is off by default and has no destination by default.\nIt sends only when all three are on: `BB_POSTHOG_API_KEY` is set and\n`BB_TELEMETRY=true` (both read at startup, for example through `bb-app env`),\nand the saved preference is on: Settings \u2192 General \u2192 Privacy & diagnostics,\n`moonlet settings general telemetryEnabled true`, or SDK\n`system.updateGeneralSettings` with `telemetryEnabled`. The saved preference\ntakes effect immediately. `BB_TELEMETRY=false` always disables telemetry, even\nwhen the saved preference is enabled.\n\nMobile app downloads\n\nSettings \u2192 Mobile links the iOS TestFlight\n(https://testflight.apple.com/join/T9MayTMb) and the Android APK from the\npublic `matt0x6F/moonlet-releases` GitHub `android-testing` release (`bb-android.apk`), and\npairs either app through Add mobile device. `moonlet settings mobile-app --json` or\nSDK `system.mobileAppDownloads()` returns both links. Add `--details --json`\nor call `system.mobileAppReleases()` for the Android version, build, size, and\nupload date; `android` is `null` when that metadata is unavailable, and the\nlinks still work. Inside the Android app, this page compares the installed\nnative build number with the published APK. Older apps without build reporting\ncannot determine update status. Installed version and build are device-local;\nCLI and SDK metadata report the published APK.\n\nServer performance diagnostics\n\nStart with `bb-app --perf-diagnostics` or `BB_PERF_DIAGNOSTICS=1` (restart to\nchange), then run `moonlet settings experiment performanceDiagnostics true|false`.\nCollection needs both; it adds overhead and writes CPU profiles every 30 seconds\nto `$BB_DATA_DIR/logs/performance/` (kept 12 hours), which contain local paths.\nOpen a `.cpuprofile` in Chrome DevTools.\n\nDesktop Settings \u2192 Server \u2192 **Show This Mac** (or **Show This Computer** off macOS)\ndefaults to checked and is disabled while This Mac/Computer is selected.\nUnchecking hides the built-in server from server choices\nwhile another server is active and alternatives exist. It stays listed when\nactive or when it is the only choice. This setting does not stop the local\nruntime or change the active server.\n\nThe desktop stores `showBuiltinServer: false` in `<userData>/server-target.json`;\nmissing means shown, and saving the default omits the field. Other top-level\nmetadata is preserved. This is a desktop-local preference, with no server\nsettings CLI/SDK endpoint. Builds with tolerant readers ignore the field and\nmay drop it on save; older strict readers can reject the whole file, so keep a\nbackup before rolling back to a build predating the tolerant-reader fix #5286.\n\n## Schedules\n\nSettings \u2192 Schedules lists reminders, routines, saved checks and automations,\nincluding their machine, zone and recent outcomes. Turn off stops future runs\nand keeps the definition, saved check and history. It does not stop a running check.\n\n`moonlet schedule list --json` returns the same records and revisions.\n`moonlet schedule disable <id> --revision <number>` turns one off if its revision still\nmatches. These base endpoints are owner-only. The assistant and its authorized\nforks continue to use `moonlet orbit schedule add|list|cancel` through their scoped\ncompatibility route; check approval requirements are unchanged.\n\n## Dormant reply release policy\n\n`replyRelease` is an object accepted by `moonlet settings general replyRelease \'<JSON object>\'`\nand SDK `system.updateGeneralSettings({ ...config.generalSettings, replyRelease })`.\nRead the current object with `moonlet settings show` or `system.config()` first.\nIts defaults are `enabled: false`, `unavailable: "release"`, `reviewerPublicKey: null`,\n`critic: "gpt-6-luna"`, and `instruction: ""`. It configures the new internal server\nrelease foundation; existing replies are not routed through it yet. The outage\npolicy waits up to one minute, then releases with a not-reviewed mark, or holds\nwhen `unavailable` is `"hold"`. The instruction and pinned reviewer public key are\nowner-controlled policy. An absent key or empty instruction means review is\nunavailable. Do not enable it as a way to change today\'s reply routes.',
|
|
23292
|
+
"body": 'Customization commands\n\nBundled plugins such as Keep Awake, Concurrency limit, Thread list, and Push\nnotifications own their settings and commands; run `moonlet guide plugins`.\n\nTheming \u2014 the app-wide palette and typography\n\n`moonlet theme` controls a set of CSS-variable overrides for the app palette and\ntypography, persisted server-side and applied live to every open window.\nLight/dark mode is a separate per-client setting the theme layers on top of.\nCustom themes live on\ndisk, one folder per theme, at <bb-data-dir>/theme/<name>/theme.css (the packaged\napp uses ~/.bb/theme/\u2026). The folder name is the theme id.\n\nmoonlet theme list Built-in and custom themes; shows the active one\nmoonlet theme dir Print the custom-theme directory (where to author)\nmoonlet theme set <id> [--favicon-color <color>]\nActivate a theme (built-ins: default, nord,\ndracula, solarized, gruvbox, catppuccin),\npreserving the favicon color unless the flag\nsupplies the complete selection\nmoonlet theme show [id] [--css] Print the active palette, or resolve <id> without\nactivating it; --css dumps the CSS\nmoonlet theme reset Back to the default theme; preserve favicon color\nmoonlet theme favicon set <color> Set favicon color; preserve the active theme\nmoonlet theme favicon reset Reset favicon color; preserve the active theme\n\nTo author a custom theme, run `moonlet theme dir`, write <that-dir>/<name>/theme.css,\nthen `moonlet theme set <name>`. A name has at most 64 characters, starts with a\nletter or digit, then uses letters, digits, `.`, `_`, or `-`; avoid built-in\nids. Optional `pierre-dark.json` / `pierre-light.json`\n(or a `theme.json` `codeTheme` field) ship the matching code colors. Built-in\npalettes use the matching Shiki pair. The full design-token reference is in\nthe bb-cli skill (references/theming.md).\n\nTheme CSS can override typography as well as colors. `--font-terminal` controls\nthe integrated terminal\'s font family independently of `--font-mono`; set it in\nthe theme\'s `:root, .light` block and end the stack with a generic fallback.\n\nFavicon colors are `default`, `red`, `orange`, `yellow`, `green`, `teal`,\n`blue`, `purple`, and `pink`. Theme and favicon-only commands carry the other\nappearance value forward explicitly.\n\nHovering a palette in Settings \u2192 Appearance previews it live in that window\nwithout saving; `moonlet theme show <id>` is the CLI counterpart.\n\nAdd --json to any theme command for machine-readable output.\n\nPermissions\n\nSettings \u2192 Permissions brings policy, question levels, recipients and standing\npermissions together. Secret inputs name stored items and fields, never values.\nThe same operations are available through `sdk.experimental_permissions` and:\n\n- `moonlet permissions show` \u2014 policy references, approval controls, grants and recipients as JSON.\n- `moonlet permissions edit <file>` \u2014 a JSON object with `base`, `section` and `value`.\n Sections are `network`, `capability`, `login`, `secret_use` and `backup`; use\n `show` to get the current base and preserve unrelated fields when editing a row.\n For `backup`, `value` is the nightly backup\'s store (`type`, `path`, `options`,\n optional vault `item`, `recipient` public key), or `null` to turn it off.\n- `moonlet permissions export`, `import <file> --base <base>`, `history [id]` \u2014 the full\n policy and saved versions. Import saves; it does not apply to machines.\n- `moonlet permissions ability <name> <file>` \u2014 JSON with `level`, `sensitive` and\n `expireMinutes`. Levels: `never-ask`, `ask-changes`, `always-ask`, `read-only`.\n- `moonlet permissions revoke <id>` \u2014 revoke an exact-command grant.\n- `moonlet permissions take-back <id>` \u2014 open that standing permission\u2019s original\n protected question. This command does not answer it.\n- `moonlet permissions recipients <file>`, `relay-targets <file>`, `relay-hosts <file>` \u2014\n save the corresponding JSON list. Existing Ask/Allow rules and limits apply.\n- `moonlet permissions check-sign-ins <machine>` \u2014 check configured item titles without\n reading credential values, on macOS or Linux.\n- `moonlet permissions review <machines...>`, `apply <machines...>`, `jobs` \u2014 preview,\n apply through the existing deployment approval, and read progress/results.\n\nThese commands use authenticated settings routes. The machine gate refuses them;\nthere is no approval-answer command or alternate path after a refusal.\n\nActivity\n\nActivity in the rail collects Waiting for you, Changes, Approvals and Messages.\nChanges keeps Undo, details and remembered declines with Forget. Messages keeps\nnamed-message history, relay history, limits and delivery status. Waiting for you\nincludes held messages with Deliver and Discard and the original job questions.\nRecipient lists and live permission controls stay in Settings \u2192 Permissions.\n\nExisting SDK operations are unchanged: plugin RPCs `owner-changes.history`,\n`owner-changes.details`, `owner-changes.undo`, `owner-changes.forget`,\n`messages.state`, `messages.history`, `messages.deliver`, `messages.discard`,\n`relay.state` and `approvals.state` keep their original inputs and authorization.\n`messages.state` adds a `held` list, newest first, queried directly from held\nrecords independently of the latest history page.\nUse `sdk.plugins.callRpc({ pluginId: "orbit", method, input, outputSchema })` from an authenticated\nclient, with an output schema matching the existing RPC contract.\n`sdk.experimental_permissions.approvals()` also reads approval history.\nThe CLI counterparts are `moonlet changes list|show|undo|forget`,\n`moonlet messages list|read` and `moonlet permissions show`.\nUse `moonlet plugin rpc call orbit <method> --input-file <json-file> --json` for\nowner-only history, Deliver, Discard and Forget, with the same inputs as the SDK.\nFor example, `messages.deliver` and `messages.discard` take `{ "id": 123 }`,\n`owner-changes.forget` takes `{ "target": "prefs:example" }`, and `relay.state`\ntakes null (omit the input file). These commands keep their existing caller restrictions;\nthere is no CLI command to answer a protected job question.\n\nServer-backed settings\n\nSettings stored server-side apply to every window and survive restarts.\n\nmoonlet settings show\nmoonlet settings ai-services\nmoonlet settings ai-services set <thread-title|commit-message|voice> <automatic|off|service-id> [--plugin <plugin-id>]\nmoonlet settings ai-services test <thread-title|commit-message>\nmoonlet settings general <key> <value>\nmoonlet settings replay-onboarding\nmoonlet settings completed-turns [provider-id] [collapse|flat|default]\nmoonlet settings experiment <key> <value>\nmoonlet settings usage [--machine <id-or-name>] [--refresh]\nmoonlet settings cli-command [install|remove]\nmoonlet settings version [--force]\nmoonlet settings reload Reload bb-managed configuration\n\nAI services: `moonlet settings ai-services` shows which AI service writes thread\ntitles (and so branch names), commit messages, and voice transcripts, plus\nevery service a plugin registers and whether it is ready. `set` picks\n`automatic` (bb cloud first, then all other compatible services by plugin id\nand service id in lexicographic order, including third-party plugins), `off`,\nor one service id; a picked service is never swapped for another. A service is\nidentified by its plugin and its id, so two plugins may use the same id; pass\n`--plugin <plugin-id>` when they do. `test` runs a sample title or commit\nmessage through the current choice. Settings \u2192 AI services has the same\ncontrols. Each plugin chooses its own model. The removed `BB_INFERENCE`,\n`BB_INFERENCE_FALLBACK`, and `BB_TRANSCRIPTION` variables are ignored with a\nwarning in `~/.bb/config.json`, and `bb-app config set` refuses them.\n\nGeneral keys: `moonlet settings general` accepts any key from `generalSettings` in\n`moonlet settings show`; an unknown key or wrongly shaped value is rejected with the\nlist of known keys. Boolean preferences take `true`, `false`, `on`, or `off`,\nand `null` clears a preference that can be unset. Most appear in Settings \u2192\nGeneral. Machine-related keys (`machineServerUrl`, `defaultMachineAccess`,\n`machineGitCredentialsEnabled`) are covered in `moonlet guide machines`.\n\n- `timeZone` (default `null`, server default; Settings \u2192 General \u2192 Time zone) is the clock for reminders, routines and deadlines. Set an IANA name with `moonlet settings general timeZone Europe/London`; `moonlet settings general timeZone null` follows the server again. SDK callers use `system.config()` and `system.updateGeneralSettings({ ...config.generalSettings, timeZone: "Europe/London" })`. Existing saved assistant time zones carry over.\n- `showDiagnosticEvents` (default false) shows provider environment resolution\n and unhandled provider events in the timeline. Warnings, errors, and model\n fallback stay visible either way.\n- `steerActiveThreadOnEnter` (default true for a new install; an earlier\n install with saved settings or work keeps false): when on, Enter steers a\n running thread and Command+Enter queues a follow-up; when off, those are\n reversed. Shift+Enter inserts a newline.\n- `showGitChanges` (default true; Settings \u2192 General \u2192 Show Git changes and\n Commit button): false hides the git summary, expanded file list,\n pull-request status and actions above the composer, and Commit action in the\n thread header and overflow menu for every thread and connected client. Thread\n relationships and workspace warnings remain visible.\n- `keepHistoryAfterContextClear` (default false; Settings \u2192 General \u2192 Show\n messages from before a context clear): true keeps a cleared thread\'s earlier\n messages above the `Context cleared` boundary in the timeline, outline, and\n message lookups. The next prompt still starts a fresh provider conversation,\n and the context meter still resets.\n- `summarizeShellCommands` (default true; Settings \u2192 General \u2192 Summarize shell\n commands): false stops titling shell commands that read, list, or search files\n with a summary such as `Searched for X`. Each command row then shows its\n command and expands to the command and its output.\n- `confirmThreadArchive` (default true): set false to archive parent and child\n threads in the app without the confirmation popup; the toast still offers\n Undo. CLI and SDK archive calls are always non-interactive.\n- `terminalCopyOnSelect` (default true; Settings \u2192 General \u2192 Terminals \u2192 Copy\n on select) copies completed terminal selections exactly and shows "Selection\n copied". Text elsewhere in the app is unchanged. Set it with\n `moonlet settings general terminalCopyOnSelect <true|false|on|off>` or SDK\n `system.updateGeneralSettings`. Explicit Copy/Paste work when off. Supported\n Linux browsers use native primary selection for middle-click paste,\n independently of this preference, never the regular clipboard as a fallback.\n- `streamerMode` (default false) hides every `customModels` entry from\n `~/.bb/config.json` in all model lists (pickers, `moonlet provider models`, and\n the SDK) during a screen share. The entries stay in the config file; a\n request that names a hidden model still runs with it, and default model\n resolution still sees the full list.\n- `allowFastServiceTier` (default true; Settings \u2192 Providers): false hides the\n service tier control and runs new turns at the default service tier,\n including explicit requests for any other tier (fast, Codex ultrafast), saved\n project defaults, automations, and messages queued before the change. Project\n defaults saved while it was off retain the default tier.\n- `managedBranchPrefix` (default `bb/`, at most 64 characters) prefixes every\n branch bb creates for a worktree or a new checkout branch: the default gives\n `bb/fix-login-flow-thr_ab12cd34ef`, `sawyer/wt-` gives\n `sawyer/wt-fix-login-flow-thr_ab12cd34ef`, and an empty value gives no\n prefix. bb rejects a prefix that cannot start a valid git branch name.\n Existing branches keep their names.\n- `providerOrder` (default `[]`) is a JSON array of provider ids, and\n `defaultProviderId` (default `null`) names the default provider; `null`\n clears it.\n- `idleProviderSessionTimeoutMinutes` (default `30`; Settings \u2192 Providers \u2192 Configuration \u2192 Release idle agent sessions) sets how long an agent can sit idle after its last turn before every machine stops its provider process. Allowed values are `0` (ASAP), `5`, `10`, `30`, and `60`, for example `moonlet settings general idleProviderSessionTimeoutMinutes 5`. Machines check every five minutes, so release can take up to five minutes beyond the timeout. Changes apply live and on reconnect. Only restorable sessions without active or pending work are eligible; threads keep their history and resume on the next message. `moonlet thread stop` still releases a runtime manually. This is not a limit on loaded processes or memory. Read the value with `moonlet settings show`; SDK callers use `system.config()` and `system.updateGeneralSettings({ ...config.generalSettings, idleProviderSessionTimeoutMinutes: 5 })`.\n- `telemetryEnabled`: see Telemetry below.\n\n`moonlet settings replay-onboarding` clears `onboardingCompletedAt`, so the\nfirst-run setup guide (connect an agent, any steps plugins add, add projects,\npick plugins, connect integrations, set up devices) shows again in every open\nclient. Settings \u2192 General \u2192 Setup guide has the same button; SDK callers use\n`system.experimental_replayFirstRun()`. An install whose setup is finished is\nnever shown it again until it is replayed. The Integrations step appears only\nwhen a plugin places a section in Settings \u2192 Integrations, and shows those\nsame sections.\n\n`moonlet settings usage --refresh` fetches fresh provider usage; ordinary reads may\nreuse results for 10 seconds. The SDK equivalent is\n`bb.sdk.system.usageLimits({ refresh: true })`.\n\nCommand line: Settings \u2192 General \u2192 Command line puts the `bb` command on PATH\non the computer that runs the Moonlet server, so the user, a script, or an agent\nrunning outside bb (such as Claude Code or Codex) can control bb; threads in bb\nalready have `bb`. `moonlet settings cli-command` shows the state, and `install` or\n`remove` changes it. Install links the launcher at `~/.bb/bin/bb` into a PATH\nfolder such as `~/.local/bin` (on Windows it adds `~/.bb/bin` to the user\nPATH). bb never replaces another `bb`: install is refused while one runs first\nin a new terminal. Only an installed bb (`npx bb-app` or the desktop app)\noffers this; a source checkout does not.\n\nCompleted turns: `moonlet settings completed-turns` lists how each provider shows a\nfinished turn: `collapse` folds the turn\'s work into one "Worked for" row and\nkeeps the final answer visible, and `flat` keeps every step visible. Each\nprovider has a default (Claude Code is `flat`, the other first-party providers\n`collapse`); `--json` shows whether each value comes from your setting or that\ndefault. `moonlet settings completed-turns <provider-id> <collapse|flat>` overrides\nit for that provider, and `default` removes the override. It applies to\nexisting threads too, including `moonlet thread log`. Settings \u2192 Providers has the\nsame per-provider switch.\n\nExperiments: `moonlet settings experiment <key> <true|false>` toggles a default-off\nexperiment (Settings \u2192 Experiments). `changelogPreview` shows the latest\nrelease notes as a dismissible card on Settings \u2192 Updates. Experiments that\ngate a feature are documented with it: `serverMove` in `moonlet guide machines`,\n`performanceDiagnostics` under Server performance diagnostics below.\n`timelinePush` sends an open thread\'s timeline updates over the live\nconnection as row deltas instead of reloading the latest window after each\nupdate. `compactExpiredCache` offers a Compact chip in the composer when an idle\nthread\'s prompt cache has expired and its context holds at least 100k tokens;\nsee `moonlet guide thread-messaging` for `--compact-first`.\n`sidebarMultiSelect` lets the built-in thread list sidebar select several threads with\nCmd/Ctrl-click and Shift-click for bulk actions and drag; while it is off,\nCmd/Ctrl-click opens a thread in a split.\n`moonlet settings general earlyAdopter on` (Settings \u2192 Experiments \u2192 Become an early\nadopter) turns on the experiments marked Early adopter, currently\n`timelinePush`, `compactExpiredCache`, and `sidebarMultiSelect`; an experiment you set yourself keeps\nyour value.\n\nLauncher settings\n\n`bb-app config` and `bb-app env` reload runtime settings in a running server,\nbut the CLI identifies settings that are startup-only, including binding/ports,\ndata and the dev-app port, telemetry, inherited skill roots, and\n`BB_LOG_LEVEL`. Use `bb-app config`, not `bb-app env`, to change `BB_APP_URL`\nlive. After a startup-only change, run `bb-app stop && bb-app start` or restart\nthe desktop app; until then, changing or unsetting `BB_SERVER_BIND_HOST` does\nnot close a previous `0.0.0.0` listener.\n\n`--server-bind-host 0.0.0.0` (or `BB_SERVER_BIND_HOST=0.0.0.0`) listens on\nevery interface for direct remote access; containers must also publish the\nport. BB accepts request hosts that are `localhost`, IP addresses (including\nLAN and Tailscale IPs), or the hostname in `BB_APP_URL`. For a custom DNS name\nor reverse proxy, run `npx bb-app config set BB_APP_URL https://bb.example.com`\nbefore connecting, including from the CLI or SDK; forwarded host headers cannot\nauthorize an unconfigured name. BB Connect needs no additional configuration.\n\nKeyboard shortcuts\n\nSettings \u2192 Keyboard records per-command shortcut overrides, persisted\nserver-side and applied live to every connected window, including desktop menu\naccelerators. Reset removes an override and returns to Moonlet\'s current default;\n`disabled` explicitly unbinds a command. `Mod` means Command on macOS and\nControl on Windows/Linux. The complete default table is in docs/configuration.md.\n\nmoonlet settings keyboard list\nmoonlet settings keyboard hints <true|false>\nmoonlet settings keyboard set <command> <shortcut|disabled> [--platform mac|windows|linux]\nmoonlet settings keyboard reset [command] [--platform mac|windows|linux]\n\n`keyboard list` prints core command ids with their effective bindings, plus\nevery saved override; examples include `panel.previousTab` / `panel.nextTab`,\n`pane.focus.left|right|up|down`, `pane.maximize.toggle`, and the initially\nunbound `panel.fullScreen.toggle`. `hints` (default true) shows or hides the\ndelayed shortcut badges shown while holding the modifier key; shortcuts work\neither way.\n\n`history.back` / `history.forward` (`Mod+[` / `Mod+]`) follow the pages opened\nin the current window, like the sidebar arrows. `thread.previous` /\n`thread.next` follow sidebar order instead: `Mod+Shift+[` / `Mod+Shift+]`\non desktop and `Control+Shift+[` / `Control+Shift+]` on the web.\n\nAn override can be scoped with `--platform`; without it, it applies on all\nplatforms. A platform-specific override takes precedence over a general one,\nincluding when disabled. Scoped `set` and `reset` keep other platforms\'\noverrides; unscoped `set` updates the general override, and unscoped `reset`\nclears every scope for the command (or every command if omitted). The SDK uses\n`system.updateKeyboardSettings` to write and `system.config` to read bindings.\n\nPlugin commands use `plugin:<plugin-id>/<command-id>` as their binding ID, for\nexample `moonlet settings keyboard set plugin:example/open-issue Mod+Shift+I`;\n`reset` restores the plugin\'s default. Overrides survive plugin disable,\nre-enable, and reload. Commands without defaults start unbound, and\nconflicting plugin defaults stay unbound. Plugin defaults resolve in each app\nwindow, not in `keyboard list`, so CLI/SDK callers should clear conflicting\nexplicit bindings in the same update.\n\nSidebar preferences\n\n`moonlet settings ui` reads and writes server-side sidebar preferences shared by\nevery window, device, and the CLI. The same registry stores which thread Info\npanel sections are collapsed (`infoPanel.collapsedSections`).\n\nmoonlet settings ui list [--json]\nmoonlet settings ui get <key> [--json]\nmoonlet settings ui set <key> <value> [--json]\nmoonlet settings ui reset <key> [--json]\n\n`list` prints every key with its value, revision, and a short description.\n`set` takes plain strings for enum and provider keys and JSON for lists and\n`null`; it retries once if another writer changed the key. `reset` writes the\ndefault. The SDK offers `sdk.system.uiPreferences.list()`, `.set()`, and\n`.reset()`.\n\nThe thread list is drawn by `sidebar.threadListProvider`, which defaults to\n`__automatic__`: the first installed thread list plugin other than the bundled\nThread list plugin (`thread-list/thread-list`), or the bundled plugin when\nthere is none, so installing a thread list plugin switches to it. Select one\nwith `moonlet settings ui set sidebar.threadListProvider <plugin-id>/<slot-id>`, or\nreset to restore Automatic. The bundled Thread list plugin keeps its own\nlayout (organization mode, sort, grouping, hidden and collapsed groups) and\ncopies the legacy `sidebar.*` layout keys from here only once; change its\nlayout with `bb thread-list prefs` (see `moonlet guide plugins`).\n\nThe composer\'s input box is drawn by `composer.provider`, which defaults to\n`__automatic__`: the first composer plugin you installed, or the bundled\nComposer plugin (`bb--composer/composer`) when there is none. Pick one with\n`moonlet settings ui set composer.provider <plugin-id>/<slot-id>`, or reset to\nrestore Automatic. With no composer plugin enabled, no composer is shown.\n\nA vertical rail of destinations sits on the left edge of the sidebar on every\nscreen size. Home is at the top and returns to the last thread; the visible\ndestinations (Plugins, Skills, and plugin panels) follow; More holds hidden\ndestinations and Customize navigation; Settings is at the bottom. On wide\nwindows the rail shows each destination\'s name beside its icon; the\nCollapse control at the bottom of the rail shrinks it to icons (names move\nto tooltips) and Show names widens it again. That choice is remembered on\neach device, not synced, so there is no `moonlet settings ui` key for it; plugins\ncan change it through `experimental_useSidebar()`. Phones and narrow windows\nalways use icons.\nNew thread sits in the sidebar header and cannot be hidden from the rail. The list beside the rail swaps between\nthe thread list, Plugins, Skills, and Settings, and collapsing the sidebar\nhides that list and leaves the rail. Rail order and visibility are\n`sidebar.pluginPanelOrder` and `sidebar.visiblePluginPanels`. In the macOS\ndesktop app, wide windows add a title bar holding the window controls, Back\nand Forward, and the sidebar toggle; the sidebar and page sit in a card below\nit. On narrow windows and phones the rail sits inside the drawer: Home,\nPlugins, Skills, and Settings swap the list beside it and leave the drawer\nopen, and a plugin page closes it.\n\nThe rail and the top list below are the two layouts of the bundled Navigation\nplugin, a built-in you can fork like the thread list.\n`sidebar.navigationProvider` picks what draws the navigation:\n`navigation/rail` (the rail above), `navigation/top-list` (labeled rows above\nthe thread list), another navigation plugin as `<plugin-id>/<slot-id>`, or\n`__automatic__` (the default: the first navigation from another plugin, else\n`navigation/rail`). Pick one in Settings \u2192 Appearance \u2192 Navigation, or:\n\nmoonlet settings ui set sidebar.navigationProvider navigation/top-list\nmoonlet settings ui reset sidebar.navigationProvider\n\nThe top list puts the visible destinations, New thread among them, and More\nabove the thread list, moves Settings into the footer, and adds a Back to app\nrow to the Settings, Plugins, and Skills lists. New thread can be reordered\nand hidden like any other row there. Collapsing hides the whole sidebar, and\nthe macOS desktop app drops the separate title bar. A navigation plugin\ndeclares whether it draws a rail or a list, and gets the matching layout; a\nlist navigation can also bring its own controls beside the sidebar toggle.\nThe same order and visibility keys apply to every provider.\n\nFooter actions: `sidebar.footerOrder` and `sidebar.hiddenFooterItems` are\nstring lists of `builtin:settings` (top list only), `builtin:mobile`,\n`builtin:report-bug`, or\n`plugin:<encoded pluginId>/<encoded registrationId>`. They survive plugin\nreloads and temporarily unavailable plugins; new items are visible by default.\n\nmoonlet settings ui set sidebar.hiddenFooterItems \'["plugin:bb--provider-usage/usage"]\'\nmoonlet settings ui reset sidebar.hiddenFooterItems\n\nIn the app, the sidebar footer\'s More menu holds hidden actions and actions\nthat don\'t fit; Settings \u2192 Appearance \u2192 Sidebar footer, or right-clicking an\naction, edits the footer.\n\nThe command palette\'s thread search has its own Active/Archived filter, which\nis browser-local: it is not a server setting or a CLI/SDK option. The sidebar\nthread list\'s Active/Archived filter is the Thread list plugin\'s\n`threadLifecycles` preference.\n\nSidebar width and open state are per window and stay local to the browser.\n\nHost files and voice transcription\n\nmoonlet file read|write|list|paths|mkdir|move|remove ...\nmoonlet voice transcribe <audio-file> [--type <mime>] [--prompt <context>]\n--type defaults to audio/webm\n\n`moonlet file` supports `--host` for remote machines and `--root` on mutating\ncommands to confine access beneath an absolute directory. `moonlet file write`\ntakes exactly one of `--content` or `--stdin`; `moonlet file paths` lists files and\ndirectories unless `--files` or `--directories` narrows it. `moonlet file list` and\n`moonlet file paths` include dot-prefixed entries; pass `--no-hidden` to skip them.\nBoth skip a default set of dependency and cache directories such as\n`node_modules`, `.venv`, `.pnpm-store`, and root-relative `.claude/worktrees`;\n`--exclude <names...>` replaces that set. Entries match basenames at any depth\nor exact root-relative paths using `/` separators. Use\n`--json` for metadata and machine-readable results.\n\n`moonlet file remove` needs `--yes` without a terminal. `moonlet file remove --recursive`\nand `sdk.files.remove({ recursive: true, ... })` first stop processes whose\nworking directory is inside the directory, including dev servers in nested\ncheckouts (macOS and Linux only).\n\nVoice transcription uses the Voice input service chosen with\n`moonlet settings ai-services set voice <automatic|off|service-id>`. bb accepts\nrecordings up to 25 MB, and each service may set a lower limit; Codex takes up\nto 20 MB. These limits apply to the app, SDK, and CLI. The app\'s microphone\nchoice is per browser and has no `bb` command. Right-click the composer\nmicrophone, press Shift+F10, or click the Microphone control in Settings \u2192\nVoice Input to open preferences in a desktop popover or mobile drawer.\nOpening starts a local waveform preview; closing releases it. Recording\ncontrols contain cancel, stop, and send; preferences are available while idle.\n\nMissing or unreadable inputs fall back to the system default, then other\navailable inputs. Permission denials do not trigger fallback. A disconnect\nswitches inputs in the same recorder, preserving captured audio. A reconnected\npreferred device is used on the next recording. A missing preference alone\nshows no warning. Capture failures warn on the idle microphone; five seconds\nof near-silent audio warns in the preview or recording row without switching\ninputs or stopping capture. Preview audio is never saved or transcribed.\n\nTelemetry\n\nAnonymous usage telemetry is off by default and has no destination by default.\nIt sends only when all three are on: `BB_POSTHOG_API_KEY` is set and\n`BB_TELEMETRY=true` (both read at startup, for example through `bb-app env`),\nand the saved preference is on: Settings \u2192 General \u2192 Privacy & diagnostics,\n`moonlet settings general telemetryEnabled true`, or SDK\n`system.updateGeneralSettings` with `telemetryEnabled`. The saved preference\ntakes effect immediately. `BB_TELEMETRY=false` always disables telemetry, even\nwhen the saved preference is enabled.\n\nMobile app downloads\n\nSettings \u2192 Mobile links the iOS TestFlight\n(https://testflight.apple.com/join/T9MayTMb) and the Android APK from the\npublic `matt0x6F/moonlet-releases` GitHub `android-testing` release (`bb-android.apk`), and\npairs either app through Add mobile device. `moonlet settings mobile-app --json` or\nSDK `system.mobileAppDownloads()` returns both links. Add `--details --json`\nor call `system.mobileAppReleases()` for the Android version, build, size, and\nupload date; `android` is `null` when that metadata is unavailable, and the\nlinks still work. Inside the Android app, this page compares the installed\nnative build number with the published APK. Older apps without build reporting\ncannot determine update status. Installed version and build are device-local;\nCLI and SDK metadata report the published APK.\n\nServer performance diagnostics\n\nStart with `bb-app --perf-diagnostics` or `BB_PERF_DIAGNOSTICS=1` (restart to\nchange), then run `moonlet settings experiment performanceDiagnostics true|false`.\nCollection needs both; it adds overhead and writes CPU profiles every 30 seconds\nto `$BB_DATA_DIR/logs/performance/` (kept 12 hours), which contain local paths.\nOpen a `.cpuprofile` in Chrome DevTools.\n\nDesktop Settings \u2192 Server \u2192 **Show This Mac** (or **Show This Computer** off macOS)\ndefaults to checked and is disabled while This Mac/Computer is selected.\nUnchecking hides the built-in server from server choices\nwhile another server is active and alternatives exist. It stays listed when\nactive or when it is the only choice. This setting does not stop the local\nruntime or change the active server.\n\nThe desktop stores `showBuiltinServer: false` in `<userData>/server-target.json`;\nmissing means shown, and saving the default omits the field. Other top-level\nmetadata is preserved. This is a desktop-local preference, with no server\nsettings CLI/SDK endpoint. Builds with tolerant readers ignore the field and\nmay drop it on save; older strict readers can reject the whole file, so keep a\nbackup before rolling back to a build predating the tolerant-reader fix #5286.\n\n## Schedules\n\nSettings \u2192 Schedules lists reminders, routines, saved checks and automations,\nincluding their machine, zone and recent outcomes. Turn off stops future runs\nand keeps the definition, saved check and history. It does not stop a running check.\n\n`moonlet schedule list --json` returns the same records and revisions.\n`moonlet schedule disable <id> --revision <number>` turns one off if its revision still\nmatches. These base endpoints are owner-only. The assistant and its authorized\nforks continue to use `moonlet schedule add|list|cancel` through their scoped\ncompatibility route; check approval requirements are unchanged.\n\n## Dormant reply release policy\n\n`replyRelease` is an object accepted by `moonlet settings general replyRelease \'<JSON object>\'`\nand SDK `system.updateGeneralSettings({ ...config.generalSettings, replyRelease })`.\nRead the current object with `moonlet settings show` or `system.config()` first.\nIts defaults are `enabled: false`, `unavailable: "release"`, `reviewerPublicKey: null`,\n`critic: "gpt-6-luna"`, and `instruction: ""`. It configures the new internal server\nrelease foundation; existing replies are not routed through it yet. The outage\npolicy waits up to one minute, then releases with a not-reviewed mark, or holds\nwhen `unavailable` is `"hold"`. The instruction and pinned reviewer public key are\nowner-controlled policy. An absent key or empty instruction means review is\nunavailable. Do not enable it as a way to change today\'s reply routes.',
|
|
23293
23293
|
"variables": {}
|
|
23294
23294
|
},
|
|
23295
23295
|
{
|
|
@@ -23299,7 +23299,7 @@ var templateDefinitions = [
|
|
|
23299
23299
|
},
|
|
23300
23300
|
{
|
|
23301
23301
|
"id": "bbGuideJson",
|
|
23302
|
-
"body": 'JSON output\n\nEvery core command accepts --json except the plugin authoring tools (`bb plugin\nnew`, `types`, `migrate`, `build`, `dev`, `run`, `logs`, `update`). Success\nprints one JSON value on stdout and exits 0. Nothing else is written to stdout.\n\nErrors\n\nA failed command exits non-zero. With --json it prints this envelope on stdout\nand still prints the readable message on stderr:\n\n {"ok": false, "error": {"code": "unknown_option", "message": "...", "hint": "..."}}\n\n`hint` is present only when bb knows the fix: the flag to add, the nearest\ncommand or option, or the usage line. Codes for mistakes in the invocation:\nunknown_command, unknown_option, missing_required, unexpected_argument,\ninvalid_value, missing_command. A failed server request uses the server\'s error\ncode, such as thread_not_found or terminal_output_unavailable; otherwise the\ncode is http_<status> or error.\n\nParse stdout only. `2>&1` mixes the readable message into the JSON, and\n`2>/dev/null` hides it. Check the exit code, or test `.ok == false`, before\nreading fields.\n\nShapes\n\nList commands do not share one wrapper. Most print a bare array; a few wrap it.\nFields beyond those shown exist; these are the ones scripts use. The `--help` of\nthe most-parsed commands ends with the same shape.\n\n moonlet status --json\n {project: {id, name} | null, thread: {id, status, title, parentThreadId, environment: {hostId, display} | null} | null, childThreads: [{id, status, title}] | null, pendingTodos, pluginsNeedingAttention: [{id, status}], dataDir}\n\n moonlet thread list --json\n [{id, projectId, environmentId, providerId, title, status, parentThreadId, sectionId, visibility, archivedAt, pinnedAt, createdAt, updatedAt, activity}] (bare array; title can be null)\n\n moonlet thread show <id> --json\n {thread: {id, status, title, projectId, environmentId, parentThreadId, ...}, environment: {id, hostId, path, branchName, ...} | null, pendingTodos} (thread fields are under .thread)\n\n moonlet thread log <id> --json\n [{id, seq, type, createdAt, threadId, scope, data}] (bare array of raw events, oldest first; page with --after-seq <seq>); with --message: {message, before, after} of conversation rows\n\n moonlet thread output <id> --json\n {output}\n\n moonlet thread spawn ... --json\n the created thread: {id, status, title, projectId, environmentId, ...}\n\n moonlet thread tell <id> ... --json\n {threadId, ...delivery outcome}\n\n moonlet thread wait <id> --json\n {threadId, matched: true, target}\n\n moonlet thread count --json\n {total}\n\n moonlet thread search <query> --json\n {active: {total, results}, archived: {total, results}}\n\n moonlet prompt-history list --json\n {entries: [{id, createdAt, input, projectId, threadId, scope}], nextCursor: string | null}\n\n moonlet thread section list --json\n [{id, name, createdAt, updatedAt}]\n\n moonlet thread queue list <id> --json, moonlet thread interactions list <id> --json, moonlet thread history <id> --json\n bare arrays\n\n moonlet project list --json\n [{id, kind, name, gitRemoteUrl, sources: [{id, hostId, path, isDefault}]}] (bare array)\n\n moonlet project show <id> --json\n {id, kind, name, gitRemoteUrl, sources}\n\n moonlet machine list --json\n [{id, name, type, status, lifecycle, maxPermissionMode, lastSeenAt}] (bare array)\n\n moonlet provider list --json\n [{id, displayName, available, capabilities, reasoningLevels, serviceTiers}] (bare array)\n\n moonlet provider models [providerId] --json\n [{id, model, displayName, supportedReasoningEfforts, defaultReasoningEffort, supportedServiceTiers?, isDefault}] (bare array)\n\n moonlet environment list --json\n [{id, name, projectId, hostId, path, branchName, status, lifecycle}] (bare array)\n\n moonlet environment show <id> --json\n {id, name, projectId, hostId, path, branchName, baseBranch, status, lifecycle}\n\n moonlet terminal list --thread <id> --json\n {sessions: [{id, title, status, exitCode, closeReason, cols, rows}]} (wrapped in .sessions)\n\n moonlet terminal output <terminalId> --json\n {chunks: [{seq, dataBase64}], nextSeq, truncated, status, exitCode, closeReason} (chunk data is base64; status is "exited" once the command has finished)\n\n moonlet terminal wait <terminalId> ... --json\n {terminalId, matched, nextSeq, exitCode}\n\n moonlet plugin list --json\n {plugins: [{id, version, enabled, status, source, rootDir}]} (wrapped in .plugins)\n\n moonlet skill list --json\n {skills: [{id, name, description, scope, provider, filePath}]} (wrapped in .skills)\n\n moonlet marketplace list --json\n bare array\n\n moonlet settings show --json\n one object keyed by settings area (generalSettings, serverAccess, keybindings, experiments, appearance, ...)\n\n moonlet guide commands [group] --json\n {chapter, commands: [{path, aliases, arguments, options, description}]}\n\nFor `moonlet thread log`, `--latest` reads a bounded newest-first event window and\naccepts `--types <comma-separated types>` to filter that window. These flags\nrequire JSON output; the ordinary event shape above is unchanged.\n\nCommands contributed by plugins document their own JSON in `bb <command> --help`\nand the plugin\'s skill.',
|
|
23302
|
+
"body": 'JSON output\n\nEvery core command accepts --json except the plugin authoring tools (`bb plugin\nnew`, `types`, `migrate`, `build`, `dev`, `run`, `logs`, `update`). Success\nprints one JSON value on stdout and exits 0. Nothing else is written to stdout.\n\nErrors\n\nA failed command exits non-zero. With --json it prints this envelope on stdout\nand still prints the readable message on stderr:\n\n {"ok": false, "error": {"code": "unknown_option", "message": "...", "hint": "..."}}\n\n`hint` is present only when bb knows the fix: the flag to add, the nearest\ncommand or option, or the usage line. Codes for mistakes in the invocation:\nunknown_command, unknown_option, missing_required, unexpected_argument,\ninvalid_value, missing_command. A failed server request uses the server\'s error\ncode, such as thread_not_found or terminal_output_unavailable; otherwise the\ncode is http_<status> or error.\n\nParse stdout only. `2>&1` mixes the readable message into the JSON, and\n`2>/dev/null` hides it. Check the exit code, or test `.ok == false`, before\nreading fields.\n\nShapes\n\nList commands do not share one wrapper. Most print a bare array; a few wrap it.\nFields beyond those shown exist; these are the ones scripts use. The `--help` of\nthe most-parsed commands ends with the same shape.\n\n moonlet status --json\n {project: {id, name} | null, thread: {id, status, title, parentThreadId, environment: {hostId, display} | null} | null, childThreads: [{id, status, title}] | null, pendingTodos, pluginsNeedingAttention: [{id, status}], dataDir, pluginStatus: {<pluginId>: that plugin\'s status --json output}} (pluginStatus is {} when no plugin adds to status)\n\n moonlet thread list --json\n [{id, projectId, environmentId, providerId, title, status, parentThreadId, sectionId, visibility, archivedAt, pinnedAt, createdAt, updatedAt, activity}] (bare array; title can be null)\n\n moonlet thread show <id> --json\n {thread: {id, status, title, projectId, environmentId, parentThreadId, ...}, environment: {id, hostId, path, branchName, ...} | null, pendingTodos} (thread fields are under .thread)\n\n moonlet thread log <id> --json\n [{id, seq, type, createdAt, threadId, scope, data}] (bare array of raw events, oldest first; page with --after-seq <seq>); with --message: {message, before, after} of conversation rows\n\n moonlet thread output <id> --json\n {output}\n\n moonlet thread spawn ... --json\n the created thread: {id, status, title, projectId, environmentId, ...}\n\n moonlet thread tell <id> ... --json\n {threadId, ...delivery outcome}\n\n moonlet thread wait <id> --json\n {threadId, matched: true, target}\n\n moonlet thread count --json\n {total}\n\n moonlet thread search <query> --json\n {active: {total, results}, archived: {total, results}}\n\n moonlet prompt-history list --json\n {entries: [{id, createdAt, input, projectId, threadId, scope}], nextCursor: string | null}\n\n moonlet thread section list --json\n [{id, name, createdAt, updatedAt}]\n\n moonlet thread queue list <id> --json, moonlet thread interactions list <id> --json, moonlet thread history <id> --json\n bare arrays\n\n moonlet project list --json\n [{id, kind, name, gitRemoteUrl, sources: [{id, hostId, path, isDefault}]}] (bare array)\n\n moonlet project show <id> --json\n {id, kind, name, gitRemoteUrl, sources}\n\n moonlet machine list --json\n [{id, name, type, status, lifecycle, maxPermissionMode, lastSeenAt}] (bare array)\n\n moonlet provider list --json\n [{id, displayName, available, capabilities, reasoningLevels, serviceTiers}] (bare array)\n\n moonlet provider models [providerId] --json\n [{id, model, displayName, supportedReasoningEfforts, defaultReasoningEffort, supportedServiceTiers?, isDefault}] (bare array)\n\n moonlet environment list --json\n [{id, name, projectId, hostId, path, branchName, status, lifecycle}] (bare array)\n\n moonlet environment show <id> --json\n {id, name, projectId, hostId, path, branchName, baseBranch, status, lifecycle}\n\n moonlet terminal list --thread <id> --json\n {sessions: [{id, title, status, exitCode, closeReason, cols, rows}]} (wrapped in .sessions)\n\n moonlet terminal output <terminalId> --json\n {chunks: [{seq, dataBase64}], nextSeq, truncated, status, exitCode, closeReason} (chunk data is base64; status is "exited" once the command has finished)\n\n moonlet terminal wait <terminalId> ... --json\n {terminalId, matched, nextSeq, exitCode}\n\n moonlet plugin list --json\n {plugins: [{id, version, enabled, status, source, rootDir}]} (wrapped in .plugins)\n\n moonlet skill list --json\n {skills: [{id, name, description, scope, provider, filePath}]} (wrapped in .skills)\n\n moonlet marketplace list --json\n bare array\n\n moonlet settings show --json\n one object keyed by settings area (generalSettings, serverAccess, keybindings, experiments, appearance, ...)\n\n moonlet guide commands [group] --json\n {chapter, commands: [{path, aliases, arguments, options, description}]}\n\nFor `moonlet thread log`, `--latest` reads a bounded newest-first event window and\naccepts `--types <comma-separated types>` to filter that window. These flags\nrequire JSON output; the ordinary event shape above is unchanged.\n\nCommands contributed by plugins document their own JSON in `bb <command> --help`\nand the plugin\'s skill.',
|
|
23303
23303
|
"variables": {}
|
|
23304
23304
|
},
|
|
23305
23305
|
{
|
|
@@ -23314,7 +23314,7 @@ var templateDefinitions = [
|
|
|
23314
23314
|
},
|
|
23315
23315
|
{
|
|
23316
23316
|
"id": "bbGuidePlugins",
|
|
23317
|
-
"body": 'Plugin commands\n\nA Moonlet plugin is a TypeScript package that extends bb with server code, an\noptional entry that runs on enrolled hosts, UI, agent skills and tools, and\n`bb` CLI subcommands. Plugins are full-trust code.\n\nBuiltin plugins (`builtin:<name>`) ship with bb and install automatically.\nOfficial store plugins ship with the app and install on request; third-party\nplugins come from marketplaces, Git, npm, or a local path. Plugin state lives\nunder `<bb-data-dir>/plugins/<id>/` for its SQLite database and logs. Secret\nsettings, HTTP tokens and Account Pooler credentials live in private base\ncollections under `<bb-data-dir>/secrets/`, outside plugin-id paths.\n\n moonlet plugin search <query> Search the store: the bundled official\n plugins plus every registered marketplace.\n Matches id, name, description, category, or\n tag; status shows installed, compatible,\n requires newer bb, or `id in use by <source>`\n moonlet plugin install <entry> Install an official plugin by name (docs,\n memory, tasks, github, ...),\n <entry-id>@<marketplace>, a Git repository\n URL, a local path, builtin:<name>,\n git:<url>[@<ref|semver-range>], or\n npm:<package>[@<version|tag|range>].\n Installs ask for confirmation; --yes skips it.\n --subdirectory <path> or --plugin <name>\n selects one plugin of a multi-plugin\n repository; --tag-prefix <prefix> scopes a\n git: semver range. Installing a local path\n for an id already installed from another\n path moves it and keeps its settings.\n Installs run one at a time as server jobs\n that continue if the CLI or app disconnects;\n a repeat request joins the active job.\n --no-wait starts the job and prints its id\n moonlet plugin install-jobs List queued, running, and recently finished\n installs (--json for the jobs)\n moonlet plugin cancel-install <job> Cancel an install: a queued job is dropped;\n a running job stops its download or build\n and installs nothing, unless it already\n started registering, which then finishes\n moonlet plugin outdated Check installed plugins for compatible\n updates (--json for raw results), including\n newer releases blocked by engine ranges\n moonlet plugin update <id> | --all Apply compatible updates for one plugin or\n every tracking plugin. Same confirmation as\n install (--yes skips; non-TTY refuses\n without --yes)\n moonlet plugin list Status, services, schedules, handler timings,\n and contributed CLI commands. `moonlet status`\n also names enabled plugins that are\n incompatible, failed, or missing\n moonlet plugin source <id> [--json] Requested and resolved source, subdirectory,\n semver range and resolved tag, engine ranges,\n install time, and recent activation history\n moonlet plugin enable|disable <id> Load or unload an installed plugin. A\n builtin you never toggled follows Moonlet\'s\n default; an explicit choice persists across\n releases\n moonlet plugin lifecycle [--json] Read required plugin ids, startup problems and\n launch-time recovery status. Required plugins\n refuse disable and removal through every public\n lifecycle control. There is no recovery setter.\n moonlet plugin safe-mode [on|off] Show or change safe mode. `on` stops every\n plugin you installed (official store plugins\n included) without changing its enabled\n setting; builtins keep running. `off`\n restarts them and exits 1 if any fail.\n Installs and updates of stopped plugins are\n refused until it is off\n moonlet plugin reload [id] Restart plugins on their current sources.\n Exits 1 when one does not come up (the\n previous instance is kept or degraded)\n moonlet plugin config <id> [set <key> <value> | unset <key>]\n Show or change a plugin\'s declared settings.\n Running plugins receive changes live; a\n plugin waiting for configuration retries\n moonlet plugin logs <id> [-n N] [-f] Print (or follow) a plugin\'s log\n moonlet plugin run <id> [args...] Run a plugin command explicitly (also works\n when a core command owns its name)\n moonlet plugin token <id> [--rotate] Print the token for a plugin\'s\n token-authenticated HTTP routes; --rotate\n replaces it\n moonlet plugin remove <id> Uninstall and delete the plugin\'s settings,\n secrets, and schedules (local path sources\n stay on disk; builtin removals are\n remembered)\n moonlet plugin prune [--dry-run] Delete cached git:/npm: plugin versions no\n installed plugin uses (left by earlier bb\n releases, rolled-back updates, or\n interrupted operations) and leftover cache\n directories, and print what was freed.\n Updates and removals already delete what\n they replace. Never touches a running\n version or a local path source. Also in the\n command palette\n\n moonlet marketplace add <source> Add a marketplace from an https manifest URL,\n git:<url>[@<ref>], or path:<directory>.\n Adding a marketplace installs nothing. For a\n git: source, --subdirectory <path> reads\n marketplace.json from that directory of the\n repository instead of its root\n moonlet marketplace list Name, source, entry count, and last refresh\n (--json for raw rows)\n moonlet marketplace refresh [name] Re-read one catalog or all of them. Never\n installs, updates, or runs plugin code; a\n failed refresh keeps the last valid catalog\n and exits non-zero\n moonlet marketplace remove <name> Forget a marketplace. Plugins installed from\n it keep running as direct installs and keep\n updating from their recorded source.\n bb-official and bb-community cannot be\n removed\n\nInstalled plugins and their settings also appear under Settings \u2192 Installed\nplugins.\n\nPlugin CLI commands\n\nA plugin can register one top-level `bb` subcommand (for example\n`moonlet github \u2026`); run it like any core command. Core command names win on a\ncollision, and `moonlet plugin list` then shows the `moonlet plugin run <id>` form.\nInside agent threads the generated `plugin-commands` skill lists every\navailable plugin command. Most plugin commands accept `--json` and `--help`.\n\nBundled plugins\n\nEach bundled plugin documents its commands and behavior in its own skill.\n\n- Prompt Library (builtin, disabled by default): enable with\n `moonlet plugin enable bb--prompt-library`. Open **+ \u2192 Prompts\u2026** or press\n **Ctrl+R** to search, preview, star, and insert prompts. Its commands and\n behavior are documented in the `prompt-library` skill.\n- Custom instructions (builtin): up to 4,096 characters saved under\n Settings \u2192 Custom instructions are added to every agent task on this host.\n `moonlet instructions get`, `moonlet instructions set <text...>`, and\n `moonlet instructions clear`.\n- Account Pooler (builtin, off by default): pools Claude and Codex accounts\n behind the Moonlet server with quota-aware failover. Run\n `moonlet plugin enable account-pool`, then `moonlet pool account add`,\n `moonlet pool status`, and `moonlet pool routing`; see the `account-pool` skill.\n- Keep Awake (builtin): prevents idle sleep on selected macOS and Windows\n hosts while bb runs; closing the lid still sleeps.\n `moonlet keep-awake status|enable|disable [--json]`, `moonlet keep-awake hosts all`,\n or `moonlet keep-awake hosts <host-id>...`.\n- Concurrency limit (builtin): caps running threads overall and per host.\n `moonlet concurrency-limit status|global|host`; see the `concurrency-limit`\n skill.\n- Provider retry (builtin): queues an automatic retry after provider\n overloads, server or connection errors, and subscription-window limits.\n `moonlet provider-retry status|explain|retry|cancel`; see the `provider-retry`\n skill.\n- Thread list (builtin): owns the sidebar\'s layout preferences, synced to\n every window. `bb thread-list prefs list|get|set|reset`; see the\n `thread-list` skill.\n- Push notifications (builtin): notifies mobile, web, and desktop clients\n when a thread needs attention.\n `moonlet push-notifications status|list|add|remove|test|thread`; see the\n `push-notifications` skill.\n- Secrets (builtin): `moonlet secret request <NAME...> --write-env <path>` collects\n credentials through a secure form into a dotenv file without exposing them\n to the agent; see the `secrets` skill.\n- Inline previews (builtin): shows an HTML page inline in a reply, from a\n fenced `inline-vis` code block or a `::inline-vis{file="demo.html"}`\n workspace or thread-storage file; see the `inline-vis` skill.\n- MCP server (builtin, disabled by default): `moonlet plugin enable bb--mcp` lets\n ChatGPT, Claude, or another MCP client control this bb; an approved app can\n run any `bb` command. `moonlet mcp status|clients|revoke`; see the `mcp` skill.\n- Storage & retention (builtin, disabled by default): enable with\n `moonlet plugin enable bb--storage-retention`. Owns thread retention policies\n and machine storage cleanup through its sidebar panel and `moonlet storage`\n commands; see the `storage-retention` skill.\n- Automations (builtin): recurring or one-shot agent prompts and stored\n server scripts. `moonlet automation create|list|show|update|pause|resume|run|runs|delete`;\n see the `automations` skill.\n- Workflows (builtin, off by default): durable JavaScript orchestration of\n worker threads. Run `moonlet plugin enable workflows`, then\n `moonlet workflows validate|run|status|history|list|stop`; see the `workflows`\n skill.\n- Memory (official, `moonlet plugin install memory`): durable cross-provider\n agent memory. `moonlet memory catalog|search|get|add|update|forget|history`;\n see the `memory` skill.\n- Docs (official, `moonlet plugin install docs`): document vaults with a\n pull/edit/push loop and reviewable proposals.\n `moonlet docs vaults|list|read|pull|status|push|propose`; see the `docs` skill.\n- Tasks (official, `moonlet plugin install tasks`): a task tracker with agent\n delegation. `moonlet tasks show|list|comment|update|attach`, and\n `moonlet tasks --help` for the rest; see the `tasks` skill.\n- Modal sandboxes (official, `moonlet plugin install environment-modal-sandbox`):\n reusable Modal cloud machines. `moonlet modal account inspect`,\n `moonlet machine create --provider modal-sandbox`, and `moonlet modal image|sandbox`;\n see the `modal-sandboxes` skill.\n\nMulti-plugin repositories\n\nOne repository can hold several plugins, each an ordinary plugin directory\nwith its own package.json. An optional `.bb/plugins.json` collection manifest\nindexes them:\n\n {\n "$schema": "https://getbb.app/schemas/plugins.schema.json",\n "schemaVersion": 1,\n "name": "acme-plugins",\n "plugins": [\n { "name": "sidebar", "source": "./plugins/sidebar" },\n { "name": "status", "source": "./apps/status" }\n ]\n }\n\nEvery source is a repository-relative directory starting with "./"; absolute\npaths, "..", the repository root, duplicate names, and unknown fields are\nrejected. The file is an index only: identity, branding, entry points, and\nengine ranges stay in each plugin\'s manifest.\n\n moonlet plugin install git:github.com/acme/repo@main --plugin sidebar\n moonlet plugin install git:github.com/acme/repo@main --subdirectory plugins/sidebar\n moonlet plugin install path:/work/repo --plugin sidebar\n\n--subdirectory works without a collection manifest; --plugin resolves a name\nfrom .bb/plugins.json. When a repository with a collection manifest is not a\nplugin itself and neither flag is given, the install fails and lists the\nentry names. bb records the subdirectory, so outdated, update, and remove\nwork per plugin.\n\nMarketplaces\n\n`bb-official` lists the plugins bundled with the app. It reads a local catalog\nand never uses the network; install its entries by bare name or qualified name\n(`moonlet plugin install docs` or `moonlet plugin install docs@bb-official`). An app\nupdate also updates the bundled copy.\n\n`bb-community` lists reviewed plugins that live outside the app bundle, read\nfrom https://getbb.app/marketplace/v2/marketplace.json at startup and every two\nhours. Set BB_MARKETPLACE_URL (read at startup) to override the URL. An invalid\nmanifest keeps the last valid catalog. `moonlet plugin search` shows install counts\nthat Moonlet measures through anonymous telemetry, so they undercount; third-party\nmarketplaces have none. Builtins show "Built in", and a plugin under 25\ninstalls that was published in the last 30 days shows "New".\n`moonlet plugin search --json` returns the raw `installs`, `installedByDefault`,\nand long-form `overview` fields.\n\nAnyone can host a third-party marketplace:\n\n moonlet marketplace add https://plugins.acme.dev/marketplace.json\n moonlet marketplace add git:github.com/acme/bb-marketplace@main\n moonlet marketplace add git:github.com/acme/agent-plugins@main --subdirectory bb\n moonlet marketplace add path:/work/acme-marketplace\n\n--subdirectory follows the same path rules as `moonlet plugin install\n--subdirectory`; bb reads marketplace.json and relative icons from that\ndirectory on every refresh. `source.git.subdir` in a catalog entry stays\nrelative to the repository root.\n\nThe manifest `name` is the marketplace identity; duplicates and the reserved\n`bb-official` and `bb-community` names are refused. Install an entry of a\nspecific marketplace with <entry-id>@<marketplace>:\n\n moonlet plugin install thread-hover-cards@acme-plugins\n\nA bare id resolves across every marketplace: one match installs, several\nmatches fail and list the id@marketplace choices. Other source forms bypass\ncatalog resolution. Before installing from a third-party marketplace, bb shows\nthe marketplace, the entry\'s author, and the true source, including the exact\nrelease tag and commit a range lands on. `--yes` skips the prompt, not the\nresolution, and the install is refused if the listing or resolved commit\nchanges after confirmation. Settings \u2192 Plugin marketplaces manages the same\nlist. To publish a marketplace, see the bb-plugin-authoring skill.\n\nUpdates and pinning\n\nUpdates are manual: `moonlet plugin outdated` checks tracking sources and\n`moonlet plugin update` applies compatible candidates. Reinstalling an installed\nmanaged plugin is refused; use `moonlet plugin update`. A failed activation restores\nthe previous version and leaves the failure visible.\n\nExact npm versions, Git tags and commits, path sources, and bundled official\nplugins are pinned. npm ranges, dist-tags, and omitted specs, omitted Git refs\n(the default branch), Git branches, and Git semver ranges track compatible\nupdates. Change a pinned git:/npm: source with `moonlet plugin remove` (which\ndeletes settings, secrets, and schedules) and a fresh install. Edit a local\npath plugin in place and `moonlet plugin reload <id>`, or move it with\n`moonlet plugin install path:<new dir>`; both keep its configuration.\n\nManaged git:/npm: installs refuse engines.bb and engines.bbPluginSdk\nmismatches, manifest and artifact identity mismatches, and ids reserved by\nbundled plugins. Git and path installs build the plugin on install (git\nsources need `git`; bb ships its own npm), and a build failure fails the\ninstall. npm packages must ship their prebuilt app and host bundles.\n\nGit semver ranges\n\nA git source can track releases over the repository\'s tags:\n\n moonlet plugin install git:github.com/acme/repo@^1.2.0\n moonlet plugin install git:github.com/acme/repo@semver:^1.2.0\n moonlet plugin install git:github.com/acme/repo@^1.2.0 --tag-prefix notes/\n\nbb keeps tags named [<tag-prefix>]vX.Y.Z and installs the highest one the\nrange allows. Prereleases are excluded unless the range names one. Without\n--tag-prefix tags are repository-wide (v1.2.3); with it they version one\nplugin (notes/v1.2.3).\n\nbb records the selected tag and its commit. If that tag later points at\nanother commit, bb refuses it and names both commits; remove and reinstall\nthe plugin to accept the new commit.\n\nA bare spec that reads as a range (`^1.2.0`, `1.x`, `>=1 <2`) resolves over\ntags only when no branch or tag has that literal name; when one does, the\ninstall fails and asks you to choose `@semver:<range>` or `@ref:<name>`. Bare\nversion tags such as `v1` and `v1.2.3` are always the literal tag.\n\nAuthoring a plugin\n\n moonlet plugin new <name> Scaffold ./bb-plugin-<name> (backend, sidebar\n page, `bb <name>` command, skill) and install\n its npm dependencies; no server required\n moonlet plugin install . Register the directory in place\n moonlet plugin dev [path] Watch sources, rebuild, and reload the\n installed plugin on every save\n moonlet plugin build [path] Compile the plugin into dist/; no server\n required\n moonlet plugin types [path] [--check] Sync the plugin\'s SDK and shimmed-package\n type pins to this bb; --check only reports\n moonlet plugin migrate [path] [--yes] Move a plugin that vendors types/ to the\n @get-bb/plugin-sdk npm package\n\nThe full authoring reference (manifest, every API surface, build and release,\ntesting, and marketplace publishing) is the built-in `bb-plugin-authoring`\nskill; in a checkout it lives under plugins/bb-guide/skills/bb-plugin-authoring/.\n`plugins/` holds every bundled plugin and `examples/plugins/` holds reference\nplugins.\n\n## Inspect plugin RPC\n\n`moonlet plugin rpc list [plugin-id] [--method <exact-name>] [--json]` lists discoverable methods from running plugins, optionally restricted to one plugin. `moonlet plugin rpc inspect <plugin-id> [method] [--json]` dumps registration and method descriptions plus input/output JSON Schemas. Copy the relevant schema into your consumer and call the existing plugin RPC endpoint. Discovery is opt-in advertising, not access control; method names may carry versions such as `provider-usage.v1.listResources`.\n\n`moonlet plugin rpc call <plugin-id> <method> [--input-file <json-path>] [--json]` invokes a method using server-side schema validation. Omitting the input file sends JSON null. Input files avoid putting sensitive values in command arguments. Handler refusals print their code and message and exit non-zero: `forbidden` (403), `not_found` (404), `conflict` (409), or `invalid` (422).\n\n### Background updates\n\n`moonlet plugin update <id> --yes` starts a server job and waits by polling, so the activation stability check does not hold one HTTP request open. Add `--no-wait` to return immediately. Use `moonlet plugin update-jobs [job-id] --json` for progress and results, including automatic rollback. Queued/running updates continue after the CLI or app disconnects. Finished jobs remain for ten minutes; jobs do not survive server restarts. Running updates cannot be cancelled midway through activation.\n\nSDK: `plugins.applyUpdate({ pluginId })` waits; `plugins.experimental_startUpdate({ pluginId })` returns the job. Inspect with `plugins.experimental_updateJobs.list()` or `.get({ jobId })`. Raw HTTP callers opt in with `Prefer: respond-async`; legacy callers still receive the completed result.\n\nRequired plugins are a lifecycle guard, not a sandbox for server-side plugin\ncode. A broken required built-in cannot be stopped with safe mode, which exempts\nincluded plugins. From outside the app on the server machine, stop the existing\nserver, set `BB_REQUIRED_PLUGIN_RECOVERY=1` in its launch environment, and start\nthat same install against the same data directory. This skips required plugin\nactivation without changing saved preferences or allowing disable/removal.\nRepair with the existing app update or restore path, remove the switch, and\nrestart. Linux and macOS use the same switch. Plugins and assistant turns have\nno public control to enter recovery; the switch is read once before plugins run.\nIt does not restrict arbitrary code already running inside the server process.',
|
|
23317
|
+
"body": 'Plugin commands\n\nA Moonlet plugin is a TypeScript package that extends bb with server code, an\noptional entry that runs on enrolled hosts, UI, agent skills and tools, and\n`bb` CLI subcommands. Plugins are full-trust code.\n\nBuiltin plugins (`builtin:<name>`) ship with bb and install automatically.\nOfficial store plugins ship with the app and install on request; third-party\nplugins come from marketplaces, Git, npm, or a local path. Plugin state lives\nunder `<bb-data-dir>/plugins/<id>/` for its SQLite database and logs. Secret\nsettings, HTTP tokens and Account Pooler credentials live in private base\ncollections under `<bb-data-dir>/secrets/`, outside plugin-id paths.\n\n moonlet plugin search <query> Search the store: the bundled official\n plugins plus every registered marketplace.\n Matches id, name, description, category, or\n tag; status shows installed, compatible,\n requires newer bb, or `id in use by <source>`\n moonlet plugin install <entry> Install an official plugin by name (docs,\n memory, tasks, github, ...),\n <entry-id>@<marketplace>, a Git repository\n URL, a local path, builtin:<name>,\n git:<url>[@<ref|semver-range>], or\n npm:<package>[@<version|tag|range>].\n Installs ask for confirmation; --yes skips it.\n --subdirectory <path> or --plugin <name>\n selects one plugin of a multi-plugin\n repository; --tag-prefix <prefix> scopes a\n git: semver range. Installing a local path\n for an id already installed from another\n path moves it and keeps its settings.\n Installs run one at a time as server jobs\n that continue if the CLI or app disconnects;\n a repeat request joins the active job.\n --no-wait starts the job and prints its id\n moonlet plugin install-jobs List queued, running, and recently finished\n installs (--json for the jobs)\n moonlet plugin cancel-install <job> Cancel an install: a queued job is dropped;\n a running job stops its download or build\n and installs nothing, unless it already\n started registering, which then finishes\n moonlet plugin outdated Check installed plugins for compatible\n updates (--json for raw results), including\n newer releases blocked by engine ranges\n moonlet plugin update <id> | --all Apply compatible updates for one plugin or\n every tracking plugin. Same confirmation as\n install (--yes skips; non-TTY refuses\n without --yes)\n moonlet plugin list Status, services, schedules, handler timings,\n and contributed CLI commands. `moonlet status`\n also names enabled plugins that are\n incompatible, failed, or missing\n moonlet plugin source <id> [--json] Requested and resolved source, subdirectory,\n semver range and resolved tag, engine ranges,\n install time, and recent activation history\n moonlet plugin enable|disable <id> Load or unload an installed plugin. A\n builtin you never toggled follows Moonlet\'s\n default; an explicit choice persists across\n releases\n moonlet plugin lifecycle [--json] Read required plugin ids, startup problems and\n launch-time recovery status. Required plugins\n refuse disable and removal through every public\n lifecycle control. There is no recovery setter.\n moonlet plugin safe-mode [on|off] Show or change safe mode. `on` stops every\n plugin you installed (official store plugins\n included) without changing its enabled\n setting; builtins keep running. `off`\n restarts them and exits 1 if any fail.\n Installs and updates of stopped plugins are\n refused until it is off\n moonlet plugin reload [id] Restart plugins on their current sources.\n Exits 1 when one does not come up (the\n previous instance is kept or degraded)\n moonlet plugin config <id> [set <key> <value> | unset <key>]\n Show or change a plugin\'s declared settings.\n Running plugins receive changes live; a\n plugin waiting for configuration retries\n moonlet plugin logs <id> [-n N] [-f] Print (or follow) a plugin\'s log\n moonlet plugin run <id> [args...] Run a plugin command explicitly (also works\n when a core command owns its name)\n moonlet plugin token <id> [--rotate] Print the token for a plugin\'s\n token-authenticated HTTP routes; --rotate\n replaces it\n moonlet plugin remove <id> Uninstall and delete the plugin\'s settings,\n secrets, and schedules (local path sources\n stay on disk; builtin removals are\n remembered)\n moonlet plugin prune [--dry-run] Delete cached git:/npm: plugin versions no\n installed plugin uses (left by earlier bb\n releases, rolled-back updates, or\n interrupted operations) and leftover cache\n directories, and print what was freed.\n Updates and removals already delete what\n they replace. Never touches a running\n version or a local path source. Also in the\n command palette\n\n moonlet marketplace add <source> Add a marketplace from an https manifest URL,\n git:<url>[@<ref>], or path:<directory>.\n Adding a marketplace installs nothing. For a\n git: source, --subdirectory <path> reads\n marketplace.json from that directory of the\n repository instead of its root\n moonlet marketplace list Name, source, entry count, and last refresh\n (--json for raw rows)\n moonlet marketplace refresh [name] Re-read one catalog or all of them. Never\n installs, updates, or runs plugin code; a\n failed refresh keeps the last valid catalog\n and exits non-zero\n moonlet marketplace remove <name> Forget a marketplace. Plugins installed from\n it keep running as direct installs and keep\n updating from their recorded source.\n bb-official and bb-community cannot be\n removed\n\nInstalled plugins and their settings also appear under Settings \u2192 Installed\nplugins.\n\nPlugin CLI commands\n\nA plugin can register one top-level `bb` subcommand (for example\n`moonlet github \u2026`); run it like any core command. Core command names win on a\ncollision, and `moonlet plugin list` then shows the `moonlet plugin run <id>` form.\nMoonlet\'s own assistant also answers at the top level (`moonlet station list`,\n`moonlet say`), and adds subcommands core lacks to `thread`, `project` and\n`schedule` (`moonlet thread take 12`, `moonlet project add owner/repo`).\n`moonlet status` shows its section after the current context, and\n`moonlet schedule list` starts with the owner\'s clock. `moonlet --help` and a\ngroup\'s `--help` list these commands; `moonlet <command>` still works.\nInside agent threads the generated `plugin-commands` skill lists every\navailable plugin command. Most plugin commands accept `--json` and `--help`.\n\nBundled plugins\n\nEach bundled plugin documents its commands and behavior in its own skill.\n\n- Prompt Library (builtin, disabled by default): enable with\n `moonlet plugin enable bb--prompt-library`. Open **+ \u2192 Prompts\u2026** or press\n **Ctrl+R** to search, preview, star, and insert prompts. Its commands and\n behavior are documented in the `prompt-library` skill.\n- Custom instructions (builtin): up to 4,096 characters saved under\n Settings \u2192 Custom instructions are added to every agent task on this host.\n `moonlet instructions get`, `moonlet instructions set <text...>`, and\n `moonlet instructions clear`.\n- Account Pooler (builtin, off by default): pools Claude and Codex accounts\n behind the Moonlet server with quota-aware failover. Run\n `moonlet plugin enable account-pool`, then `moonlet pool account add`,\n `moonlet pool status`, and `moonlet pool routing`; see the `account-pool` skill.\n- Keep Awake (builtin): prevents idle sleep on selected macOS and Windows\n hosts while bb runs; closing the lid still sleeps.\n `moonlet keep-awake status|enable|disable [--json]`, `moonlet keep-awake hosts all`,\n or `moonlet keep-awake hosts <host-id>...`.\n- Concurrency limit (builtin): caps running threads overall and per host.\n `moonlet concurrency-limit status|global|host`; see the `concurrency-limit`\n skill.\n- Provider retry (builtin): queues an automatic retry after provider\n overloads, server or connection errors, and subscription-window limits.\n `moonlet provider-retry status|explain|retry|cancel`; see the `provider-retry`\n skill.\n- Thread list (builtin): owns the sidebar\'s layout preferences, synced to\n every window. `bb thread-list prefs list|get|set|reset`; see the\n `thread-list` skill.\n- Push notifications (builtin): notifies mobile, web, and desktop clients\n when a thread needs attention.\n `moonlet push-notifications status|list|add|remove|test|thread`; see the\n `push-notifications` skill.\n- Secrets (builtin): `moonlet secret request <NAME...> --write-env <path>` collects\n credentials through a secure form into a dotenv file without exposing them\n to the agent; see the `secrets` skill.\n- Inline previews (builtin): shows an HTML page inline in a reply, from a\n fenced `inline-vis` code block or a `::inline-vis{file="demo.html"}`\n workspace or thread-storage file; see the `inline-vis` skill.\n- MCP server (builtin, disabled by default): `moonlet plugin enable bb--mcp` lets\n ChatGPT, Claude, or another MCP client control this bb; an approved app can\n run any `bb` command. `moonlet mcp status|clients|revoke`; see the `mcp` skill.\n- Storage & retention (builtin, disabled by default): enable with\n `moonlet plugin enable bb--storage-retention`. Owns thread retention policies\n and machine storage cleanup through its sidebar panel and `moonlet storage`\n commands; see the `storage-retention` skill.\n- Automations (builtin): recurring or one-shot agent prompts and stored\n server scripts. `moonlet automation create|list|show|update|pause|resume|run|runs|delete`;\n see the `automations` skill.\n- Workflows (builtin, off by default): durable JavaScript orchestration of\n worker threads. Run `moonlet plugin enable workflows`, then\n `moonlet workflows validate|run|status|history|list|stop`; see the `workflows`\n skill.\n- Memory (official, `moonlet plugin install memory`): durable cross-provider\n agent memory. `moonlet memory catalog|search|get|add|update|forget|history`;\n see the `memory` skill.\n- Docs (official, `moonlet plugin install docs`): document vaults with a\n pull/edit/push loop and reviewable proposals.\n `moonlet docs vaults|list|read|pull|status|push|propose`; see the `docs` skill.\n- Tasks (official, `moonlet plugin install tasks`): a task tracker with agent\n delegation. `moonlet tasks show|list|comment|update|attach`, and\n `moonlet tasks --help` for the rest; see the `tasks` skill.\n- Modal sandboxes (official, `moonlet plugin install environment-modal-sandbox`):\n reusable Modal cloud machines. `moonlet modal account inspect`,\n `moonlet machine create --provider modal-sandbox`, and `moonlet modal image|sandbox`;\n see the `modal-sandboxes` skill.\n\nMulti-plugin repositories\n\nOne repository can hold several plugins, each an ordinary plugin directory\nwith its own package.json. An optional `.bb/plugins.json` collection manifest\nindexes them:\n\n {\n "$schema": "https://getbb.app/schemas/plugins.schema.json",\n "schemaVersion": 1,\n "name": "acme-plugins",\n "plugins": [\n { "name": "sidebar", "source": "./plugins/sidebar" },\n { "name": "status", "source": "./apps/status" }\n ]\n }\n\nEvery source is a repository-relative directory starting with "./"; absolute\npaths, "..", the repository root, duplicate names, and unknown fields are\nrejected. The file is an index only: identity, branding, entry points, and\nengine ranges stay in each plugin\'s manifest.\n\n moonlet plugin install git:github.com/acme/repo@main --plugin sidebar\n moonlet plugin install git:github.com/acme/repo@main --subdirectory plugins/sidebar\n moonlet plugin install path:/work/repo --plugin sidebar\n\n--subdirectory works without a collection manifest; --plugin resolves a name\nfrom .bb/plugins.json. When a repository with a collection manifest is not a\nplugin itself and neither flag is given, the install fails and lists the\nentry names. bb records the subdirectory, so outdated, update, and remove\nwork per plugin.\n\nMarketplaces\n\n`bb-official` lists the plugins bundled with the app. It reads a local catalog\nand never uses the network; install its entries by bare name or qualified name\n(`moonlet plugin install docs` or `moonlet plugin install docs@bb-official`). An app\nupdate also updates the bundled copy.\n\n`bb-community` lists reviewed plugins that live outside the app bundle, read\nfrom https://getbb.app/marketplace/v2/marketplace.json at startup and every two\nhours. Set BB_MARKETPLACE_URL (read at startup) to override the URL. An invalid\nmanifest keeps the last valid catalog. `moonlet plugin search` shows install counts\nthat Moonlet measures through anonymous telemetry, so they undercount; third-party\nmarketplaces have none. Builtins show "Built in", and a plugin under 25\ninstalls that was published in the last 30 days shows "New".\n`moonlet plugin search --json` returns the raw `installs`, `installedByDefault`,\nand long-form `overview` fields.\n\nAnyone can host a third-party marketplace:\n\n moonlet marketplace add https://plugins.acme.dev/marketplace.json\n moonlet marketplace add git:github.com/acme/bb-marketplace@main\n moonlet marketplace add git:github.com/acme/agent-plugins@main --subdirectory bb\n moonlet marketplace add path:/work/acme-marketplace\n\n--subdirectory follows the same path rules as `moonlet plugin install\n--subdirectory`; bb reads marketplace.json and relative icons from that\ndirectory on every refresh. `source.git.subdir` in a catalog entry stays\nrelative to the repository root.\n\nThe manifest `name` is the marketplace identity; duplicates and the reserved\n`bb-official` and `bb-community` names are refused. Install an entry of a\nspecific marketplace with <entry-id>@<marketplace>:\n\n moonlet plugin install thread-hover-cards@acme-plugins\n\nA bare id resolves across every marketplace: one match installs, several\nmatches fail and list the id@marketplace choices. Other source forms bypass\ncatalog resolution. Before installing from a third-party marketplace, bb shows\nthe marketplace, the entry\'s author, and the true source, including the exact\nrelease tag and commit a range lands on. `--yes` skips the prompt, not the\nresolution, and the install is refused if the listing or resolved commit\nchanges after confirmation. Settings \u2192 Plugin marketplaces manages the same\nlist. To publish a marketplace, see the bb-plugin-authoring skill.\n\nUpdates and pinning\n\nUpdates are manual: `moonlet plugin outdated` checks tracking sources and\n`moonlet plugin update` applies compatible candidates. Reinstalling an installed\nmanaged plugin is refused; use `moonlet plugin update`. A failed activation restores\nthe previous version and leaves the failure visible.\n\nExact npm versions, Git tags and commits, path sources, and bundled official\nplugins are pinned. npm ranges, dist-tags, and omitted specs, omitted Git refs\n(the default branch), Git branches, and Git semver ranges track compatible\nupdates. Change a pinned git:/npm: source with `moonlet plugin remove` (which\ndeletes settings, secrets, and schedules) and a fresh install. Edit a local\npath plugin in place and `moonlet plugin reload <id>`, or move it with\n`moonlet plugin install path:<new dir>`; both keep its configuration.\n\nManaged git:/npm: installs refuse engines.bb and engines.bbPluginSdk\nmismatches, manifest and artifact identity mismatches, and ids reserved by\nbundled plugins. Git and path installs build the plugin on install (git\nsources need `git`; bb ships its own npm), and a build failure fails the\ninstall. npm packages must ship their prebuilt app and host bundles.\n\nGit semver ranges\n\nA git source can track releases over the repository\'s tags:\n\n moonlet plugin install git:github.com/acme/repo@^1.2.0\n moonlet plugin install git:github.com/acme/repo@semver:^1.2.0\n moonlet plugin install git:github.com/acme/repo@^1.2.0 --tag-prefix notes/\n\nbb keeps tags named [<tag-prefix>]vX.Y.Z and installs the highest one the\nrange allows. Prereleases are excluded unless the range names one. Without\n--tag-prefix tags are repository-wide (v1.2.3); with it they version one\nplugin (notes/v1.2.3).\n\nbb records the selected tag and its commit. If that tag later points at\nanother commit, bb refuses it and names both commits; remove and reinstall\nthe plugin to accept the new commit.\n\nA bare spec that reads as a range (`^1.2.0`, `1.x`, `>=1 <2`) resolves over\ntags only when no branch or tag has that literal name; when one does, the\ninstall fails and asks you to choose `@semver:<range>` or `@ref:<name>`. Bare\nversion tags such as `v1` and `v1.2.3` are always the literal tag.\n\nAuthoring a plugin\n\n moonlet plugin new <name> Scaffold ./bb-plugin-<name> (backend, sidebar\n page, `bb <name>` command, skill) and install\n its npm dependencies; no server required\n moonlet plugin install . Register the directory in place\n moonlet plugin dev [path] Watch sources, rebuild, and reload the\n installed plugin on every save\n moonlet plugin build [path] Compile the plugin into dist/; no server\n required\n moonlet plugin types [path] [--check] Sync the plugin\'s SDK and shimmed-package\n type pins to this bb; --check only reports\n moonlet plugin migrate [path] [--yes] Move a plugin that vendors types/ to the\n @get-bb/plugin-sdk npm package\n\nThe full authoring reference (manifest, every API surface, build and release,\ntesting, and marketplace publishing) is the built-in `bb-plugin-authoring`\nskill; in a checkout it lives under plugins/bb-guide/skills/bb-plugin-authoring/.\n`plugins/` holds every bundled plugin and `examples/plugins/` holds reference\nplugins.\n\n## Inspect plugin RPC\n\n`moonlet plugin rpc list [plugin-id] [--method <exact-name>] [--json]` lists discoverable methods from running plugins, optionally restricted to one plugin. `moonlet plugin rpc inspect <plugin-id> [method] [--json]` dumps registration and method descriptions plus input/output JSON Schemas. Copy the relevant schema into your consumer and call the existing plugin RPC endpoint. Discovery is opt-in advertising, not access control; method names may carry versions such as `provider-usage.v1.listResources`.\n\n`moonlet plugin rpc call <plugin-id> <method> [--input-file <json-path>] [--json]` invokes a method using server-side schema validation. Omitting the input file sends JSON null. Input files avoid putting sensitive values in command arguments. Handler refusals print their code and message and exit non-zero: `forbidden` (403), `not_found` (404), `conflict` (409), or `invalid` (422).\n\n### Background updates\n\n`moonlet plugin update <id> --yes` starts a server job and waits by polling, so the activation stability check does not hold one HTTP request open. Add `--no-wait` to return immediately. Use `moonlet plugin update-jobs [job-id] --json` for progress and results, including automatic rollback. Queued/running updates continue after the CLI or app disconnects. Finished jobs remain for ten minutes; jobs do not survive server restarts. Running updates cannot be cancelled midway through activation.\n\nSDK: `plugins.applyUpdate({ pluginId })` waits; `plugins.experimental_startUpdate({ pluginId })` returns the job. Inspect with `plugins.experimental_updateJobs.list()` or `.get({ jobId })`. Raw HTTP callers opt in with `Prefer: respond-async`; legacy callers still receive the completed result.\n\nRequired plugins are a lifecycle guard, not a sandbox for server-side plugin\ncode. A broken required built-in cannot be stopped with safe mode, which exempts\nincluded plugins. From outside the app on the server machine, stop the existing\nserver, set `BB_REQUIRED_PLUGIN_RECOVERY=1` in its launch environment, and start\nthat same install against the same data directory. This skips required plugin\nactivation without changing saved preferences or allowing disable/removal.\nRepair with the existing app update or restore path, remove the switch, and\nrestart. Linux and macOS use the same switch. Plugins and assistant turns have\nno public control to enter recovery; the switch is read once before plugins run.\nIt does not restrict arbitrary code already running inside the server process.',
|
|
23318
23318
|
"variables": {}
|
|
23319
23319
|
},
|
|
23320
23320
|
{
|
package/host-daemon/dist/bb
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __createRequire } from "node:module";import { dirname as __pathDirname } from "node:path";import { fileURLToPath as __fileURLToPath } from "node:url";const require = __createRequire(import.meta.url);const __filename = __fileURLToPath(import.meta.url);const __dirname = __pathDirname(__filename);
|
|
3
|
-
import{a as
|
|
4
|
-
`),process.exitCode=1;return}process.exit(
|
|
3
|
+
import{a as f,b as C,c as v}from"./moonlet-chunks/chunk-AMLYXV3N.js";import{a as u,b as g,d}from"./moonlet-chunks/chunk-YGXDASNN.js";import"./moonlet-chunks/chunk-2BGEXHA2.js";import{spawnSync as O}from"node:child_process";import{realpathSync as I}from"node:fs";import{basename as w,dirname as x,resolve as L,win32 as T}from"node:path";var h="BB_CLI_REEXEC",P=new Set(["moonlet","bb"]);function k(e){return e.platform==="win32"&&T.extname(e.target)===""?{command:e.nodePath,args:[e.target,...e.argv]}:{command:e.target,args:e.argv}}function y(e){try{return I(L(e))}catch{return null}}function A(e,n){return e===n||x(e)===x(n)&&P.has(w(e))&&P.has(w(n))}function E(e={}){let n=e.env??process.env;if(n[h]==="1")return;let t=n.BB_CLI?.trim();if(!t)return;let r=e.currentExecutablePath??process.argv[1];if(!r)return;let o=y(t),s=y(r);if(o===null||s===null||A(o,s))return;let i=e.argv??process.argv.slice(2),a={...n,[h]:"1"};if(e.reexec){e.reexec({target:o,argv:i,env:a});return}let l=k({argv:i,nodePath:process.execPath,platform:process.platform,target:o}),m=O(l.command,l.args,{env:a,stdio:"inherit"});if(m.error){process.stderr.write(`Moonlet: failed to re-exec BB_CLI=${o}: ${m.error.message}
|
|
4
|
+
`),process.exitCode=1;return}process.exit(m.status===null?1:m.status)}process.env.FORCE_COLOR!==void 0&&delete process.env.NO_COLOR;E();var c=new g;c.name("moonlet").description("Moonlet CLI - manage your AI coding agents").enablePositionalOptions().exitOverride().showSuggestionAfterError(!1).version(d());var S=new Set([...f.map(e=>e.name),"help"]),H=1500;function N(e){let n,t=()=>n??=e.createCliRuntimeContext(),r=()=>e.resolveServerUrl(t()),o;return{getUrl:r,getContext:()=>e.resolveContextSnapshot(t()),findMounted:async s=>{if(o===void 0){let i=await import("./moonlet-chunks/plugin-cli-proxy-D33QEUON.js");o??=i.createMountedCommandLookup(r)}return o(s)}}}async function p(e,n,t,r){let o=e.declaredCommandFor(n,D(t));o!==void 0&&n.rendersHelp!==!0&&t.some(i=>i==="--help"||i==="-h")&&(console.log(o.usage),process.exit(0));let s=await e.runPluginCliCommand(r(),n.pluginId,t);s!==0&&await _({code:"plugin_command_failed",command:e.pluginCommandLabel(n,t),exitCode:s,token:null}),process.exit(s)}async function B(e,n,t){let r=await import("./moonlet-chunks/plugin-cli-proxy-D33QEUON.js"),o=await r.fetchPluginCliContributions(n());if(o.outcome==="unreachable"){if(t)return;let l=r.describeUnreachableServer(n(),o.cause,o.lastTimeoutMs,o.attempts);console.error(l);let{isJsonInvocation:m,writeCliErrorEnvelope:R}=await import("./moonlet-chunks/cli-error-output-EGR66BMG.js");R({code:"server_unreachable",hint:null,message:l},m(process.argv)),process.exit(1)}if(o.outcome==="invalid")return;let s=t?void 0:r.findMountedPlugin(o.contributions,e);s!==void 0&&await p(r,s,process.argv.slice(2),n);let i=r.findPluginCliCommand(o.contributions,e);i!==void 0&&await p(r,i,process.argv.slice(3),n);let a=await r.findDisabledPluginForCommand(n(),e);a!==null&&(console.error(`moonlet ${e} is provided by the "${a}" plugin, which is disabled \u2014 run \`moonlet plugin enable ${a}\` or enable it in Plugins.`),process.exit(1))}function D(e){let n=[];for(let t of e){if(t.startsWith("-"))break;n.push(t)}return n}async function j(e){let t=(await import("./moonlet-chunks/command-resolution-UBY5F7QK.js")).resolveInvocation(c,process.argv);if(t.path.length===0||t.unknownSubcommand===null)return;let r=await import("./moonlet-chunks/plugin-cli-proxy-D33QEUON.js"),o=await r.fetchPluginCliContributions(e());if(o.outcome!=="ok")return;let s=[...t.path,t.unknownSubcommand],i=r.findMountedCommand(o.contributions,s);i!==void 0&&await p(r,i,process.argv.slice(2),e)}async function V(e){let n=await import("./moonlet-chunks/command-resolution-UBY5F7QK.js");if(!n.showsHelp(c,process.argv))return;let t=await import("./moonlet-chunks/plugin-cli-proxy-D33QEUON.js"),r=await t.fetchPluginCliContributions(e(),H,{attempts:1});if(r.outcome!=="ok")return;let o=t.mountedTopLevelHelp(r.contributions,new Set([...S,...Object.keys(n.TOP_LEVEL_SOFT_ALIASES)]));o!==null&&c.addHelpText("after",o);for(let s of c.commands){let i=t.mountedGroupHelp(r.contributions,[s.name()],new Set(s.commands.map(a=>a.name())));i!==null&&s.addHelpText("after",i)}}async function _(e){let[{appendCliErrorLogEntry:n},{commandPathLabel:t}]=await Promise.all([import("./moonlet-chunks/cli-error-log-5RBL4B2E.js"),import("./moonlet-chunks/commander-errors-PJ4VE3N2.js")]);n({at:new Date().toISOString(),cliVersion:d(),code:e.code,command:e.command??t(c,process.argv),exitCode:e.exitCode,threadId:process.env.BB_THREAD_ID??null,token:e.token})}async function M(e,n){e.exitCode===0&&process.exit(0);let[t,r]=await Promise.all([import("./moonlet-chunks/commander-errors-PJ4VE3N2.js"),import("./moonlet-chunks/context-hints-3E453WTB.js")]),o=await t.summarizeCommanderError({argv:process.argv,error:e,program:c,resolveHostId:n===null?async()=>null:r.createContextHostIdResolver(n)});t.writeCommanderErrorSummary(o,process.argv),await _({code:o.code,command:null,exitCode:e.exitCode,token:o.logToken}),process.exit(e.exitCode)}async function b(e){try{await c.parseAsync(process.argv)}catch(n){throw n instanceof u&&await M(n,e),n}}async function $(e){let n=await import("./moonlet-chunks/command-resolution-UBY5F7QK.js");if(!n.hasHelpFlag(process.argv))return;let t=n.resolveInvocation(c,process.argv);if(t.unknownSubcommand===null)return;let r=`error: unknown command '${t.unknownSubcommand}'`;console.error(r),await M(new u(1,"commander.unknownCommand",r),e)}async function F(){let[{JSON_SHAPE_BY_COMMAND_PATH:e,jsonShapeHelp:n},t]=await Promise.all([import("./moonlet-chunks/json-shapes-5T3VYRCY.js"),import("./moonlet-chunks/command-resolution-UBY5F7QK.js")]);for(let r of Object.keys(e)){let o=t.resolveInvocation(c,["node",c.name(),...r.split(" ")]),s=n(r);s===null||o.path.join(" ")!==r||o.command.addHelpText("after",s)}}async function J(){let e=process.argv[2],n=C(e);if(n.length===0){await b(null);return}let[t,...r]=await Promise.all([import("./moonlet-chunks/context-env-PQXDGBS2.js"),...n.map(i=>i.load())]),o=N(t);for(let i of r)i(c,o);await F();let s=v(e,S);if(s!==null){let{TOP_LEVEL_SOFT_ALIASES:i}=await import("./moonlet-chunks/command-resolution-UBY5F7QK.js"),a=i[s];await B(s,o.getUrl,a!==void 0),a!==void 0&&(process.argv[2]=a)}await j(o.getUrl),await V(o.getUrl),c.addHelpText("after",()=>{let i=o.getContext(),a=i.projectId??"<unset>",l=i.threadId??"<unset>";return`
|
|
5
5
|
|
|
6
6
|
Current context:
|
|
7
|
-
BB_PROJECT_ID: ${
|
|
8
|
-
BB_THREAD_ID: ${
|
|
7
|
+
BB_PROJECT_ID: ${a}
|
|
8
|
+
BB_THREAD_ID: ${l}
|
|
9
9
|
BB_SERVER_URL: ${i.serverUrl}
|
|
10
10
|
|
|
11
11
|
Quick start:
|
|
@@ -13,4 +13,4 @@ Quick start:
|
|
|
13
13
|
moonlet project list
|
|
14
14
|
moonlet thread show <id>
|
|
15
15
|
moonlet thread spawn --project <id> --provider codex --prompt "..."
|
|
16
|
-
`})
|
|
16
|
+
`}),await $(o.getUrl),await b(o.getUrl)}J().catch(e=>{console.error(e.message),process.exit(1)});
|
package/host-daemon/dist/moonlet
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __createRequire } from "node:module";import { dirname as __pathDirname } from "node:path";import { fileURLToPath as __fileURLToPath } from "node:url";const require = __createRequire(import.meta.url);const __filename = __fileURLToPath(import.meta.url);const __dirname = __pathDirname(__filename);
|
|
3
|
-
import{a as
|
|
4
|
-
`),process.exitCode=1;return}process.exit(
|
|
3
|
+
import{a as f,b as C,c as v}from"./moonlet-chunks/chunk-AMLYXV3N.js";import{a as u,b as g,d}from"./moonlet-chunks/chunk-YGXDASNN.js";import"./moonlet-chunks/chunk-2BGEXHA2.js";import{spawnSync as O}from"node:child_process";import{realpathSync as I}from"node:fs";import{basename as w,dirname as x,resolve as L,win32 as T}from"node:path";var h="BB_CLI_REEXEC",P=new Set(["moonlet","bb"]);function k(e){return e.platform==="win32"&&T.extname(e.target)===""?{command:e.nodePath,args:[e.target,...e.argv]}:{command:e.target,args:e.argv}}function y(e){try{return I(L(e))}catch{return null}}function A(e,n){return e===n||x(e)===x(n)&&P.has(w(e))&&P.has(w(n))}function E(e={}){let n=e.env??process.env;if(n[h]==="1")return;let t=n.BB_CLI?.trim();if(!t)return;let r=e.currentExecutablePath??process.argv[1];if(!r)return;let o=y(t),s=y(r);if(o===null||s===null||A(o,s))return;let i=e.argv??process.argv.slice(2),a={...n,[h]:"1"};if(e.reexec){e.reexec({target:o,argv:i,env:a});return}let l=k({argv:i,nodePath:process.execPath,platform:process.platform,target:o}),m=O(l.command,l.args,{env:a,stdio:"inherit"});if(m.error){process.stderr.write(`Moonlet: failed to re-exec BB_CLI=${o}: ${m.error.message}
|
|
4
|
+
`),process.exitCode=1;return}process.exit(m.status===null?1:m.status)}process.env.FORCE_COLOR!==void 0&&delete process.env.NO_COLOR;E();var c=new g;c.name("moonlet").description("Moonlet CLI - manage your AI coding agents").enablePositionalOptions().exitOverride().showSuggestionAfterError(!1).version(d());var S=new Set([...f.map(e=>e.name),"help"]),H=1500;function N(e){let n,t=()=>n??=e.createCliRuntimeContext(),r=()=>e.resolveServerUrl(t()),o;return{getUrl:r,getContext:()=>e.resolveContextSnapshot(t()),findMounted:async s=>{if(o===void 0){let i=await import("./moonlet-chunks/plugin-cli-proxy-D33QEUON.js");o??=i.createMountedCommandLookup(r)}return o(s)}}}async function p(e,n,t,r){let o=e.declaredCommandFor(n,D(t));o!==void 0&&n.rendersHelp!==!0&&t.some(i=>i==="--help"||i==="-h")&&(console.log(o.usage),process.exit(0));let s=await e.runPluginCliCommand(r(),n.pluginId,t);s!==0&&await _({code:"plugin_command_failed",command:e.pluginCommandLabel(n,t),exitCode:s,token:null}),process.exit(s)}async function B(e,n,t){let r=await import("./moonlet-chunks/plugin-cli-proxy-D33QEUON.js"),o=await r.fetchPluginCliContributions(n());if(o.outcome==="unreachable"){if(t)return;let l=r.describeUnreachableServer(n(),o.cause,o.lastTimeoutMs,o.attempts);console.error(l);let{isJsonInvocation:m,writeCliErrorEnvelope:R}=await import("./moonlet-chunks/cli-error-output-EGR66BMG.js");R({code:"server_unreachable",hint:null,message:l},m(process.argv)),process.exit(1)}if(o.outcome==="invalid")return;let s=t?void 0:r.findMountedPlugin(o.contributions,e);s!==void 0&&await p(r,s,process.argv.slice(2),n);let i=r.findPluginCliCommand(o.contributions,e);i!==void 0&&await p(r,i,process.argv.slice(3),n);let a=await r.findDisabledPluginForCommand(n(),e);a!==null&&(console.error(`moonlet ${e} is provided by the "${a}" plugin, which is disabled \u2014 run \`moonlet plugin enable ${a}\` or enable it in Plugins.`),process.exit(1))}function D(e){let n=[];for(let t of e){if(t.startsWith("-"))break;n.push(t)}return n}async function j(e){let t=(await import("./moonlet-chunks/command-resolution-UBY5F7QK.js")).resolveInvocation(c,process.argv);if(t.path.length===0||t.unknownSubcommand===null)return;let r=await import("./moonlet-chunks/plugin-cli-proxy-D33QEUON.js"),o=await r.fetchPluginCliContributions(e());if(o.outcome!=="ok")return;let s=[...t.path,t.unknownSubcommand],i=r.findMountedCommand(o.contributions,s);i!==void 0&&await p(r,i,process.argv.slice(2),e)}async function V(e){let n=await import("./moonlet-chunks/command-resolution-UBY5F7QK.js");if(!n.showsHelp(c,process.argv))return;let t=await import("./moonlet-chunks/plugin-cli-proxy-D33QEUON.js"),r=await t.fetchPluginCliContributions(e(),H,{attempts:1});if(r.outcome!=="ok")return;let o=t.mountedTopLevelHelp(r.contributions,new Set([...S,...Object.keys(n.TOP_LEVEL_SOFT_ALIASES)]));o!==null&&c.addHelpText("after",o);for(let s of c.commands){let i=t.mountedGroupHelp(r.contributions,[s.name()],new Set(s.commands.map(a=>a.name())));i!==null&&s.addHelpText("after",i)}}async function _(e){let[{appendCliErrorLogEntry:n},{commandPathLabel:t}]=await Promise.all([import("./moonlet-chunks/cli-error-log-5RBL4B2E.js"),import("./moonlet-chunks/commander-errors-PJ4VE3N2.js")]);n({at:new Date().toISOString(),cliVersion:d(),code:e.code,command:e.command??t(c,process.argv),exitCode:e.exitCode,threadId:process.env.BB_THREAD_ID??null,token:e.token})}async function M(e,n){e.exitCode===0&&process.exit(0);let[t,r]=await Promise.all([import("./moonlet-chunks/commander-errors-PJ4VE3N2.js"),import("./moonlet-chunks/context-hints-3E453WTB.js")]),o=await t.summarizeCommanderError({argv:process.argv,error:e,program:c,resolveHostId:n===null?async()=>null:r.createContextHostIdResolver(n)});t.writeCommanderErrorSummary(o,process.argv),await _({code:o.code,command:null,exitCode:e.exitCode,token:o.logToken}),process.exit(e.exitCode)}async function b(e){try{await c.parseAsync(process.argv)}catch(n){throw n instanceof u&&await M(n,e),n}}async function $(e){let n=await import("./moonlet-chunks/command-resolution-UBY5F7QK.js");if(!n.hasHelpFlag(process.argv))return;let t=n.resolveInvocation(c,process.argv);if(t.unknownSubcommand===null)return;let r=`error: unknown command '${t.unknownSubcommand}'`;console.error(r),await M(new u(1,"commander.unknownCommand",r),e)}async function F(){let[{JSON_SHAPE_BY_COMMAND_PATH:e,jsonShapeHelp:n},t]=await Promise.all([import("./moonlet-chunks/json-shapes-5T3VYRCY.js"),import("./moonlet-chunks/command-resolution-UBY5F7QK.js")]);for(let r of Object.keys(e)){let o=t.resolveInvocation(c,["node",c.name(),...r.split(" ")]),s=n(r);s===null||o.path.join(" ")!==r||o.command.addHelpText("after",s)}}async function J(){let e=process.argv[2],n=C(e);if(n.length===0){await b(null);return}let[t,...r]=await Promise.all([import("./moonlet-chunks/context-env-PQXDGBS2.js"),...n.map(i=>i.load())]),o=N(t);for(let i of r)i(c,o);await F();let s=v(e,S);if(s!==null){let{TOP_LEVEL_SOFT_ALIASES:i}=await import("./moonlet-chunks/command-resolution-UBY5F7QK.js"),a=i[s];await B(s,o.getUrl,a!==void 0),a!==void 0&&(process.argv[2]=a)}await j(o.getUrl),await V(o.getUrl),c.addHelpText("after",()=>{let i=o.getContext(),a=i.projectId??"<unset>",l=i.threadId??"<unset>";return`
|
|
5
5
|
|
|
6
6
|
Current context:
|
|
7
|
-
BB_PROJECT_ID: ${
|
|
8
|
-
BB_THREAD_ID: ${
|
|
7
|
+
BB_PROJECT_ID: ${a}
|
|
8
|
+
BB_THREAD_ID: ${l}
|
|
9
9
|
BB_SERVER_URL: ${i.serverUrl}
|
|
10
10
|
|
|
11
11
|
Quick start:
|
|
@@ -13,4 +13,4 @@ Quick start:
|
|
|
13
13
|
moonlet project list
|
|
14
14
|
moonlet thread show <id>
|
|
15
15
|
moonlet thread spawn --project <id> --provider codex --prompt "..."
|
|
16
|
-
`})
|
|
16
|
+
`}),await $(o.getUrl),await b(o.getUrl)}J().catch(e=>{console.error(e.message),process.exit(1)});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module";import { dirname as __pathDirname } from "node:path";import { fileURLToPath as __fileURLToPath } from "node:url";const require = __createRequire(import.meta.url);const __filename = __fileURLToPath(import.meta.url);const __dirname = __pathDirname(__filename);
|
|
2
|
-
import{j as a}from"./chunk-
|
|
2
|
+
import{j as a}from"./chunk-AMRIL2T2.js";import"./chunk-YGXDASNN.js";import"./chunk-VPTJVPF6.js";import{b as I}from"./chunk-U2AZAOUG.js";import"./chunk-F3TVX7N5.js";import"./chunk-L4X3OY44.js";import"./chunk-GV5ARURY.js";import"./chunk-ETE6WQ2I.js";import"./chunk-NE2XK7OY.js";import"./chunk-3YHI2NNI.js";import{a as r}from"./chunk-YBR35YRF.js";import"./chunk-2BGEXHA2.js";import{writeFile as y}from"node:fs/promises";var x=["chrome","chromium","helium","edge","brave","vivaldi","opera","arc","dia","firefox","zen","safari"],h=r.union([r.enum(x),r.string().regex(/^storage-[a-f0-9]{64}$/)]),k=r.enum(["notInstalled","needsKeychainApproval","keychainItemMissing","needsFullDiskAccess","browserRunning","unsupportedPlatform"]),B=r.enum([...k.options,"keychainUnavailable","unknownSource","unknownSourceProfile","readFailed"]),g=r.string().min(1).max(4096),v=r.object({directory:g,name:r.string().min(1).max(256),cookieCount:r.number().int().nonnegative().optional()}).strict(),T=r.object({id:h,name:r.string().min(1).max(64),profiles:r.array(v).max(100),unavailable:k.optional(),icon:r.string().max(256*1024).regex(/^data:image\/[a-z+]+;base64,/u).optional()}).strict(),E=r.object({sourceId:h,sourceProfileDirectory:g}),D=r.object({imported:r.number().int().nonnegative(),skipped:r.number().int().nonnegative(),skippedDomains:r.array(r.string().max(1024)).max(20)}).strict(),j=r.discriminatedUnion("ok",[D.extend({ok:r.literal(!0)}).strict(),r.object({ok:r.literal(!1),reason:B}).strict()]),R={notInstalled:"Not installed on this machine.",needsKeychainApproval:"Needs Keychain access to read its cookie encryption key. Approve the prompt and try again.",keychainItemMissing:"No matching encryption key was found in your Keychain. Open and sign in to the source browser, then try again. Browsers with custom key names may need additional support.",needsFullDiskAccess:"Give BB Full Disk Access in System Settings \u2192 Privacy & Security, then try again.",browserRunning:"Quit the browser first so its cookie database can be read.",unsupportedPlatform:"Importing from this browser isn't possible on this platform."},S={...R,keychainUnavailable:"The system keyring could not be reached. Make sure it is running and unlocked, then try again.",unknownSource:"That browser is no longer available to import from.",unknownSourceProfile:"That browser profile no longer exists.",readFailed:"The browser's cookie database could not be read."};function p(n){return{hostId:n.host,instanceId:n.instance,generation:n.generation,threadId:n.thread}}function O(n){return n.requiredOption("--host <id>","Browser host ID").requiredOption("--instance <id>","Desktop window instance ID").requiredOption("--generation <id>","Desktop connection generation").option("--json","Print machine-readable JSON output")}function $(n){return n.sources.map(s=>{let i=s.unavailable??"ready",o=s.profiles.map(e=>`${e.directory}${e.name===e.directory?"":` "${e.name}"`}${e.cookieCount===void 0?"":` (${e.cookieCount})`}`).join(", ");return`${s.id} ${i} ${o}`.trimEnd()}).join(`
|
|
3
3
|
`)||"No importable browsers found"}function P(n){if(!n.ok)return`Import failed: ${S[n.reason]}`;let d=n.skipped>0?`, skipped ${n.skipped}${n.skippedDomains.length>0?` (${n.skippedDomains.join(", ")})`:""}`:"";return`Imported ${n.imported} cookies${d}`}function l(n){return n.requiredOption("--host <id>","Browser host ID").requiredOption("--instance <id>","Desktop window instance ID").requiredOption("--generation <id>","Desktop connection generation").requiredOption("--thread <id>","Owning thread ID").option("--json","Print machine-readable JSON output")}function c(n,d,s){console.log(d.json?JSON.stringify(n):s)}function _(n,d){let s=n.command("browser").description("Experimental built-in desktop browser control"),i=()=>I(d()).experimental_desktopBrowsers;s.command("instances").description("List connected desktop windows on a host").requiredOption("--host <id>","Browser host ID").option("--json","Print machine-readable JSON output").action(a(async o=>{let e=await i().listInstances({hostId:o.host});c(e,o,e.instances.map(t=>`${t.instanceId} ${t.generation} ${t.label}`).join(`
|
|
4
4
|
`)||"No connected desktop windows")})),l(s.command("tabs").description("List a thread's native browser tabs")).action(a(async o=>{let e=await i().listTabs(p(o));c(e,o,e.tabs.map(t=>`${t.tabId} ${t.title||t.url} ${t.control?.controllerLabel??"Available"}`).join(`
|
|
5
5
|
`)||"No browser tabs in this thread")})),l(s.command("create").description("Create a tab in the Moonlet browser profile")).option("--url <url>","Initial HTTP(S) URL; defaults to about:blank").option("--reveal","Show the new native tab").action(a(async o=>{let e=await i().createTab({...p(o),...o.url===void 0?{}:{url:o.url},...o.reveal?{presentation:"reveal"}:{}});c(e,o,`Created tab ${e.tab.tabId}`)})),l(s.command("acquire <tabIds...>").description("Acquire exclusive, expiring control of selected tabs")).requiredOption("--controller <label>","Visible controller name").option("--ttl-ms <ms>","Lease duration; defaults to five minutes, maximum thirty").action(a(async(o,e)=>{let t=await i().acquireControl({...p(e),tabIds:o,controllerLabel:e.controller,...e.ttlMs===void 0?{}:{ttlMs:Number(e.ttlMs)}});c(t,e,`Control lease ${t.leaseId} expires ${new Date(t.expiresAt).toISOString()}`)})),l(s.command("connection <leaseId>").description("Write private CDP connection JSON to a new local file")).requiredOption("--output <file>","New credential file (mode 0600); endpoint works only on browser host").action(a(async(o,e)=>{let t=await i().openConnection({...p(e),leaseId:o});await y(e.output,JSON.stringify(t),{mode:384,flag:"wx"}),c({path:e.output,hostId:t.hostId,expiresAt:t.expiresAt},e,`Wrote private connection to ${e.output}`)})),l(s.command("release <leaseId>").description("Stop automation and keep tabs open")).action(a(async(o,e)=>{c(await i().releaseControl({...p(e),leaseId:o}),e,"Released browser control")}));for(let o of["reveal","close"])l(s.command(`${o} <tabId>`).description(o==="close"?"Close a native tab":"Reveal a native tab in its desktop window")).action(a(async(e,t)=>{let m={...p(t),tabId:e};c(await(o==="close"?i().closeTab(m):i().revealTab(m)),t,`${o==="close"?"Closed":"Revealed"} tab ${e}`)}));l(s.command("capture <tabId>").description("Save a native tab screenshot without focusing it")).requiredOption("--output <file>","New local JPEG file").action(a(async(o,e)=>{let t=await i().captureTab({...p(e),tabId:o});await y(e.output,Buffer.from(t.base64,"base64"),{flag:"wx",mode:384}),c({path:e.output,mimeType:t.mimeType},e,`Saved screenshot to ${e.output}`)})),O(s.command("import-sources").description("List browsers on the desktop host whose cookies can be imported")).action(a(async o=>{let e=await i().listImportSources({hostId:o.host,instanceId:o.instance,generation:o.generation});c(e,o,$(e))})),O(s.command("import-cookies").description("Copy signed-in cookies from an installed browser into the Moonlet browser")).requiredOption("--from <source>","Source browser ID from `moonlet browser import-sources`").requiredOption("--profile <directory>","Source profile directory as printed by `moonlet browser import-sources`").action(a(async o=>{let e=await i().importCookies({hostId:o.host,instanceId:o.instance,generation:o.generation,sourceId:h.parse(o.from),sourceProfileDirectory:o.profile});c(e,o,P(e)),e.ok||(process.exitCode=1)})),l(s.command("watch").description("Print changed tab snapshots every two seconds until interrupted")).action(a(async o=>{await new Promise((e,t)=>{let m=i().subscribe({...p(o),onChange:w=>c(w,o,w.tabs.map(b=>`${b.tabId} ${b.title||b.url} ${b.control?.controllerLabel??"Available"}`).join(`
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "node:module";import { dirname as __pathDirname } from "node:path";import { fileURLToPath as __fileURLToPath } from "node:url";const require = __createRequire(import.meta.url);const __filename = __fileURLToPath(import.meta.url);const __dirname = __pathDirname(__filename);
|
|
2
|
+
function o(e,r,t){return{name:e,load:()=>r().then(t)}}var n=[o("browser",()=>import("./browser-SIZXMCFP.js"),e=>(r,t)=>e.registerBrowserCommands(r,t.getUrl)),o("status",()=>import("./status-W3DLEUQQ.js"),e=>(r,t)=>e.registerStatusCommand(r,t.getUrl,t.getContext,t.findMounted)),o("settings",()=>import("./settings-A2NWNM3T.js"),e=>(r,t)=>e.registerSettingsCommands(r,t.getUrl)),o("permissions",()=>import("./permissions-5HX5ZAAP.js"),e=>(r,t)=>e.registerPermissionsCommands(r,t.getUrl)),o("schedule",()=>import("./schedule-CRYJEZYV.js"),e=>(r,t)=>e.registerScheduleCommands(r,t.getUrl,t.findMounted)),o("project",()=>import("./project-Q5AWY3GY.js"),e=>(r,t)=>e.registerProjectCommands(r,t.getUrl)),o("prompt-history",()=>import("./prompt-history-4KKUSAVA.js"),e=>(r,t)=>e.registerPromptHistoryCommands(r,t.getUrl)),o("provider",()=>import("./provider-ZID2ZGC3.js"),e=>(r,t)=>e.registerProviderCommands(r,t.getUrl)),o("machine",()=>import("./machine-4HUCOSZP.js"),e=>(r,t)=>e.registerMachineCommands(r,t.getUrl)),o("server",()=>import("./server-4LTGC34Q.js"),e=>(r,t)=>e.registerServerCommands(r,t.getUrl)),o("updates",()=>import("./updates-KSFRMW7U.js"),e=>(r,t)=>e.registerUpdatesCommands(r,t.getUrl)),o("terminal",()=>import("./terminal-66EE5CPJ.js"),e=>(r,t)=>e.registerTerminalCommands(r,t.getUrl)),o("thread",()=>import("./thread-332SGGKT.js"),e=>(r,t)=>e.registerThreadCommands(r,t.getUrl)),o("environment",()=>import("./environment-DC5CSVF7.js"),e=>(r,t)=>e.registerEnvironmentCommands(r,t.getUrl)),o("file",()=>import("./file-J6XJDVUF.js"),e=>(r,t)=>e.registerFileCommands(r,t.getUrl)),o("theme",()=>import("./theme-3YBQO5WC.js"),e=>(r,t)=>e.registerThemeCommands(r,t.getUrl)),o("plugin",()=>import("./plugin-FFRP4XEV.js"),e=>(r,t)=>e.registerPluginCommands(r,t.getUrl)),o("marketplace",()=>import("./marketplace-WE6QTMQ2.js"),e=>(r,t)=>e.registerMarketplaceCommands(r,t.getUrl)),o("skill",()=>import("./skill-MR2D45MT.js"),e=>(r,t)=>e.registerSkillCommands(r,t.getUrl,t.getContext)),o("guide",()=>import("./guide-SQNG2F3M.js"),e=>r=>e.registerGuideCommand(r)),o("diagnostics",()=>import("./diagnostics-VK5LVFB7.js"),e=>r=>e.registerDiagnosticsCommands(r)),o("voice",()=>import("./voice-4HYXR6BK.js"),e=>(r,t)=>e.registerVoiceCommands(r,t.getUrl))];function m(e){if(e==="--version"||e==="-V")return[];let r=n.find(t=>t.name===e);return r===void 0?n:[r]}function i(e,r){return e===void 0||e.length===0||e.startsWith("-")||r.has(e)?null:e}export{n as a,m as b,i as c};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module";import { dirname as __pathDirname } from "node:path";import { fileURLToPath as __fileURLToPath } from "node:url";const require = __createRequire(import.meta.url);const __filename = __fileURLToPath(import.meta.url);const __dirname = __pathDirname(__filename);
|
|
2
|
-
import{b as l,d as x}from"./chunk-YGXDASNN.js";import{a as p,c as g,d as h,e as E}from"./chunk-VPTJVPF6.js";import{ha as f}from"./chunk-
|
|
2
|
+
import{b as l,d as x}from"./chunk-YGXDASNN.js";import{a as p,c as g,d as h,e as E}from"./chunk-VPTJVPF6.js";import{ha as f}from"./chunk-F3TVX7N5.js";import{d,e as m}from"./chunk-L4X3OY44.js";import{a as c}from"./chunk-GV5ARURY.js";import{createInterface as w}from"node:readline/promises";var A=d;function $(n,o){return n.json?(console.log(JSON.stringify(o,null,2)),h(),!0):!1}function D(n,o){return[...o,n]}function J(n){n.source==="env"&&console.error(`Thread ${n.id} (from BB_THREAD_ID)`)}async function P(n){if(!process.stdin.isTTY||!process.stdout.isTTY)throw new Error("Refusing destructive action without an interactive terminal. Re-run with --yes to confirm.");let o=w({input:process.stdin,output:process.stdout});try{let e=(await o.question(`${n} [y/N] `)).trim().toLowerCase();return e==="y"||e==="yes"}finally{o.close()}}function u(n){if(!(n instanceof Error))return String(n);let o=new Set,r=[],e=[n];for(;e.length>0;){let t=e.pop();if(t===void 0||o.has(t))continue;o.add(t),t.message.length>0&&r.push(t.message);let i=[];t.cause instanceof Error&&i.push(t.cause),t instanceof AggregateError&&i.push(...t.errors.filter(s=>s instanceof Error));for(let s=i.length-1;s>=0;s-=1)e.push(i[s])}return r.join(": ")}function _(n){if(n===void 0)return;let o=m.safeParse(n);if(o.success)return o.data;throw new Error(`Invalid reasoning level '${n}'. Expected a level id the model lists, such as ${y(A)}.`)}function B(n,o){return new Error(`${n}: ${u(o)}`)}function y(n){return n.map(o=>`'${o}'`).join(" or ")}var a=class extends Error{code;exitCode;hint;constructor(o,r,e={code:"error",hint:null}){super(o),this.name="CliExitError",this.code=e.code,this.exitCode=r,this.hint=e.hint}};function z(n){return async(...o)=>{g();try{await n(...o)}catch(r){if(R(r))throw r;let e=r instanceof a?r.exitCode:1,t=r instanceof a?r.message:u(r),i=r instanceof c||r instanceof a?r.hint:null,s=v(r);console.error(`Error: ${t}`),i!==null&&console.error(i),E({code:s,hint:i,message:t},T(o)),await b({code:s,command:I(o),exitCode:e}),process.exit(e)}}}function v(n){return n instanceof c||n instanceof a?n.code:n instanceof f?n.code??`http_${n.status}`:"error"}function C(n){let o=n[n.length-1];return o instanceof l?o:null}function T(n){let o=C(n);if(o===null)return p();let r=o.opts();return r.json===!0||r.format==="json"}function I(n){let o=C(n);if(o===null)return"";let r=[];for(let e=o;e!==null&&e.parent!==null;e=e.parent)r.unshift(e.name());return r.join(" ")}async function b(n){try{let{appendCliErrorLogEntry:o}=await import("./cli-error-log-5RBL4B2E.js");o({at:new Date().toISOString(),cliVersion:x(),code:n.code,command:n.command,exitCode:n.exitCode,threadId:process.env.BB_THREAD_ID??null,token:null})}catch{}}function R(n){return n instanceof Error&&n.message.startsWith("process.exit:")}export{$ as a,D as b,J as c,P as d,u as e,_ as f,B as g,y as h,a as i,z as j};
|