narraeon 0.7.9 → 0.8.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.
Files changed (45) hide show
  1. package/dist/node/protocol/modelConnections.js +15 -0
  2. package/dist/node/protocol/modelUsage.js +4 -0
  3. package/dist/node/protocol/sillyTavernContent.js +1 -0
  4. package/dist/node/protocol/v1.js +75 -0
  5. package/dist/node/runtime/V1Runtime.js +71 -1
  6. package/dist/node/runtime/authoring/AuthoringRequestSnapshot.js +15 -3
  7. package/dist/node/runtime/authoring/DamagedGoogleContinuation.js +68 -0
  8. package/dist/node/runtime/authoring/ModelToolConversation.js +47 -22
  9. package/dist/node/runtime/content/ContentWorkspace.js +3 -0
  10. package/dist/node/runtime/content/SillyTavernContent.js +796 -0
  11. package/dist/node/runtime/model/AiFailureLog.js +8 -1
  12. package/dist/node/runtime/model/FileNativeModelAdapters.js +610 -18
  13. package/dist/node/runtime/model/GoogleHopJournal.js +90 -0
  14. package/dist/node/runtime/model/GoogleInteractionsStream.js +242 -0
  15. package/dist/node/runtime/model/GoogleRequestPreview.js +184 -0
  16. package/dist/node/runtime/model/ModelConnectionStore.js +4 -1
  17. package/dist/node/runtime/model/ProviderExchangeState.js +44 -1
  18. package/dist/node/runtime/model/ProviderStream.js +4 -2
  19. package/dist/node/runtime/play/FileNativePlayAdvanceStore.js +4 -4
  20. package/dist/node/runtime/play/FileNativePlayPresetStore.js +150 -78
  21. package/dist/node/runtime/play/FileNativePlayTimelineStore.js +150 -10
  22. package/dist/node/runtime/play/OrderedPlayPrompts.js +139 -178
  23. package/dist/node/runtime/play/PlayAdvanceLifecycle.js +33 -9
  24. package/dist/node/runtime/play/PlayCallChain.js +76 -4
  25. package/dist/node/runtime/play/PlayFollowupRequests.js +23 -3
  26. package/dist/node/runtime/prompt/PromptCompilationCodec.js +2 -1
  27. package/dist/node/runtime/setting/FileNativeSettingImprovementStore.js +112 -8
  28. package/dist/node/runtime/setting/SettingAuthoringTransaction.js +100 -41
  29. package/dist/node/runtime/setting/SettingImprovementSession.js +48 -7
  30. package/dist/node/runtime/world-revision/FileNativeWorldRevisionStore.js +84 -8
  31. package/dist/node/runtime/world-revision/WorldRevisionSession.js +125 -17
  32. package/dist/node/shared/application-preset-files.js +29 -0
  33. package/dist/node/shared/default-preset-host.js +50 -38
  34. package/dist/node/shared/first-party-action-choices.js +7 -11
  35. package/dist/node/shared/first-party-generic-panels.js +7 -11
  36. package/dist/node/shared/first-party-player-view.js +7 -11
  37. package/dist/node/shared/ordered-author-prompts.js +6 -4
  38. package/dist/node/shared/ordered-play-prompts.js +4 -2
  39. package/dist/node/shared/prompt-arrangement.js +205 -0
  40. package/dist/node/shared/sillytavern-preset.js +454 -0
  41. package/dist/web/assets/{index-DH2BVsYd.css → index-BKA1D0Rz.css} +1 -1
  42. package/dist/web/assets/index-C_Qta8UL.js +1432 -0
  43. package/dist/web/index.html +2 -2
  44. package/package.json +1 -1
  45. package/dist/web/assets/index-B2kbaOGe.js +0 -1408
@@ -186,6 +186,7 @@ export class FileNativeAiFailureLog {
186
186
  /** Mutable capture used only for the lifetime of one Provider request. */
187
187
  export class AiExchangeCapture {
188
188
  #base;
189
+ #googleHops = [];
189
190
  #responseChunks = [];
190
191
  #response;
191
192
  #reasoning = "";
@@ -193,7 +194,7 @@ export class AiExchangeCapture {
193
194
  this.#base = {
194
195
  captureId: randomUUID(),
195
196
  provider: input.provider,
196
- endpoint: safeEndpoint(input.endpoint),
197
+ endpoint: input.endpointLabel ?? safeEndpoint(input.endpoint),
197
198
  context: cloneJson(input.context),
198
199
  request: {
199
200
  method: "POST",
@@ -209,6 +210,9 @@ export class AiExchangeCapture {
209
210
  if (text !== undefined)
210
211
  this.#reasoning = text;
211
212
  }
213
+ setGoogleHops(hops) {
214
+ this.#googleHops = structuredClone(hops);
215
+ }
212
216
  captureResponse(response) {
213
217
  this.#response = {
214
218
  status: response.status,
@@ -263,6 +267,9 @@ export class AiExchangeCapture {
263
267
  },
264
268
  }),
265
269
  ...(this.#reasoning === "" ? {} : { reasoning: this.#reasoning }),
270
+ ...(this.#googleHops.length === 0
271
+ ? {}
272
+ : { googleHops: structuredClone(this.#googleHops) }),
266
273
  };
267
274
  }
268
275
  }