@genesislcap/ai-assistant 15.23.1-agent-log-submit.1 → 15.23.1-agent-log-submit.2

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.
@@ -8518,6 +8518,37 @@
8518
8518
  "isProtected": false,
8519
8519
  "isAbstract": false
8520
8520
  },
8521
+ {
8522
+ "kind": "Method",
8523
+ "canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#cancelDebugLogCompose:member(1)",
8524
+ "docComment": "/**\n * Close the compose box and discard the typed note.\n */\n",
8525
+ "excerptTokens": [
8526
+ {
8527
+ "kind": "Content",
8528
+ "text": "cancelDebugLogCompose(): "
8529
+ },
8530
+ {
8531
+ "kind": "Content",
8532
+ "text": "void"
8533
+ },
8534
+ {
8535
+ "kind": "Content",
8536
+ "text": ";"
8537
+ }
8538
+ ],
8539
+ "isStatic": false,
8540
+ "returnTypeTokenRange": {
8541
+ "startIndex": 1,
8542
+ "endIndex": 2
8543
+ },
8544
+ "releaseTag": "Beta",
8545
+ "isProtected": false,
8546
+ "overloadIndex": 1,
8547
+ "parameters": [],
8548
+ "isOptional": false,
8549
+ "isAbstract": false,
8550
+ "name": "cancelDebugLogCompose"
8551
+ },
8521
8552
  {
8522
8553
  "kind": "Property",
8523
8554
  "canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#chatConfig:member",
@@ -9238,6 +9269,192 @@
9238
9269
  "isProtected": false,
9239
9270
  "isAbstract": false
9240
9271
  },
