oysterun 1.5.0-beta.9 → 1.5.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 (34) hide show
  1. package/dev/client/web/index.html +43 -6
  2. package/dev/client/web-chat/dist/assets/{ReactPrism-CnWaHTwG.js → ReactPrism-CypUjQ9u.js} +1 -1
  3. package/dev/client/web-chat/dist/assets/ReactPrism-CypUjQ9u.js.map +1 -0
  4. package/dev/client/web-chat/dist/assets/index-B9fWrEk-.js.map +1 -1
  5. package/dev/client/web-chat/dist/assets/{index-Bk7cN522.js → index-BzoSTFwx.js} +1 -1
  6. package/dev/client/web-chat/dist/assets/index-BzoSTFwx.js.map +1 -0
  7. package/dev/client/web-chat/dist/assets/{index-Ca6_kdF9.js → index-C1V1LCfL.js} +2 -2
  8. package/dev/client/web-chat/dist/assets/index-C1V1LCfL.js.map +1 -0
  9. package/dev/client/web-chat/dist/assets/{index-GA-8pt0s.js → index-DJTSj_fm.js} +77 -77
  10. package/dev/client/web-chat/dist/assets/index-DJTSj_fm.js.map +1 -0
  11. package/dev/client/web-chat/dist/assets/{pdf-C_iV1r1i.js → pdf-YN8Fh_XI.js} +3 -3
  12. package/dev/client/web-chat/dist/assets/pdf-YN8Fh_XI.js.map +1 -0
  13. package/dev/client/web-chat/dist/assets/{web-Dwq5XDl2.js → web-B-z4yUUc.js} +1 -1
  14. package/dev/client/web-chat/dist/assets/web-B-z4yUUc.js.map +1 -0
  15. package/dev/client/web-chat/dist/assets/{web-BBXKV3Qt.js → web-D5ic2-57.js} +1 -1
  16. package/dev/client/web-chat/dist/assets/web-D5ic2-57.js.map +1 -0
  17. package/dev/client/web-chat/dist/index.html +1 -1
  18. package/docs/routec/dev/npm_native_dependency_install.md +24 -15
  19. package/docs/routec/form_UI_fields.md +2 -2
  20. package/docs/routec/hyperlink.md +21 -0
  21. package/docs/routec/prev_page_map.md +29 -4
  22. package/host-service/complete-message-notification-predicate.mjs +3 -4
  23. package/host-service/package.json +1 -1
  24. package/host-service/routec-matrix-storage-adapter.mjs +6 -3
  25. package/host-service/server.mjs +25 -8
  26. package/package.json +1 -1
  27. package/tool_scripts/install_oysterun_update.mjs +55 -13
  28. package/dev/client/web-chat/dist/assets/ReactPrism-CnWaHTwG.js.map +0 -1
  29. package/dev/client/web-chat/dist/assets/index-Bk7cN522.js.map +0 -1
  30. package/dev/client/web-chat/dist/assets/index-Ca6_kdF9.js.map +0 -1
  31. package/dev/client/web-chat/dist/assets/index-GA-8pt0s.js.map +0 -1
  32. package/dev/client/web-chat/dist/assets/pdf-C_iV1r1i.js.map +0 -1
  33. package/dev/client/web-chat/dist/assets/web-BBXKV3Qt.js.map +0 -1
  34. package/dev/client/web-chat/dist/assets/web-Dwq5XDl2.js.map +0 -1
