ask-pro 0.1.61 → 0.1.63

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.
@@ -1,5 +1,5 @@
1
1
  import { formatElapsed } from "../format.js";
2
- import { ASSISTANT_ROLE_SELECTOR, CONVERSATION_TURN_SELECTOR } from "../constants.js";
2
+ import { ASSISTANT_ROLE_SELECTOR, CONVERSATION_TURN_SELECTOR, STOP_BUTTON_SELECTOR, } from "../constants.js";
3
3
  const THINKING_STALE_HINT_MS = 10 * 60_000;
4
4
  export function startThinkingStatusMonitor(Runtime, logger, options = {}) {
5
5
  const intervalMs = resolveThinkingStatusInterval(options.intervalMs);
@@ -200,13 +200,15 @@ function buildThinkingStatusExpression() {
200
200
  [node.textContent, node.getAttribute?.('aria-label'), node.getAttribute?.('title')]
201
201
  .some((label) => normalize(label) === expected),
202
202
  );
203
- if (hasControl('answer now') && hasControl('stop answering')) {
203
+ const stopActive = hasControl('stop answering') ||
204
+ Array.from(document.querySelectorAll(${JSON.stringify(STOP_BUTTON_SELECTOR)})).some(isVisible);
205
+ if (hasControl('answer now') && stopActive) {
204
206
  return {
205
207
  message: 'pro gate active',
206
208
  source: 'inline',
207
209
  };
208
210
  }
209
- if (hasControl('stop answering')) {
211
+ if (stopActive) {
210
212
  return { message: 'active', source: 'inline' };
211
213
  }
212
214
  const looksLikeThinking = (node) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ask-pro",
3
- "version": "0.1.61",
3
+ "version": "0.1.63",
4
4
  "description": "Browser-backed ChatGPT Pro escalation for hard engineering questions.",
5
5
  "keywords": [
6
6
  "agents",