9272
+ {
9273
+ "kind": "Property",
9274
+ "canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#debugLogComposeOpen:member",
9275
+ "docComment": "/**\n * Whether the agent-log compose box (note + Send/Cancel) is open. Opened by the row's Send button when `debugLogSubmit.note` is not `false`; closed by Cancel or a successful send. Stays open after a failure so the typed note is not lost.\n */\n",
9276
+ "excerptTokens": [
9277
+ {
9278
+ "kind": "Content",
9279
+ "text": "debugLogComposeOpen: "
9280
+ },
9281
+ {
9282
+ "kind": "Content",
9283
+ "text": "boolean"
9284
+ },
9285
+ {
9286
+ "kind": "Content",
9287
+ "text": ";"
9288
+ }
9289
+ ],
9290
+ "isReadonly": false,
9291
+ "isOptional": false,
9292
+ "releaseTag": "Beta",
9293
+ "name": "debugLogComposeOpen",
9294
+ "propertyTypeTokenRange": {
9295
+ "startIndex": 1,
9296
+ "endIndex": 2
9297
+ },
9298
+ "isStatic": false,
9299
+ "isProtected": false,
9300
+ "isAbstract": false
9301
+ },
9302
+ {
9303
+ "kind": "Property",
9304
+ "canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#debugLogNote:member",
9305
+ "docComment": "/**\n * The note typed in the compose box, raw (trimmed only at submit time).\n */\n",
9306
+ "excerptTokens": [
9307
+ {
9308
+ "kind": "Content",
9309
+ "text": "debugLogNote: "
9310
+ },
9311
+ {
9312
+ "kind": "Content",
9313
+ "text": "string"
9314
+ },
9315
+ {
9316
+ "kind": "Content",
9317
+ "text": ";"
9318
+ }
9319
+ ],
9320
+ "isReadonly": false,
9321
+ "isOptional": false,
9322
+ "releaseTag": "Beta",
9323
+ "name": "debugLogNote",
9324
+ "propertyTypeTokenRange": {
9325
+ "startIndex": 1,
9326
+ "endIndex": 2
9327
+ },
9328
+ "isStatic": false,
9329
+ "isProtected": false,
9330
+ "isAbstract": false
9331
+ },
9332
+ {
9333
+ "kind": "Property",
9334
+ "canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#debugLogNoteConfig:member",
9335
+ "docComment": "/**\n * The resolved compose-box settings for the agent-log Send button, or `null` when the host opted out (`debugLogSubmit.note: false`) and the button sends on first click.\n */\n",
9336
+ "excerptTokens": [
9337
+ {
9338
+ "kind": "Content",
9339
+ "text": "get debugLogNoteConfig(): "
9340
+ },
9341
+ {
9342
+ "kind": "Reference",
9343
+ "text": "ResolvedDebugLogNoteConfig",
9344
+ "canonicalReference": "@genesislcap/ai-assistant!ResolvedDebugLogNoteConfig:interface"
9345
+ },
9346
+ {
9347
+ "kind": "Content",
9348
+ "text": " | null"
9349
+ },
9350
+ {
9351
+ "kind": "Content",
9352
+ "text": ";"
9353
+ }
9354
+ ],
9355
+ "isReadonly": true,
9356
+ "isOptional": false,
9357
+ "releaseTag": "Beta",
9358
+ "name": "debugLogNoteConfig",
9359
+ "propertyTypeTokenRange": {
9360
+ "startIndex": 1,
9361
+ "endIndex": 3
9362
+ },
9363
+ "isStatic": false,
9364
+ "isProtected": false,
9365
+ "isAbstract": false
9366
+ },
9367
+ {
9368
+ "kind": "Property",
9369
+ "canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#debugLogNoteCounter:member",
9370
+ "docComment": "/**\n * Live \"typed / max\" counter for the compose box.\n */\n",
9371
+ "excerptTokens": [
9372
+ {
9373
+ "kind": "Content",
9374
+ "text": "get debugLogNoteCounter(): "
9375
+ },
9376
+ {
9377
+ "kind": "Content",
9378
+ "text": "string"
9379
+ },
9380
+ {
9381
+ "kind": "Content",
9382
+ "text": ";"
9383
+ }
9384
+ ],
9385
+ "isReadonly": true,
9386
+ "isOptional": false,
9387
+ "releaseTag": "Beta",
9388
+ "name": "debugLogNoteCounter",
9389
+ "propertyTypeTokenRange": {
9390
+ "startIndex": 1,
9391
+ "endIndex": 2
9392
+ },
9393
+ "isStatic": false,
9394
+ "isProtected": false,
9395
+ "isAbstract": false
9396
+ },
9397
+ {
9398
+ "kind": "Property",
9399
+ "canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#debugLogNoteEl:member",
9400
+ "docComment": "/**\n * Bound to the compose box's text-area via the template ref, for focus on open.\n */\n",
9401
+ "excerptTokens": [
9402
+ {
9403
+ "kind": "Content",
9404
+ "text": "debugLogNoteEl?: "
9405
+ },
9406
+ {
9407
+ "kind": "Reference",
9408
+ "text": "HTMLElement",
9409
+ "canonicalReference": "!HTMLElement:interface"
9410
+ },
9411
+ {
9412
+ "kind": "Content",
9413
+ "text": ";"
9414
+ }
9415
+ ],
9416
+ "isReadonly": false,
9417
+ "isOptional": true,
9418
+ "releaseTag": "Beta",
9419
+ "name": "debugLogNoteEl",
9420
+ "propertyTypeTokenRange": {
9421
+ "startIndex": 1,
9422
+ "endIndex": 2
9423
+ },
9424
+ "isStatic": false,
9425
+ "isProtected": false,
9426
+ "isAbstract": false
9427
+ },
9428
+ {
9429
+ "kind": "Property",
9430
+ "canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#debugLogSendDisabled:member",
9431
+ "docComment": "/**\n * Whether the compose box's Send button is inert: a send is already in flight, or the host made the note required and it is still blank.\n */\n",
9432
+ "excerptTokens": [
9433
+ {
9434
+ "kind": "Content",
9435
+ "text": "get debugLogSendDisabled(): "
9436
+ },
9437
+ {
9438
+ "kind": "Content",
9439
+ "text": "boolean"
9440
+ },
9441
+ {
9442
+ "kind": "Content",
9443
+ "text": ";"
9444
+ }
9445
+ ],
9446
+ "isReadonly": true,
9447
+ "isOptional": false,
9448
+ "releaseTag": "Beta",
9449
+ "name": "debugLogSendDisabled",
9450
+ "propertyTypeTokenRange": {
9451
+ "startIndex": 1,
9452
+ "endIndex": 2
9453
+ },
9454
+ "isStatic": false,
9455
+ "isProtected": false,
9456
+ "isAbstract": false
9457
+ },
9241
9458
  {
9242
9459
  "kind": "Property",
9243
9460
  "canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#debugLogSubmitResult:member",
@@ -10759,6 +10976,37 @@
10759
10976
  "isAbstract": false,
10760
10977
  "name": "onSettingsModalTabsChange"
10761
10978
  },