@@ -14972,6 +14972,7 @@ Waiting for Claude login output…</pre
14972
14972
  ) {
14973
14973
  const normalized = normalizeClientRoute(route);
14974
14974
  return (
14975
+ normalized.screen === "chat" ||
14975
14976
  normalized.screen === "file-preview" ||
14976
14977
  (normalized.screen === "mail" && Boolean(normalized.mailId)) ||
14977
14978
  (normalized.screen === "folder-picker" &&
@@ -21456,7 +21457,11 @@ Waiting for Claude login output…</pre
21456
21457
  replaceHistory: opts.replaceHistory === true,
21457
21458
  });
21458
21459
  } else if (normalized.screen === "chat") {
21459
- openCleanChatDocumentRoute(normalized);
21460
+ // The semantic Chat entry already exists. Replace it with the
21461
+ // tokenized clean-chat document instead of adding a duplicate layer.
21462
+ openCleanChatDocumentRoute(normalized, {
21463
+ replaceHistory: true,
21464
+ });
21460
21465
  return;
21461
21466
  } else if (normalized.screen === "agent-profile") {
21462
21467
  const liveSession = await loadLiveSessionContext(
@@ -22965,7 +22970,13 @@ Waiting for Claude login output…</pre
22965
22970
  ? data.oysterun_route
22966
22971
  : "";
22967
22972
  if (url && url.startsWith("/app")) {
22968
- window.location.assign(url);
22973
+ recordDashboardBootDiagnostic("notification_navigation", {
22974
+ navigation_source: "dashboard_capacitor_remote_push_action",
22975
+ navigation_method: "location_replace",
22976
+ target_path: url,
22977
+ history_length: window.history.length,
22978
+ });
22979
+ window.location.replace(url);
22969
22980
  }
22970
22981
  }
22971
22982
  );
@@ -23103,7 +23114,14 @@ Waiting for Claude login output…</pre
23103
23114
  const extra = notification?.extra || {};
23104
23115
  const url = typeof extra.url === "string" ? extra.url : "";
23105
23116
  if (url && url.startsWith("/app")) {
23106
- window.location.assign(url);
23117
+ recordDashboardBootDiagnostic("notification_navigation", {
23118
+ navigation_source:
23119
+ "dashboard_capacitor_local_notification_action",
23120
+ navigation_method: "location_replace",
23121
+ target_path: url,
23122
+ history_length: window.history.length,
23123
+ });
23124
+ window.location.replace(url);
23107
23125
  }
23108
23126
  }
23109
23127
  );
@@ -23409,8 +23427,14 @@ Waiting for Claude login output…</pre
23409
23427
  onClick: () => {
23410
23428
  window.focus();
23411
23429
  if (normalized.sessionId) {
23430
+ const parsedNotificationRoute = normalizeClientRoute(
23431
+ parseClientRoute(normalized.url)
23432
+ );
23412
23433
  openCleanChatDocumentRoute(
23413
- buildChatRoute(normalized.sessionId)
23434
+ parsedNotificationRoute.screen === "chat"
23435
+ ? parsedNotificationRoute
23436
+ : buildChatRoute(normalized.sessionId),
23437
+ { replaceHistory: true }
23414
23438
  );
23415
23439
  }
23416
23440
  },
@@ -32947,7 +32971,7 @@ Waiting for Claude login output…</pre
32947
32971
  return buildSessionChatPath(sessionId);
32948
32972
  }
32949
32973
 
32950
- function openCleanChatDocumentRoute(route) {
32974
+ function openCleanChatDocumentRoute(route, opts = {}) {
32951
32975
  const normalizedRoute =
32952
32976
  typeof route === "string"
32953
32977
  ? buildChatRoute(route)
@@ -32964,7 +32988,20 @@ Waiting for Claude login output…</pre
32964
32988
  throw new Error("Clean chat handoff requires a Host session route.");
32965
32989
  }
32966
32990
  showAuthCheckingState(OYSTERUN_ORIGINAL_TRANSITION_COPY);
32967
- window.location.assign(target);
32991
+ recordDashboardBootDiagnostic("clean_chat_handoff", {
32992
+ navigation_source: "dashboard_restore_chat_route",
32993
+ navigation_method:
32994
+ opts.replaceHistory === true
32995
+ ? "location_replace"
32996
+ : "location_assign",
32997
+ target_path: serializeClientRoute(normalizedRoute),
32998
+ history_length: window.history.length,
32999
+ });
33000
+ if (opts.replaceHistory === true) {
33001
+ window.location.replace(target);
33002
+ } else {
33003
+ window.location.assign(target);
33004
+ }
32968
33005
  return target;
32969
33006
  }
32970
33007
 
@@ -1,4 +1,4 @@
1
- import{g as ee,c as Y,r as K,j as Z}from"./index-GA-8pt0s.js";var X={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
1
+ import{g as ee,c as Y,r as K,j as Z}from"./index-DJTSj_fm.js";var X={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
2
2
  * Prism: Lightweight, robust, elegant syntax highlighting
3
3
  *
4
4
  * @license MIT <https://opensource.org/licenses/MIT>