@songsid/agend 2.3.3-beta.3 β 2.3.3-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-cli.js +13 -112
- package/dist/agent-cli.js.map +1 -1
- package/dist/agent-endpoint.d.ts +0 -1
- package/dist/agent-endpoint.js +1 -9
- package/dist/agent-endpoint.js.map +1 -1
- package/dist/agent-whats-new.d.ts +3 -6
- package/dist/agent-whats-new.js +7 -18
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/auth-api.d.ts +0 -7
- package/dist/auth-api.js +1 -15
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/codex.d.ts +1 -0
- package/dist/backend/codex.js +106 -15
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/types.d.ts +17 -0
- package/dist/backend/types.js.map +1 -1
- package/dist/bundled-skills.d.ts +4 -6
- package/dist/bundled-skills.js +10 -14
- package/dist/bundled-skills.js.map +1 -1
- package/dist/channel/mcp-server.js +5 -5
- package/dist/channel/mcp-server.js.map +1 -1
- package/dist/channel/mcp-tools.d.ts +1 -3
- package/dist/channel/mcp-tools.js +4 -58
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/cli.js +3 -1
- package/dist/cli.js.map +1 -1
- package/dist/config-validator.js +6 -3
- package/dist/config-validator.js.map +1 -1
- package/dist/daemon.d.ts +11 -3
- package/dist/daemon.js +59 -107
- package/dist/daemon.js.map +1 -1
- package/dist/dashboard-live.d.ts +1 -1
- package/dist/dashboard-live.js +3 -3
- package/dist/dashboard-live.js.map +1 -1
- package/dist/dashboard-permissions.d.ts +1 -1
- package/dist/dashboard-permissions.js +1 -3
- package/dist/dashboard-permissions.js.map +1 -1
- package/dist/fleet-manager.d.ts +26 -44
- package/dist/fleet-manager.js +70 -226
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +11 -1
- package/dist/general-knowledge/skills/session-management/SKILL.md +6 -0
- package/dist/general-knowledge/skills/web-appearance/SKILL.md +13 -204
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +26 -63
- package/dist/instance-lifecycle.js +1 -1
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/locale.js +2 -0
- package/dist/locale.js.map +1 -1
- package/dist/outbound-handlers.js +19 -7
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +0 -62
- package/dist/outbound-schemas.js +2 -41
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/public-web-gateway.js +0 -9
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/public-web-link.d.ts +2 -0
- package/dist/public-web-link.js +5 -0
- package/dist/public-web-link.js.map +1 -1
- package/dist/search/search-docs.d.ts +1 -1
- package/dist/search/search-docs.js +2 -2
- package/dist/search/search-docs.js.map +1 -1
- package/dist/settings-api.d.ts +6 -0
- package/dist/settings-api.js +14 -2
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-change.js +3 -1
- package/dist/settings-change.js.map +1 -1
- package/dist/task-board-waker.d.ts +4 -1
- package/dist/task-board-waker.js +13 -2
- package/dist/task-board-waker.js.map +1 -1
- package/dist/tool-permissions.js +3 -10
- package/dist/tool-permissions.js.map +1 -1
- package/dist/topic-commands.d.ts +6 -2
- package/dist/topic-commands.js +2 -0
- package/dist/topic-commands.js.map +1 -1
- package/dist/types.d.ts +2 -1
- package/dist/ui/chat-ambient.js +4 -4
- package/dist/ui/chat-commands.js +3 -2
- package/dist/ui/chat-store.js +4 -1
- package/dist/ui/chat-strings.js +6 -42
- package/dist/ui/chat-thread.js +6 -44
- package/dist/ui/panel-chat.js +21 -50
- package/dist/ui/preview-panel.js +3 -15
- package/dist/ui/search-dialog.js +30 -14
- package/dist/ui/settings-appearance.js +1 -3
- package/dist/ui/settings-guests.js +13 -4
- package/dist/ui/settings-learn.js +1 -1
- package/dist/ui/settings-mods.js +5 -12
- package/dist/ui/settings-registry.js +0 -1
- package/dist/ui/settings-strings.js +6 -6
- package/dist/ui/shared/app-prefs.js +17 -17
- package/dist/ui/shared/app-shell.js +12 -8
- package/dist/ui/shared/app-store.js +6 -2
- package/dist/ui/shared/app.css +4 -36
- package/dist/ui/shared/app.js +5 -4
- package/dist/ui/shared/instance-nav.js +9 -9
- package/dist/ui/shared/instance-switch.js +8 -2
- package/dist/ui/shared/panel-view.js +22 -8
- package/dist/ui/shared/view-strings.js +6 -0
- package/dist/usage/usage-api.d.ts +3 -0
- package/dist/usage/usage-api.js +5 -1
- package/dist/usage/usage-api.js.map +1 -1
- package/dist/view-api.d.ts +2 -0
- package/dist/view-api.js +64 -0
- package/dist/view-api.js.map +1 -1
- package/dist/web-api.d.ts +9 -17
- package/dist/web-api.js +255 -371
- package/dist/web-api.js.map +1 -1
- package/dist/web-appearance-tools.d.ts +0 -2
- package/dist/web-appearance-tools.js +2 -5
- package/dist/web-appearance-tools.js.map +1 -1
- package/dist/web-appearance-view.d.ts +0 -6
- package/dist/web-appearance-view.js +0 -1
- package/dist/web-appearance-view.js.map +1 -1
- package/dist/web-appearance.d.ts +14 -7
- package/dist/web-appearance.js +5 -6
- package/dist/web-appearance.js.map +1 -1
- package/dist/web-asset-parts.d.ts +1 -17
- package/dist/web-asset-parts.js +1 -15
- package/dist/web-asset-parts.js.map +1 -1
- package/dist/web-auth.js +1 -7
- package/dist/web-auth.js.map +1 -1
- package/dist/web-chat-history.d.ts +3 -7
- package/dist/web-chat-history.js +10 -17
- package/dist/web-chat-history.js.map +1 -1
- package/dist/web-commands.d.ts +9 -1
- package/dist/web-commands.js +13 -0
- package/dist/web-commands.js.map +1 -1
- package/dist/web-experimental.d.ts +2 -11
- package/dist/web-experimental.js +8 -36
- package/dist/web-experimental.js.map +1 -1
- package/dist/web-guest-access.d.ts +40 -2
- package/dist/web-guest-access.js +50 -14
- package/dist/web-guest-access.js.map +1 -1
- package/dist/web-mod-bundle.d.ts +2 -45
- package/dist/web-mod-bundle.js +15 -63
- package/dist/web-mod-bundle.js.map +1 -1
- package/dist/web-mod-store.d.ts +3 -48
- package/dist/web-mod-store.js +30 -97
- package/dist/web-mod-store.js.map +1 -1
- package/dist/web-prefs.d.ts +13 -0
- package/dist/web-prefs.js +38 -0
- package/dist/web-prefs.js.map +1 -1
- package/dist/web-preview.d.ts +1 -11
- package/dist/web-preview.js +6 -20
- package/dist/web-preview.js.map +1 -1
- package/dist/web-session.d.ts +11 -3
- package/dist/web-session.js +22 -11
- package/dist/web-session.js.map +1 -1
- package/dist/web-settings-patch.d.ts +1 -0
- package/dist/web-settings-patch.js +6 -3
- package/dist/web-settings-patch.js.map +1 -1
- package/dist/web-settings-tools.d.ts +0 -13
- package/dist/web-settings-tools.js +12 -84
- package/dist/web-settings-tools.js.map +1 -1
- package/launcher/fleet-service-owner.cjs +4 -1
- package/package.json +1 -1
- package/dist/general-knowledge/skills/web-appearance/SKILL.canvas-worker-off.md +0 -376
- package/dist/general-knowledge/skills/web-dashboard/SKILL.canvas-worker-off.md +0 -672
- package/dist/ui/app-effects.js +0 -251
- package/dist/ui/chat-effect-posters.js +0 -42
- package/dist/ui/chat-effects.js +0 -167
- package/dist/ui/effect-trial-controller.js +0 -124
- package/dist/ui/effect-trial-offer.js +0 -2
- package/dist/ui/effect-trial-panel.js +0 -40
- package/dist/ui/effects-waker.js +0 -2
- package/dist/ui/settings-effects.js +0 -202
- package/dist/ui/settings-owner-effects.js +0 -82
- package/dist/ui/shared/effect-app-runtime.js +0 -299
- package/dist/ui/shared/effect-baseline.js +0 -64
- package/dist/ui/shared/effect-chat-runtime.js +0 -162
- package/dist/ui/shared/effect-cursor.js +0 -126
- package/dist/ui/shared/effect-display-metadata.js +0 -39
- package/dist/ui/shared/effect-frame.js +0 -146
- package/dist/ui/shared/effect-geometry.js +0 -137
- package/dist/ui/shared/effect-host-style.js +0 -10
- package/dist/ui/shared/effect-owner-regions.js +0 -74
- package/dist/ui/shared/effect-owner-source.js +0 -122
- package/dist/ui/shared/effect-policy.js +0 -151
- package/dist/ui/shared/effect-poster-reader.js +0 -98
- package/dist/ui/shared/effect-posters.js +0 -117
- package/dist/ui/shared/effect-profiler.js +0 -184
- package/dist/ui/shared/effect-profiles.js +0 -65
- package/dist/ui/shared/effect-registry.js +0 -545
- package/dist/ui/shared/effect-runtime-loader.js +0 -236
- package/dist/ui/shared/effect-safety.js +0 -153
- package/dist/ui/shared/effect-stock-snapshot.js +0 -43
- package/dist/ui/shared/effect-stock-trust.js +0 -217
- package/dist/ui/shared/effect-trial-shadow.js +0 -62
- package/dist/ui/shared/effect-trial-source.js +0 -103
- package/dist/ui/shared/effect-trial-stage.js +0 -170
- package/dist/ui/shared/effect-trial.css +0 -40
- package/dist/ui/shared/feature-flags.js +0 -127
- package/dist/ui/shared/owner-effect-prefs.js +0 -117
- package/dist/web-effect-bootstrap.d.ts +0 -12
- package/dist/web-effect-bootstrap.js +0 -49
- package/dist/web-effect-bootstrap.js.map +0 -1
- package/dist/web-effect-bundle.d.ts +0 -28
- package/dist/web-effect-bundle.js +0 -171
- package/dist/web-effect-bundle.js.map +0 -1
- package/dist/web-effect-canonical.d.ts +0 -8
- package/dist/web-effect-canonical.js +0 -27
- package/dist/web-effect-canonical.js.map +0 -1
- package/dist/web-effect-library.d.ts +0 -114
- package/dist/web-effect-library.js +0 -530
- package/dist/web-effect-library.js.map +0 -1
- package/dist/web-effect-playback.d.ts +0 -30
- package/dist/web-effect-playback.js +0 -71
- package/dist/web-effect-playback.js.map +0 -1
- package/dist/web-effect-poster.d.ts +0 -8
- package/dist/web-effect-poster.js +0 -52
- package/dist/web-effect-poster.js.map +0 -1
- package/dist/web-effect-profiles.d.ts +0 -118
- package/dist/web-effect-profiles.js +0 -181
- package/dist/web-effect-profiles.js.map +0 -1
- package/dist/web-effect-service.d.ts +0 -93
- package/dist/web-effect-service.js +0 -335
- package/dist/web-effect-service.js.map +0 -1
- package/dist/web-effect-tools.d.ts +0 -48
- package/dist/web-effect-tools.js +0 -129
- package/dist/web-effect-tools.js.map +0 -1
- package/dist/web-effect-trials.d.ts +0 -86
- package/dist/web-effect-trials.js +0 -204
- package/dist/web-effect-trials.js.map +0 -1
- package/dist/web-effect-upload.d.ts +0 -27
- package/dist/web-effect-upload.js +0 -185
- package/dist/web-effect-upload.js.map +0 -1
- package/dist/web-effect-worker.d.ts +0 -8
- package/dist/web-effect-worker.js +0 -170
- package/dist/web-effect-worker.js.map +0 -1
- package/dist/web-effect.d.ts +0 -103
- package/dist/web-effect.js +0 -153
- package/dist/web-effect.js.map +0 -1
- package/dist/web-experimental-http.d.ts +0 -2
- package/dist/web-experimental-http.js +0 -12
- package/dist/web-experimental-http.js.map +0 -1
- package/dist/web-mod-agent.d.ts +0 -50
- package/dist/web-mod-agent.js +0 -207
- package/dist/web-mod-agent.js.map +0 -1
|
@@ -23,12 +23,10 @@ type ToolDef = {
|
|
|
23
23
|
export declare const OUTBOUND_TOOL_SCHEMAS: ReadonlyMap<string, ZodType>;
|
|
24
24
|
export declare function usesChannelAddress(tool: string): boolean;
|
|
25
25
|
export declare const TOOLS: ToolDef[];
|
|
26
|
+
export {};
|
|
26
27
|
/**
|
|
27
28
|
* The profiles live in `src/tool-permissions.ts` now, with the permission check
|
|
28
29
|
* that uses them. A tool list that only one of four entry paths consults is not
|
|
29
30
|
* a control, so it stopped being defined next to the schemas and moved next to
|
|
30
31
|
* the thing that enforces it.
|
|
31
32
|
*/
|
|
32
|
-
/** #2275: keep non-CW appearance tools useful without advertising disabled branches. */
|
|
33
|
-
export declare function toolsWithCanvasWorker(enabled: boolean, definitions?: readonly ToolDef[]): ToolDef[];
|
|
34
|
-
export {};
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* without pulling in channel infrastructure.
|
|
7
7
|
*/
|
|
8
8
|
import { z } from "zod";
|
|
9
|
-
import { isCanvasWorkerTool } from "../web-experimental.js";
|
|
10
9
|
import * as schemas from "../outbound-schemas.js";
|
|
11
10
|
const ANNOTATIONS = new Set(["description", "title", "default", "examples"]);
|
|
12
11
|
/**
|
|
@@ -152,9 +151,9 @@ const DEFS = [
|
|
|
152
151
|
["set_persona_emoji", schemas.SetPersonaEmojiArgs,
|
|
153
152
|
"Set your persona emoji: the status stamp (default: delivered) your bot puts on messages it handles, so people can tell you apart from other bots. Other statuses: received, queued, processing, failed, progress_prefix, and photo / attachment (the stamp on a photo / file your bot saved). Validated the way Settings validates it; takes effect on your next stamp."],
|
|
154
153
|
["get_web_settings", schemas.GetWebSettingsArgs,
|
|
155
|
-
"Settings β Look
|
|
154
|
+
"Read Settings β Look: themes, colours, cards, widgets, custom CSS and ambient presets. General, coordinators and full profiles."],
|
|
156
155
|
["set_web_settings", schemas.SetWebSettingsArgs,
|
|
157
|
-
"Change
|
|
156
|
+
"Change Settings β Look: host settings, colours, cards, custom CSS, ambient presets, or Restore defaults. General, coordinators and full profiles."],
|
|
158
157
|
["get_web_theme", schemas.GetWebThemeArgs,
|
|
159
158
|
"Your own web theme (how your chat looks in the web dashboard): the current theme, the token defaults it is drawn over, your uploaded pictures, and your limits (changes left, each picture slot's size limits and your picture quota; uploads are not counted). No target: always yours."],
|
|
160
159
|
["set_web_theme", schemas.SetWebThemeArgs,
|
|
@@ -162,7 +161,7 @@ const DEFS = [
|
|
|
162
161
|
["set_web_theme_asset", schemas.SetWebThemeAssetArgs,
|
|
163
162
|
"Upload a picture from your working directory for your theme's background or avatar, your identity card's portrait or banner, or a glyph for your ambient; returns { id } to name in set_web_theme (background.image, avatar, card.portrait, card.banner) or set_web_ambient (glyphs: [{ asset: id }]). Metadata (EXIF/GPS) is removed. Each slot's size limits and your picture quota apply."],
|
|
164
163
|
["get_web_appearance", schemas.GetWebAppearanceArgs,
|
|
165
|
-
"
|
|
164
|
+
"Read your own appearance on the dashboard: face, ring colour, identity card, theme, widgets, ambient presets and limits."],
|
|
166
165
|
["preview_web_appearance", schemas.PreviewWebAppearanceArgs,
|
|
167
166
|
"Draw how you appear on the web dashboard as an SVG per mode (your card, the chat header with your face and ring, a pair of bubbles in your colours, your working label), written to .agend/appearance/<mode>.svg in your working directory, with the pictures it shows beside it (avatar, portrait, banner, background). Returns the paths: Read the SVGs for geometry, colours and text, and the pictures as images."],
|
|
168
167
|
["set_web_widget", schemas.SetWebWidgetArgs,
|
|
@@ -170,7 +169,7 @@ const DEFS = [
|
|
|
170
169
|
["remove_web_widget", schemas.RemoveWebWidgetArgs,
|
|
171
170
|
"Remove your own widget from one slot, or both (a change for the rate limit). A widget a person placed stays."],
|
|
172
171
|
["set_web_ambient", schemas.SetWebAmbientArgs,
|
|
173
|
-
"Set your own ambient
|
|
172
|
+
"Set your own ambient preset (fall, rise, twinkle, burst-on-click) with glyphs, colours and numbers. Declarative data only; no code or preview is needed. Shares the theme-change limit and respects a person's lock."],
|
|
174
173
|
["clear_web_ambient", schemas.ClearWebAmbientArgs,
|
|
175
174
|
"Clear your own ambient effect: the looping one, the click one, or both (a change for the rate limit). One a person set stays."],
|
|
176
175
|
["office_view", schemas.OfficeViewArgs,
|
|
@@ -189,26 +188,8 @@ const DEFS = [
|
|
|
189
188
|
"List the skin packs the fleet keeps: each { id, name, files, bytes, version, uploaded_at, by, previous: { version, files, bytes } | null (restorable), offices: [ids drawn in it] }, plus deleted packs whose previous version was kept, the stored offices with their style, the approval mode (\"apply\": at once; \"approve\": an admin's yes first), your pending changes, the limits and your remaining budget. Read it before uploading."],
|
|
190
189
|
["office_set_style", schemas.OfficeSetStyleArgs,
|
|
191
190
|
"Point a stored office (office_pack_list lists them) at a skin pack the fleet keeps, or a built-in style (pixel, studio, cozy). Its layout overrides stay (they apply only on the pack they were made on, and must fit it). Logged, told to the admins and held for their yes like an upload; counts as a batch. Returns { applied } or { pending } or { error, message }."],
|
|
192
|
-
["export_web_mod", schemas.ExportWebModArgs,
|
|
193
|
-
"Export your own look on the web dashboard as a mod file β your theme with its pictures, your card text and the widgets you placed (never custom CSS) β written to .agend/mods/<name>-<version>.agendmod.json in your working directory. Returns { path, bytes }."],
|
|
194
|
-
["propose_web_mod", schemas.ProposeWebModArgs,
|
|
195
|
-
"Propose a mod file from your working directory for a person to review in Settings β Look β Mods. It is checked whole; one carrying custom CSS is refused. Nothing changes until a person installs it."],
|
|
196
191
|
["reset_web_theme", schemas.ResetWebThemeArgs,
|
|
197
192
|
"Reset your own web theme to the default (counts as a change for the rate limit)."],
|
|
198
|
-
["upload_web_effect", schemas.UploadWebEffectArgs,
|
|
199
|
-
"Upload a Canvas Worker effect directory from your own workspace. Code runs only in an isolated Worker, with no DOM or network. Returns { id, warnings }; <=1 MiB normalized, ten uploads/eight MiB retained (uploads themselves are not counted). No target."],
|
|
200
|
-
["list_web_effects", schemas.ListWebEffectsArgs,
|
|
201
|
-
"List your own effects and human-shared effects, their declarations, byte sizes, recorded profiles and closed recent blocked reasons for effects placed in your own chat. No viewer identities or counts; absence of reports means unknown. No target."],
|
|
202
|
-
["preview_web_effect", schemas.PreviewWebEffectArgs,
|
|
203
|
-
"Offer a Try card for an effect you can read, in your own chat: only an admin signed in outside the public link can click to start a clipped sample, never you. Nothing is applied or saved; the offer lasts up to 10 minutes (offering the same effect again keeps it, a different one replaces it). Returns { id, status: \"offered\", expiresAt }, or not_found / trial_unavailable. It never launches a browser for you."],
|
|
204
|
-
["profile_web_effect", schemas.ProfileWebEffectArgs,
|
|
205
|
-
"Read how an effect you can read ran on viewers' pages, per device class: { status: \"unmeasured\" | \"reported\", records } with a verdict (ok, degraded, paused, off) and a reason. No measurement means unknown, never free or healthy."],
|
|
206
|
-
["apply_web_effect", schemas.ApplyWebEffectArgs,
|
|
207
|
-
"Apply an effect to your own chat only, with typed params if declared. At most two placements; shared theme-change rate limit and human lock apply. Owner regions and cursors are not agent settings."],
|
|
208
|
-
["remove_web_effect", schemas.RemoveWebEffectArgs,
|
|
209
|
-
"Remove one effect from your own chat, or all (omit id). Shares the theme-change limit; a human lock is respected."],
|
|
210
|
-
["delete_web_effect", schemas.DeleteWebEffectArgs,
|
|
211
|
-
"Delete your own unused effect claim. Any current placement, mod or live stage prevents deletion; another principal's claim is never removed."],
|
|
212
193
|
["set_description", schemas.SetDescriptionArgs,
|
|
213
194
|
"Set your role description. This is injected into your system prompt as your role definition. Takes effect on next session restart."],
|
|
214
195
|
["checkout_repo", schemas.CheckoutRepoArgs,
|
|
@@ -243,39 +224,4 @@ export const TOOLS = DEFS.map(([name, schema, description]) => ({
|
|
|
243
224
|
* a control, so it stopped being defined next to the schemas and moved next to
|
|
244
225
|
* the thing that enforces it.
|
|
245
226
|
*/
|
|
246
|
-
/** #2275: keep non-CW appearance tools useful without advertising disabled branches. */
|
|
247
|
-
export function toolsWithCanvasWorker(enabled, definitions = TOOLS) {
|
|
248
|
-
if (enabled)
|
|
249
|
-
return [...definitions];
|
|
250
|
-
const descriptions = {
|
|
251
|
-
get_web_settings: "Read Settings β Look: themes, colours, cards, widgets, custom CSS and ambient presets. General, coordinators and full profiles.",
|
|
252
|
-
set_web_settings: "Change Settings β Look: host settings, colours, cards, custom CSS, ambient presets, or Restore defaults. General, coordinators and full profiles.",
|
|
253
|
-
get_web_appearance: "Read your own appearance on the dashboard: face, ring colour, identity card, theme, widgets, ambient presets and limits.",
|
|
254
|
-
set_web_ambient: "Set your own ambient preset (fall, rise, twinkle, burst-on-click) with glyphs, colours and numbers. Declarative data only; no code or preview is needed. Shares the theme-change limit and respects a person's lock.",
|
|
255
|
-
};
|
|
256
|
-
return definitions.filter(t => !isCanvasWorkerTool(t.name)).map(t => {
|
|
257
|
-
const schema = structuredClone(t.inputSchema);
|
|
258
|
-
if (t.name === "set_web_settings") {
|
|
259
|
-
const change = schema.properties?.change;
|
|
260
|
-
for (const key of ["oneOf", "anyOf"]) {
|
|
261
|
-
if (Array.isArray(change?.[key]))
|
|
262
|
-
change[key] = change[key].filter(branch => !["effect", "effect_slot", "mod"].includes(branch.properties?.what?.const ?? ""));
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
// `person` is shared with effect slots in the on schema; no disabled capability leaks via nested descriptions.
|
|
266
|
-
const stripDescriptions = (node) => {
|
|
267
|
-
if (!node || typeof node !== "object")
|
|
268
|
-
return;
|
|
269
|
-
for (const [key, value] of Object.entries(node)) {
|
|
270
|
-
if (key === "description" && typeof value === "string") {
|
|
271
|
-
node[key] = value.replace(/custom CSS, effect slots/g, "custom CSS").replace(/themes, effects and widgets/g, "themes and widgets");
|
|
272
|
-
}
|
|
273
|
-
else
|
|
274
|
-
stripDescriptions(value);
|
|
275
|
-
}
|
|
276
|
-
};
|
|
277
|
-
stripDescriptions(schema);
|
|
278
|
-
return { ...t, description: descriptions[t.name] ?? t.description, inputSchema: schema };
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
227
|
//# sourceMappingURL=mcp-tools.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-tools.js","sourceRoot":"","sources":["../../src/channel/mcp-tools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,CAAC,EAAgB,MAAM,KAAK,CAAC;AACtC,OAAO,
|
|
1
|
+
{"version":3,"file":"mcp-tools.js","sourceRoot":"","sources":["../../src/channel/mcp-tools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,CAAC,EAAgB,MAAM,KAAK,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAWlD,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,CAAC,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;AAE7E;;;GAGG;AACH,SAAS,gBAAgB,CAAC,IAAa;IACrC,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAC3D,IAAI,CAAC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC;IACnD,MAAM,GAAG,GAA4B,EAAE,CAAC;IACxC,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,I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CAAC,CAAC,CAAC;AAE1B,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,OAAO,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AACvC,CAAC;AAED,MAAM,CAAC,MAAM,KAAK,GAAc,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC;IACzE,IAAI;IACJ,WAAW;IACX,WAAW,EAAE,iBAAiB,CAAC,MAAM,CAAC;CACvC,CAAC,CAAC,CAAC;AAEJ;;;;;GAKG"}
|
package/dist/cli.js
CHANGED
|
@@ -2876,6 +2876,7 @@ program
|
|
|
2876
2876
|
.option("--connections", "Only print how many chat connections fleet.yaml has, as CONNECTIONS=<n> (for scripts; CONNECTIONS=unknown and exit 1 when it cannot be read)")
|
|
2877
2877
|
.action(async (opts) => {
|
|
2878
2878
|
const { validateFleetConfig, validateClassicBotConfig, configuredConnectionCount } = await import("./config-validator.js");
|
|
2879
|
+
const { readClassicRoomNames } = await import("./classic-channel-manager.js");
|
|
2879
2880
|
const yaml = (await import("js-yaml")).default;
|
|
2880
2881
|
if (opts.connections) {
|
|
2881
2882
|
// #2233: the Windows installer's question β did the setup page make a web-only fleet? Parsed, never grepped.
|
|
@@ -2923,7 +2924,8 @@ program
|
|
|
2923
2924
|
if (r.errors.length === 0 && r.warnings.length === 0)
|
|
2924
2925
|
console.log(` ${green("β OK")}`);
|
|
2925
2926
|
};
|
|
2926
|
-
|
|
2927
|
+
// #2851: guest grants may name ClassicBot rooms; without these names the validator warns that they give nothing.
|
|
2928
|
+
check("Fleet", FLEET_CONFIG_PATH, (c) => validateFleetConfig(c, { rooms: readClassicRoomNames(DATA_DIR) }));
|
|
2927
2929
|
check("ClassicBot", join(DATA_DIR, "classicBot.yaml"), validateClassicBotConfig);
|
|
2928
2930
|
console.log();
|
|
2929
2931
|
if (totalErrors > 0) {
|