10979
+ {
10980
+ "kind": "Method",
10981
+ "canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#openDebugLogCompose:member(1)",
10982
+ "docComment": "/**\n * The row's Send button. With a compose box configured (the default) it opens the box and focuses the note so the user can caption the log; with `note: false` it sends straight away, as before.\n */\n",
10983
+ "excerptTokens": [
10984
+ {
10985
+ "kind": "Content",
10986
+ "text": "openDebugLogCompose(): "
10987
+ },
10988
+ {
10989
+ "kind": "Content",
10990
+ "text": "void"
10991
+ },
10992
+ {
10993
+ "kind": "Content",
10994
+ "text": ";"
10995
+ }
10996
+ ],
10997
+ "isStatic": false,
10998
+ "returnTypeTokenRange": {
10999
+ "startIndex": 1,
11000
+ "endIndex": 2
11001
+ },
11002
+ "releaseTag": "Beta",
11003
+ "isProtected": false,
11004
+ "overloadIndex": 1,
11005
+ "parameters": [],
11006
+ "isOptional": false,
11007
+ "isAbstract": false,
11008
+ "name": "openDebugLogCompose"
11009
+ },
10762
11010
  {
10763
11011
  "kind": "Method",
10764
11012
  "canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#openSettingsModal:member(1)",
@@ -17376,6 +17624,105 @@
17376
17624
  "endIndex": 0
17377
17625
  }
17378
17626
  },
