@a5c-ai/babysitter-breakpoints 0.0.78 → 0.0.137

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/web/app.js +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a5c-ai/babysitter-breakpoints",
3
- "version": "0.0.78",
3
+ "version": "0.0.137",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "bin": {
package/web/app.js CHANGED
@@ -314,7 +314,7 @@ async function loadExtensions() {
314
314
  <input data-field="token" type="password" value="${tokenValue}" placeholder="Telegram bot token" />
315
315
  </div>
316
316
  <div>
317
- <label>User Handle</label>
317
+ <label>Owner User Handle (not the bot's username)</label>
318
318
  <input data-field="username" type="text" value="${item.config?.username || ""}" placeholder="@yourhandle" />
319
319
  </div>
320
320
  </div>
@@ -332,6 +332,12 @@ async function loadExtensions() {
332
332
  const userInput = card.querySelector("input[data-field='username']");
333
333
  const token = tokenInput.value.trim();
334
334
  const username = userInput.value.trim();
335
+ // make sure the username is not the bot's username (doesn't end with bot)
336
+ if (username.endsWith("bot")) {
337
+ extensionsMessage.textContent = "Owner username should not end with 'bot'.";
338
+ return;
339
+ }
340
+
335
341
  if (action === "save") {
336
342
  if (!token) {
337
343
  extensionsMessage.textContent = "Token required.";