@genesislcap/ai-assistant 15.27.0-agent-log-submit.3 → 15.27.0

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.
@@ -3610,38 +3610,6 @@ export declare class FoundationAiAssistant extends GenesisElement {
3610
3610
  * element has its own settings modal.
3611
3611
  */
3612
3612
  downloadingDebugLog: boolean;
3613
- /**
3614
- * True while `submitDebugLog` is building and handing off the log. Same role as
3615
- * `downloadingDebugLog` for the Send button: the lifetime-stitch and the host's
3616
- * `send` callback are async, so the button needs a visible in-flight state.
3617
- */
3618
- submittingDebugLog: boolean;
3619
- /**
3620
- * Outcome of the last log submission, shown briefly on the button ('Sent' /
3621
- * 'Failed — retry') then cleared by `setDebugLogSubmitResult`'s timer. `null` when idle.
3622
- */
3623
- debugLogSubmitResult: 'sent' | 'error' | null;
3624
- /** Timer that clears `debugLogSubmitResult` back to idle. */
3625
- private debugLogSubmitResultTimer?;
3626
- /**
3627
- * Whether the agent-log compose box (note + Send/Cancel) is open. Opened by the row's
3628
- * Send button when `debugLogSubmit.note` is not `false`; closed by Cancel or a
3629
- * successful send. Stays open after a failure so the typed note is not lost.
3630
- */
3631
- debugLogComposeOpen: boolean;
3632
- /** The note typed in the compose box, raw (trimmed only at submit time). */
3633
- debugLogNote: string;
3634
- /** Bound to the compose box's text-area via the template ref, for focus on open. */
3635
- debugLogNoteEl?: HTMLElement;
3636
- /** How long 'Sent' shows before idle. Overridable so tests need not wait 4 seconds. */
3637
- debugLogSubmitResultFlashMs: number;
3638
- /**
3639
- * Bumped by `resetDebugLogSubmitState`. An in-flight `submitDebugLog` captures it and
3640
- * drops its continuation when a reset (disconnect, session switch, Clear) happened
3641
- * while it awaited — otherwise the stale submission would write state, arm a timer on
3642
- * a torn-down element, or report 'Sent' into a session it never belonged to.
3643
- */
3644
- private debugLogSubmitGeneration;
3645
3613
  /** Active tab inside the settings modal. */
3646
3614
  get settingsModalTab(): SettingsModalTab;
3647
3615
  set settingsModalTab(value: SettingsModalTab);
@@ -4293,65 +4261,6 @@ export declare class FoundationAiAssistant extends GenesisElement {
4293
4261
  get settingsCostTabVisible(): boolean;
4294
4262
  /** Whether session token usage should render on the Usage tab. */
4295
4263
  get settingsSessionTokensVisible(): boolean;
4296
- /**
4297
- * Whether the settings "Agent log" section renders — shown when either action is
4298
- * enabled: the download button (`allowDebugDownload`) or the host-transport Send
4299
- * button (`debugLogSubmit`). Each button is additionally gated on its own flag
4300
- * inside the section, so a host can enable one without the other.
4301
- */
4302
- get settingsAgentLogSectionVisible(): boolean;
4303
- /**
4304
- * The resolved compose-box settings for the agent-log Send button, or `null` when the
4305
- * host opted out (`debugLogSubmit.note: false`) and the button sends on first click.
4306
- */
4307
- get debugLogNoteConfig(): ResolvedDebugLogNoteConfig | null;
4308
- /**
4309
- * Whether the typed note counts as empty — the ONE emptiness rule, shared by the
4310
- * compose box's disabled state and its "required" hint so the two cannot drift apart.
4311
- */
4312
- get debugLogNoteMissing(): boolean;
4313
- /** The Send button's idle label, as the host configured it. */
4314
- get debugLogSubmitLabel(): string;
4315
- /**
4316
- * Label on the agent-log row's Send button. While the compose box is open the row
4317
- * button is just the (disabled) trigger, so it keeps its idle label; otherwise it
4318
- * reflects the in-flight / flashed outcome of the last submission.
4319
- */
4320
- get debugLogSubmitButtonLabel(): string;
4321
- /**
4322
- * The compose box's footer hint: a failure first, then the "required" nudge, else the
4323
- * live counter. Visual only — the same information reaches assistive technology via
4324
- * `debugLogNoteAriaLabel` (counter, required) and `debugLogSubmitAnnouncement` (outcome),
4325
- * because IDREF attributes such as `aria-describedby` cannot point across the
4326
- * design-system text-area's shadow boundary.
4327
- */
4328
- get debugLogComposeHint(): string;
4329
- /**
4330
- * Accessible name for the note. Deliberately STATIC apart from "(required)": a name
4331
- * that changed per keystroke would be re-read in full by NVDA on every key and never
4332
- * updated by JAWS. The running count reaches AT through `debugLogSubmitAnnouncement`
4333
- * at the thresholds where it matters.
4334
- */
4335
- get debugLogNoteAriaLabel(): string;
4336
- /**
4337
- * Text for the always-present live region beside the agent-log row, so the outcome of
4338
- * a submission is announced even when the compose box is closed or opted out
4339
- * (`note: false`), where the only visible change is the button label.
4340
- */
4341
- get debugLogSubmitAnnouncement(): string;
4342
- /**
4343
- * The agent-log row's description, phrased for whichever actions the host enabled.
4344
- * Send is called out as transmitting: Download keeps the log on the user's machine,
4345
- * Send hands the full conversation to wherever the host's transport delivers it.
4346
- */
4347
- get debugLogRowDescription(): string;
4348
- /**
4349
- * Whether the compose box's Send button is inert: a send is already in flight, or the
4350
- * host made the note required and it is still blank.
4351
- */
4352
- get debugLogSendDisabled(): boolean;
4353
- /** Live "typed / max" counter for the compose box. */
4354
- get debugLogNoteCounter(): string;
4355
4264
  /** Whether the chat header (and settings cog) should render. */
4356
4265
  get settingsCogVisible(): boolean;
4357
4266
  openSettingsModal(): void;
@@ -4422,62 +4331,6 @@ export declare class FoundationAiAssistant extends GenesisElement {
4422
4331
  */
4423
4332
  private buildMetaSnapshot;
4424
4333
  downloadDebugLog(): Promise<void>;
4425
- /**
4426
- * Hand the agent log to the host's `ui.debugLogSubmit.send` callback — the Send
4427
- * button next to Download. Reuses `buildDownloadLog`, so the submitted log is
4428
- * byte-identical to what Download saves (lifetime-stitched when the provider
4429
- * persists diagnostics). The assistant is vendor-agnostic: the callback owns the
4430
- * transport (Sentry feedback, a support API, an upload endpoint). Outcome lands in
4431
- * `debugLogSubmitResult` so the button can flash 'Sent'/'Failed'; failures also go
4432
- * to the logger with the cause.
4433
- */
4434
- submitDebugLog(): Promise<void>;
4435
- /** The agent name stamped on the log: the active agent, else the header title. */
4436
- private get debugLogAgentName();
4437
- /**
4438
- * Filename for the agent log — the ONE derivation Download saves under and Send hands
4439
- * to the host, so `ChatDebugLogSubmission.filename`'s "same stem as the download"
4440
- * promise is enforced rather than relying on two copies agreeing.
4441
- */
4442
- private debugLogFilename;
4443
- /**
4444
- * Back to idle: nothing in flight, no flash, no open compose box, no note. Called on
4445
- * disconnect and on a session switch / Clear (a note typed against one conversation
4446
- * must not caption the next one's log). On disconnect — the
4447
- * flash timer would otherwise fire against a torn-down element, and clearing ONLY the
4448
- * timer would strand `debugLogSubmitResult` at 'sent'/'error' for good on a pop-out /
4449
- * pop-in (nothing else resets it), with the box remounting open on a stale note.
4450
- */
4451
- private resetDebugLogSubmitState;
4452
- /**
4453
- * The row's Send button. With a compose box configured (the default) it opens the box
4454
- * and focuses the note so the user can caption the log; with `note: false` it sends
4455
- * straight away, as before.
4456
- */
4457
- openDebugLogCompose(): void;
4458
- /** The note's `@input`: track the text, and let typing dismiss a standing failure. */
4459
- noteDebugLogInput(value: string): void;
4460
- /** Close the compose box and discard the typed note. */
4461
- cancelDebugLogCompose(): void;
4462
- /**
4463
- * Closing the compose box unmounts the focused text-area, which drops focus to the
4464
- * document body and strands keyboard and screen-reader users. Hand it back to the row's
4465
- * Send button — next frame, once the `when` block has torn down and the button, disabled
4466
- * while the box was open, is interactive again.
4467
- */
4468
- private restoreDebugLogTriggerFocus;
4469
- /**
4470
- * After a FAILED send the controls come back but the element that started the send
4471
- * was disabled meanwhile, so focus has already dropped to the document body. Put it
4472
- * where the retry happens: the note when the box is open, else the row trigger.
4473
- */
4474
- private restoreDebugLogRetryFocus;
4475
- /**
4476
- * Record the submit outcome. 'sent' flashes and falls back to idle; 'error' PERSISTS
4477
- * until the user acts (types, reopens the box, cancels, or retries) — a failure that
4478
- * silently reverted to the counter after four seconds left no trace it had happened.
4479
- */
4480
- private setDebugLogSubmitResult;
4481
4334
  /**
4482
4335
  * The log to download (GENC-1351 §5.8). When the provider persists diagnostics,
4483
4336
  * stitch the **whole lifetime** stream (every page load) rather than just the
@@ -5294,13 +5147,6 @@ declare interface ResolvedCostHistoryConfig {
5294
5147
  summaryHint?: string;
5295
5148
  }
5296
5149
 
5297
- /** `ChatDebugLogNoteConfig` with every option resolved. */
5298
- export declare interface ResolvedDebugLogNoteConfig {
5299
- placeholder: string;
5300
- required: boolean;
5301
- maxLength: number;
5302
- }
5303
-
5304
5150
  /**
5305
5151
  * Structured-output schema for an agent. When set, the model's final (non-tool) answer is
5306
5152
  * constrained to this JSON Schema instead of free text. Either a static schema or a function