17627
+ {
17628
+ "kind": "Interface",
17629
+ "canonicalReference": "@genesislcap/ai-assistant!ResolvedDebugLogNoteConfig:interface",
17630
+ "docComment": "/**\n * `ChatDebugLogNoteConfig` with every option resolved.\n */\n",
17631
+ "excerptTokens": [
17632
+ {
17633
+ "kind": "Content",
17634
+ "text": "export interface ResolvedDebugLogNoteConfig "
17635
+ }
17636
+ ],
17637
+ "fileUrlPath": "src/utils/resolve-debug-log-note.ts",
17638
+ "releaseTag": "Public",
17639
+ "name": "ResolvedDebugLogNoteConfig",
17640
+ "preserveMemberOrder": false,
17641
+ "members": [
17642
+ {
17643
+ "kind": "PropertySignature",
17644
+ "canonicalReference": "@genesislcap/ai-assistant!ResolvedDebugLogNoteConfig#maxLength:member",
17645
+ "docComment": "",
17646
+ "excerptTokens": [
17647
+ {
17648
+ "kind": "Content",
17649
+ "text": "maxLength: "
17650
+ },
17651
+ {
17652
+ "kind": "Content",
17653
+ "text": "number"
17654
+ },
17655
+ {
17656
+ "kind": "Content",
17657
+ "text": ";"
17658
+ }
17659
+ ],
17660
+ "isReadonly": false,
17661
+ "isOptional": false,
17662
+ "releaseTag": "Public",
17663
+ "name": "maxLength",
17664
+ "propertyTypeTokenRange": {
17665
+ "startIndex": 1,
17666
+ "endIndex": 2
17667
+ }
17668
+ },
17669
+ {
17670
+ "kind": "PropertySignature",
17671
+ "canonicalReference": "@genesislcap/ai-assistant!ResolvedDebugLogNoteConfig#placeholder:member",
17672
+ "docComment": "",
17673
+ "excerptTokens": [
17674
+ {
17675
+ "kind": "Content",
17676
+ "text": "placeholder: "
17677
+ },
17678
+ {
17679
+ "kind": "Content",
17680
+ "text": "string"
17681
+ },
17682
+ {
17683
+ "kind": "Content",
17684
+ "text": ";"
17685
+ }
17686
+ ],
17687
+ "isReadonly": false,
17688
+ "isOptional": false,
17689
+ "releaseTag": "Public",
17690
+ "name": "placeholder",
17691
+ "propertyTypeTokenRange": {
17692
+ "startIndex": 1,
17693
+ "endIndex": 2
17694
+ }
17695
+ },
17696
+ {
17697
+ "kind": "PropertySignature",
17698
+ "canonicalReference": "@genesislcap/ai-assistant!ResolvedDebugLogNoteConfig#required:member",
17699
+ "docComment": "",
17700
+ "excerptTokens": [
17701
+ {
17702
+ "kind": "Content",
17703
+ "text": "required: "
17704
+ },
17705
+ {
17706
+ "kind": "Content",
17707
+ "text": "boolean"
17708
+ },
17709
+ {
17710
+ "kind": "Content",
17711
+ "text": ";"
17712
+ }
17713
+ ],
17714
+ "isReadonly": false,
17715
+ "isOptional": false,
17716
+ "releaseTag": "Public",
17717
+ "name": "required",
17718
+ "propertyTypeTokenRange": {
17719
+ "startIndex": 1,
17720
+ "endIndex": 2
17721
+ }
17722
+ }
17723
+ ],
17724
+ "extendsTokenRanges": []
17725
+ },
17379
17726
  {
17380
17727
  "kind": "TypeAlias",
17381
17728
  "canonicalReference": "@genesislcap/ai-assistant!ResponseSchemaInput:type",
@@ -3728,6 +3728,16 @@ export declare class FoundationAiAssistant extends GenesisElement {
3728
3728
  debugLogSubmitResult: 'sent' | 'error' | null;
3729
3729
  /** Timer that clears `debugLogSubmitResult` back to idle. */
3730
3730
  private debugLogSubmitResultTimer?;
3731
+ /**
3732
+ * Whether the agent-log compose box (note + Send/Cancel) is open. Opened by the row's
3733
+ * Send button when `debugLogSubmit.note` is not `false`; closed by Cancel or a
3734
+ * successful send. Stays open after a failure so the typed note is not lost.
3735
+ */
3736
+ debugLogComposeOpen: boolean;
3737
+ /** The note typed in the compose box, raw (trimmed only at submit time). */
3738
+ debugLogNote: string;
3739
+ /** Bound to the compose box's text-area via the template ref, for focus on open. */
3740
+ debugLogNoteEl?: HTMLElement;
3731
3741
  /** Active tab inside the settings modal. */
3732
3742
  settingsModalTab: SettingsModalTab;
3733
3743
  /** Bound to the design-system modal via the template ref. */
@@ -4581,6 +4591,18 @@ export declare class FoundationAiAssistant extends GenesisElement {
4581
4591
  * inside the section, so a host can enable one without the other.
4582
4592
  */
4583
4593
  get settingsAgentLogSectionVisible(): boolean;
4594
+ /**
4595
+ * The resolved compose-box settings for the agent-log Send button, or `null` when the
4596
+ * host opted out (`debugLogSubmit.note: false`) and the button sends on first click.
4597
+ */
4598
+ get debugLogNoteConfig(): ResolvedDebugLogNoteConfig | null;
4599
+ /**
4600
+ * Whether the compose box's Send button is inert: a send is already in flight, or the
4601
+ * host made the note required and it is still blank.
4602
+ */
4603
+ get debugLogSendDisabled(): boolean;
4604
+ /** Live "typed / max" counter for the compose box. */
4605
+ get debugLogNoteCounter(): string;
4584
4606
  /** Whether the chat header (and settings cog) should render. */
4585
4607
  get settingsCogVisible(): boolean;
4586
4608
  openSettingsModal(): void;
@@ -4671,6 +4693,14 @@ export declare class FoundationAiAssistant extends GenesisElement {
4671
4693
  * to the logger with the cause.
4672
4694
  */
4673
4695
  submitDebugLog(): Promise<void>;
4696
+ /**
4697
+ * The row's Send button. With a compose box configured (the default) it opens the box
4698
+ * and focuses the note so the user can caption the log; with `note: false` it sends
4699
+ * straight away, as before.
4700
+ */
4701
+ openDebugLogCompose(): void;
4702
+ /** Close the compose box and discard the typed note. */
4703
+ cancelDebugLogCompose(): void;
4674
4704
  /** Flash the submit outcome on the Send button, then fall back to idle. */
4675
4705
  private setDebugLogSubmitResult;
4676
4706
  /**
@@ -5494,6 +5524,13 @@ declare interface ResolvedCostHistoryConfig {
5494
5524
  summaryHint?: string;
5495
5525
  }
5496
5526
 
5527
+ /** `ChatDebugLogNoteConfig` with every option resolved. */
5528
+ export declare interface ResolvedDebugLogNoteConfig {
5529
+ placeholder: string;
5530
+ required: boolean;
5531
+ maxLength: number;
5532
+ }
5533
+
5497
5534
  /**
5498
5535
  * Structured-output schema for an agent. When set, the model's final (non-tool) answer is
5499
5536
  * constrained to this JSON Schema instead of free text. Either a static schema or a function