@songsid/agend 2.2.0-alpha.8 → 2.2.0-beta.1
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/auth-api.js +1 -1
- package/dist/auth-api.js.map +1 -1
- package/dist/channel/adapters/discord.d.ts +2 -0
- package/dist/channel/adapters/discord.js +11 -1
- package/dist/channel/adapters/discord.js.map +1 -1
- package/dist/channel/adapters/telegram.d.ts +2 -0
- package/dist/channel/adapters/telegram.js +6 -0
- package/dist/channel/adapters/telegram.js.map +1 -1
- package/dist/channel/types.d.ts +2 -0
- package/dist/fleet-manager.d.ts +11 -3
- package/dist/fleet-manager.js +64 -6
- package/dist/fleet-manager.js.map +1 -1
- package/dist/locale.js +4 -0
- package/dist/locale.js.map +1 -1
- package/dist/ui/panel-chat.js +3 -13
- package/dist/ui/panel-settings.js +54 -5
- package/dist/ui/settings-strings.js +2 -0
- package/dist/ui/shared/app-i18n.js +2 -4
- package/dist/ui/shared/app-route.js +1 -1
- package/dist/ui/shared/app-shell.js +22 -15
- package/dist/ui/shared/app-swipe.js +89 -0
- package/dist/ui/shared/app.css +20 -2
- package/dist/ui/shared/app.js +9 -1
- package/dist/ui/shared/tokens.css +9 -0
- package/dist/web-shell-routes.d.ts +1 -1
- package/dist/web-shell-routes.js +2 -1
- package/dist/web-shell-routes.js.map +1 -1
- package/package.json +1 -1
package/dist/ui/shared/app.css
CHANGED
|
@@ -12,6 +12,10 @@ h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
|
|
|
12
12
|
fieldset { border: 0; min-width: 0; }
|
|
13
13
|
ul, ol { list-style: none; }
|
|
14
14
|
button, input, select, textarea { font: inherit; color: inherit; }
|
|
15
|
+
/* #1615: and a field with no size of its own, inside small text, is still never under 16px on a touch screen or the phone
|
|
16
|
+
layout (iOS zooms on focusing one; #1611's tokens only reach a field sized from them). After the reset above, as weak
|
|
17
|
+
as it (an element selector: any rule of a field's own still wins), keeping a larger inherited size. */
|
|
18
|
+
@media (pointer: coarse), (max-width: 899px) { input, select, textarea { font-size: max(16px, 1em); } }
|
|
15
19
|
a { color: inherit; text-decoration: none; }
|
|
16
20
|
[hidden] { display: none !important; }
|
|
17
21
|
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
|
|
@@ -108,7 +112,22 @@ html:has(.shell), html:has(.shell) body { overflow: hidden; }
|
|
|
108
112
|
flex-shrink: 0; font-size: 11px; line-height: 16px; font-weight: var(--fw-semibold); padding: 0 var(--s-2); border-radius: var(--r-full);
|
|
109
113
|
background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); white-space: nowrap;
|
|
110
114
|
}
|
|
111
|
-
|
|
115
|
+
/* #1604: one row — Settings and Session (the anonymous View reader: Sign in and the theme/language popover). Their
|
|
116
|
+
pop-ups open over the whole footer's width. */
|
|
117
|
+
.side-foot { display: flex; align-items: center; gap: var(--s-1); padding: var(--s-2); position: relative; }
|
|
118
|
+
.side-foot > .side-row, .side-foot > .session { flex: 1; min-width: 0; }
|
|
119
|
+
.side-foot > .session { position: static; }
|
|
120
|
+
.side-foot .side-row span:not(.dot):not(.meta) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
121
|
+
.side-foot .session .meta { display: none; }
|
|
122
|
+
.prefs-pop > summary { list-style: none; cursor: pointer; }
|
|
123
|
+
.prefs-pop > summary::-webkit-details-marker { display: none; }
|
|
124
|
+
.prefs.labelled { flex-direction: column; gap: var(--s-2); padding: 0; }
|
|
125
|
+
.prefs.labelled .pref { flex: none; gap: var(--s-2); color: var(--text); }
|
|
126
|
+
.prefs.labelled .pref-label { min-width: 7em; font-size: var(--fs-sm); }
|
|
127
|
+
.prefs.labelled .pref select { flex: 0 1 14em; height: 34px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: var(--fs-sm); padding: 0 var(--s-2); }
|
|
128
|
+
.s-device { display: flex; flex-direction: column; gap: var(--s-3); }
|
|
129
|
+
.s-device .sub { margin: 0; color: var(--text-3); font-size: var(--fs-sm); }
|
|
130
|
+
.s-device-row { display: flex; gap: var(--s-2); }
|
|
112
131
|
.prefs { display: flex; gap: var(--s-2); padding: var(--s-1) var(--s-3); }
|
|
113
132
|
.pref { display: flex; align-items: center; gap: var(--s-1); color: var(--text-2); flex: 1; min-width: 0; }
|
|
114
133
|
.pref select { flex: 1; min-width: 0; height: 30px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-2); font-size: var(--fs-xs); cursor: pointer; }
|
|
@@ -503,7 +522,6 @@ html.lb-open .scroller { overflow: hidden; }
|
|
|
503
522
|
.thread { padding: var(--s-3) var(--s-3) var(--s-2); gap: var(--s-5); }
|
|
504
523
|
.col { padding: var(--s-3) var(--s-3) var(--s-8); }
|
|
505
524
|
.dock { padding: 0 max(var(--s-2), env(safe-area-inset-right)) var(--s-2) max(var(--s-2), env(safe-area-inset-left)); }
|
|
506
|
-
.composer textarea { font-size: 16px; } /* under 16px, iOS Safari zooms the page on focus */
|
|
507
525
|
.hint { display: none; }
|
|
508
526
|
.msg.user { max-width: 88%; }
|
|
509
527
|
/* Code wraps on a phone: a long line scrolled sideways inside a scrolling page is unreadable (rough edge 9). */
|
package/dist/ui/shared/app.js
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
// reached only by the dynamic imports below, in "full" mode. A test walks the static imports over real HTTP and asserts
|
|
7
7
|
// none of them names /ui/.
|
|
8
8
|
import { html, render } from "./app-html.js";
|
|
9
|
-
import { Shell, handleKey, showDialog, closeDrawer, retryable, setNewInstanceOpener } from "./app-shell.js";
|
|
9
|
+
import { Shell, handleKey, showDialog, closeDrawer, openDrawer, shellStore, retryable, setNewInstanceOpener } from "./app-shell.js";
|
|
10
|
+
import { installSwipe } from "./app-swipe.js";
|
|
10
11
|
import { startRouter, navStore, navigate } from "./app-nav.js";
|
|
11
12
|
import { createStream } from "./app-stream.js";
|
|
12
13
|
import { appStore, applyStatus, applyActivity } from "./app-store.js";
|
|
@@ -97,5 +98,12 @@ startRouter(window);
|
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
document.addEventListener("keydown", handleKey);
|
|
101
|
+
// #1605: on a phone (the sidebar is a drawer), swipe right in the main area to open it, left to close it — the same
|
|
102
|
+
// open/close as ☰ and the scrim. Nothing that owns a sideways drag (code, tables, the terminal, inputs, dialogs) and
|
|
103
|
+
// never the left edge (iOS: "back").
|
|
104
|
+
installSwipe({
|
|
105
|
+
isDrawer: () => typeof matchMedia === "function" && matchMedia("(max-width: 899px)").matches,
|
|
106
|
+
isOpen: () => shellStore.get().drawer, open: openDrawer, close: closeDrawer,
|
|
107
|
+
});
|
|
100
108
|
|
|
101
109
|
render(html`<${Shell} panels=${panels} onNewInstance=${onNewInstance} viewOnly=${mode === "view-only"} />`, document.getElementById("app"));
|
|
@@ -151,3 +151,12 @@
|
|
|
151
151
|
@media (prefers-reduced-motion: reduce) {
|
|
152
152
|
:root { --t-fast: 0ms; --t-med: 0ms; }
|
|
153
153
|
}
|
|
154
|
+
|
|
155
|
+
/* #1611: on a touch screen or the phone layout, no text field is under 16px — iOS Safari zooms the page in when one under
|
|
156
|
+
16px gets the focus, and never zooms back. One rule for every page that loads this file (the app, the sign-in page):
|
|
157
|
+
the small type sizes are 16px ON the controls themselves, so every control sized from them (the filter, search,
|
|
158
|
+
settings fields, selects, the composer) computes to 16px, and a larger one (the sign-in code, 22px) stays as it is.
|
|
159
|
+
Pinch zoom is left alone (no maximum-scale / user-scalable in the viewport); the desktop look does not change. */
|
|
160
|
+
@media (pointer: coarse), (max-width: 899px) {
|
|
161
|
+
input, select, textarea { --fs-xs: 16px; --fs-sm: 16px; --fs-md: 16px; }
|
|
162
|
+
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
export declare const FLEET_TABS: readonly ["tasks", "schedules", "teams", "org", "cache", "config"];
|
|
14
14
|
export type FleetTab = typeof FLEET_TABS[number];
|
|
15
|
-
export declare const SETTINGS_SECTIONS: readonly ["agents", "bots", "classic", "general", "advanced"];
|
|
15
|
+
export declare const SETTINGS_SECTIONS: readonly ["device", "agents", "bots", "classic", "general", "advanced"];
|
|
16
16
|
export type SettingsSection = typeof SETTINGS_SECTIONS[number];
|
|
17
17
|
export type ShellRoute = {
|
|
18
18
|
panel: "chat";
|
package/dist/web-shell-routes.js
CHANGED
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
* Settings panel (step 3; settings-api.ts serves them, signed in only).
|
|
12
12
|
*/
|
|
13
13
|
export const FLEET_TABS = ["tasks", "schedules", "teams", "org", "cache", "config"];
|
|
14
|
-
|
|
14
|
+
// #1604: "device" — this browser's own choices (theme, language, HTML previews, the tour); no configuration behind it.
|
|
15
|
+
export const SETTINGS_SECTIONS = ["device", "agents", "bots", "classic", "general", "advanced"];
|
|
15
16
|
const PATH_SEPARATOR_OR_CONTROL = /[/\\\u0000-\u001f\u007f]/;
|
|
16
17
|
/** Longest instance name a path may carry; real names are far shorter. */
|
|
17
18
|
export const MAX_INSTANCE_NAME = 128;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-shell-routes.js","sourceRoot":"","sources":["../src/web-shell-routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAU,CAAC;AAE7F,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,CAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"web-shell-routes.js","sourceRoot":"","sources":["../src/web-shell-routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAU,CAAC;AAE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