@genesislcap/ai-assistant 15.32.1 → 15.33.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.
@@ -11401,6 +11401,51 @@
11401
11401
  "isAbstract": false,
11402
11402
  "name": "getDebugLog"
11403
11403
  },
11404
+ {
11405
+ "kind": "Method",
11406
+ "canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#getLifetimeDebugLog:member(1)",
11407
+ "docComment": "/**\n * The log to download (GENC-1351 §5.8). When the provider persists diagnostics, stitch the **whole lifetime** stream (every page load) rather than just the current page's in-memory view: flush the current delta first so it's included, then reassemble everything `loadDiagnostics` returns. Independent of \"remember chat\" — diagnostics are a forensic stream keyed on provider capability, not on whether the *chat* is remembered (like preferences). Falls back to the live current-page log when diagnostics isn't available or the fetch fails.\n *\n * The stored `meta-snapshot`s are replaced by a fresh one (`withFreshMetaSnapshot`) before reassembly. The persisted stream only re-appends that block when the near-static config signature changes (see `collectDiagnosticsDelta`), so on a session whose config never changes the newest STORED snapshot is the first one — its `context` half (session cost/usage, context tokens, live agent state) frozen seconds into the session, which is how a lifetime log came out reporting near-zero spend against a transcript full of priced messages.\n *\n * PUBLIC (GENC-1625) so a host can ship this exact document somewhere other than the user's downloads folder — Genesis Create writes it into its project export archive, where it is what a support engineer (increasingly, an agent) opens first. Public rather than copied: a host assembling its own would need `DEBUG_LOG_README`, a flush of the pending delta and a fresh `meta-snapshot`, and the moment there are two derivations one of them starts drifting — which for this log means silently understating spend, the bug `withFreshMetaSnapshot` exists to fix.\n *\n * Safe to call at any time: it never throws (a failed diagnostics load degrades to the current-page log) and it has no side effect on the chat beyond landing the delta the next throttled flush would have landed anyway.\n *\n * @public\n */\n",
11408
+ "excerptTokens": [
11409
+ {
11410
+ "kind": "Content",
11411
+ "text": "getLifetimeDebugLog(): "
11412
+ },
11413
+ {
11414
+ "kind": "Reference",
11415
+ "text": "Promise",
11416
+ "canonicalReference": "!Promise:interface"
11417
+ },
11418
+ {
11419
+ "kind": "Content",
11420
+ "text": "<"
11421
+ },
11422
+ {
11423
+ "kind": "Reference",
11424
+ "text": "DebugLog",
11425
+ "canonicalReference": "@genesislcap/ai-assistant!DebugLog:interface"
11426
+ },
11427
+ {
11428
+ "kind": "Content",
11429
+ "text": ">"
11430
+ },
11431
+ {
11432
+ "kind": "Content",
11433
+ "text": ";"
11434
+ }
11435
+ ],
11436
+ "isStatic": false,
11437
+ "returnTypeTokenRange": {
11438
+ "startIndex": 1,
11439
+ "endIndex": 5
11440
+ },
11441
+ "releaseTag": "Public",
11442
+ "isProtected": false,
11443
+ "overloadIndex": 1,
11444
+ "parameters": [],
11445
+ "isOptional": false,
11446
+ "isAbstract": false,
11447
+ "name": "getLifetimeDebugLog"
11448
+ },
11404
11449
  {
11405
11450
  "kind": "Method",
11406
11451
  "canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#handleFileSelect:member(1)",
@@ -15538,7 +15583,7 @@
15538
15583
  {
15539
15584
  "kind": "Method",
15540
15585
  "canonicalReference": "@genesislcap/ai-assistant!FoundationAiAssistant#submitDebugLog:member(1)",
15541
- "docComment": "/**\n * Hand the agent log to the host's `ui.debugLogSubmit.send` callback — the Send button next to Download. Reuses `buildDownloadLog`, so the submitted log is byte-identical to what Download saves (lifetime-stitched when the provider persists diagnostics). The assistant is vendor-agnostic: the callback owns the transport (Sentry feedback, a support API, an upload endpoint). Outcome lands in `debugLogSubmitResult` so the button can flash 'Sent'/'Failed'; failures also go to the logger with the cause.\n */\n",
15586
+ "docComment": "/**\n * Hand the agent log to the host's `ui.debugLogSubmit.send` callback — the Send button next to Download. Reuses `getLifetimeDebugLog`, so the submitted log is byte-identical to what Download saves (lifetime-stitched when the provider persists diagnostics). The assistant is vendor-agnostic: the callback owns the transport (Sentry feedback, a support API, an upload endpoint). Outcome lands in `debugLogSubmitResult` so the button can flash 'Sent'/'Failed'; failures also go to the logger with the cause.\n */\n",
15542
15587
  "excerptTokens": [
15543
15588
  {
15544
15589
  "kind": "Content",
@@ -4422,7 +4422,7 @@ export declare class FoundationAiAssistant extends GenesisElement {
4422
4422
  downloadDebugLog(): Promise<void>;
4423
4423
  /**
4424
4424
  * Hand the agent log to the host's `ui.debugLogSubmit.send` callback — the Send
4425
- * button next to Download. Reuses `buildDownloadLog`, so the submitted log is
4425
+ * button next to Download. Reuses `getLifetimeDebugLog`, so the submitted log is
4426
4426
  * byte-identical to what Download saves (lifetime-stitched when the provider
4427
4427
  * persists diagnostics). The assistant is vendor-agnostic: the callback owns the
4428
4428
  * transport (Sentry feedback, a support API, an upload endpoint). Outcome lands in
@@ -4492,8 +4492,21 @@ export declare class FoundationAiAssistant extends GenesisElement {
4492
4492
  * `context` half (session cost/usage, context tokens, live agent state) frozen seconds
4493
4493
  * into the session, which is how a lifetime log came out reporting near-zero spend
4494
4494
  * against a transcript full of priced messages.
4495
+ *
4496
+ * PUBLIC (GENC-1625) so a host can ship this exact document somewhere other than the user's
4497
+ * downloads folder — Genesis Create writes it into its project export archive, where it is what
4498
+ * a support engineer (increasingly, an agent) opens first. Public rather than copied: a host
4499
+ * assembling its own would need `DEBUG_LOG_README`, a flush of the pending delta and a fresh
4500
+ * `meta-snapshot`, and the moment there are two derivations one of them starts drifting — which
4501
+ * for this log means silently understating spend, the bug `withFreshMetaSnapshot` exists to fix.
4502
+ *
4503
+ * Safe to call at any time: it never throws (a failed diagnostics load degrades to the
4504
+ * current-page log) and it has no side effect on the chat beyond landing the delta the next
4505
+ * throttled flush would have landed anyway.
4506
+ *
4507
+ * @public
4495
4508
  */
4496
- private buildDownloadLog;
4509
+ getLifetimeDebugLog(): Promise<DebugLog>;
4497
4510
  /**
4498
4511
  * The shared per-session `SessionPersister` that owns restore-core
4499
4512
  * save/restore/freeze (GENC-1351 §5.10). Created once per `stateKey` and shared by