@xemahq/ui-kernel 0.1.4

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 (208) hide show
  1. package/LICENSE +17 -0
  2. package/README.md +72 -0
  3. package/dist/index.d.ts +3 -0
  4. package/dist/index.d.ts.map +1 -0
  5. package/dist/index.js +19 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/lib/biome-host/biome-mode.d.ts +2 -0
  8. package/dist/lib/biome-host/biome-mode.d.ts.map +1 -0
  9. package/dist/lib/biome-host/biome-mode.js +3 -0
  10. package/dist/lib/biome-host/biome-mode.js.map +1 -0
  11. package/dist/lib/biome-host/biome-registry.d.ts +30 -0
  12. package/dist/lib/biome-host/biome-registry.d.ts.map +1 -0
  13. package/dist/lib/biome-host/biome-registry.js +134 -0
  14. package/dist/lib/biome-host/biome-registry.js.map +1 -0
  15. package/dist/lib/biome-host/composition-validation.d.ts +22 -0
  16. package/dist/lib/biome-host/composition-validation.d.ts.map +1 -0
  17. package/dist/lib/biome-host/composition-validation.js +127 -0
  18. package/dist/lib/biome-host/composition-validation.js.map +1 -0
  19. package/dist/lib/biome-host/frontend-biome.d.ts +47 -0
  20. package/dist/lib/biome-host/frontend-biome.d.ts.map +1 -0
  21. package/dist/lib/biome-host/frontend-biome.js +3 -0
  22. package/dist/lib/biome-host/frontend-biome.js.map +1 -0
  23. package/dist/lib/biome-host/host-bridge.d.ts +55 -0
  24. package/dist/lib/biome-host/host-bridge.d.ts.map +1 -0
  25. package/dist/lib/biome-host/host-bridge.js +16 -0
  26. package/dist/lib/biome-host/host-bridge.js.map +1 -0
  27. package/dist/lib/biome-host/host-sources.d.ts +12 -0
  28. package/dist/lib/biome-host/host-sources.d.ts.map +1 -0
  29. package/dist/lib/biome-host/host-sources.js +3 -0
  30. package/dist/lib/biome-host/host-sources.js.map +1 -0
  31. package/dist/lib/biome-host/index.d.ts +10 -0
  32. package/dist/lib/biome-host/index.d.ts.map +1 -0
  33. package/dist/lib/biome-host/index.js +26 -0
  34. package/dist/lib/biome-host/index.js.map +1 -0
  35. package/dist/lib/biome-host/nav.d.ts +17 -0
  36. package/dist/lib/biome-host/nav.d.ts.map +1 -0
  37. package/dist/lib/biome-host/nav.js +52 -0
  38. package/dist/lib/biome-host/nav.js.map +1 -0
  39. package/dist/lib/biome-host/session-contributions.d.ts +143 -0
  40. package/dist/lib/biome-host/session-contributions.d.ts.map +1 -0
  41. package/dist/lib/biome-host/session-contributions.js +3 -0
  42. package/dist/lib/biome-host/session-contributions.js.map +1 -0
  43. package/dist/lib/biome-host/session-profiles.d.ts +18 -0
  44. package/dist/lib/biome-host/session-profiles.d.ts.map +1 -0
  45. package/dist/lib/biome-host/session-profiles.js +39 -0
  46. package/dist/lib/biome-host/session-profiles.js.map +1 -0
  47. package/dist/lib/system-bus/capability-invoke.d.ts +18 -0
  48. package/dist/lib/system-bus/capability-invoke.d.ts.map +1 -0
  49. package/dist/lib/system-bus/capability-invoke.js +3 -0
  50. package/dist/lib/system-bus/capability-invoke.js.map +1 -0
  51. package/dist/lib/system-bus/deeplink.d.ts +33 -0
  52. package/dist/lib/system-bus/deeplink.d.ts.map +1 -0
  53. package/dist/lib/system-bus/deeplink.js +99 -0
  54. package/dist/lib/system-bus/deeplink.js.map +1 -0
  55. package/dist/lib/system-bus/enums.d.ts +27 -0
  56. package/dist/lib/system-bus/enums.d.ts.map +1 -0
  57. package/dist/lib/system-bus/enums.js +35 -0
  58. package/dist/lib/system-bus/enums.js.map +1 -0
  59. package/dist/lib/system-bus/host-ports.d.ts +24 -0
  60. package/dist/lib/system-bus/host-ports.d.ts.map +1 -0
  61. package/dist/lib/system-bus/host-ports.js +3 -0
  62. package/dist/lib/system-bus/host-ports.js.map +1 -0
  63. package/dist/lib/system-bus/index.d.ts +11 -0
  64. package/dist/lib/system-bus/index.d.ts.map +1 -0
  65. package/dist/lib/system-bus/index.js +27 -0
  66. package/dist/lib/system-bus/index.js.map +1 -0
  67. package/dist/lib/system-bus/intent-registry.d.ts +14 -0
  68. package/dist/lib/system-bus/intent-registry.d.ts.map +1 -0
  69. package/dist/lib/system-bus/intent-registry.js +66 -0
  70. package/dist/lib/system-bus/intent-registry.js.map +1 -0
  71. package/dist/lib/system-bus/intents.d.ts +30 -0
  72. package/dist/lib/system-bus/intents.d.ts.map +1 -0
  73. package/dist/lib/system-bus/intents.js +3 -0
  74. package/dist/lib/system-bus/intents.js.map +1 -0
  75. package/dist/lib/system-bus/palette.d.ts +25 -0
  76. package/dist/lib/system-bus/palette.d.ts.map +1 -0
  77. package/dist/lib/system-bus/palette.js +3 -0
  78. package/dist/lib/system-bus/palette.js.map +1 -0
  79. package/dist/lib/system-bus/system-bus-builder.d.ts +10 -0
  80. package/dist/lib/system-bus/system-bus-builder.d.ts.map +1 -0
  81. package/dist/lib/system-bus/system-bus-builder.js +82 -0
  82. package/dist/lib/system-bus/system-bus-builder.js.map +1 -0
  83. package/dist/lib/system-bus/system-bus.d.ts +13 -0
  84. package/dist/lib/system-bus/system-bus.d.ts.map +1 -0
  85. package/dist/lib/system-bus/system-bus.js +3 -0
  86. package/dist/lib/system-bus/system-bus.js.map +1 -0
  87. package/dist/lib/system-bus/windows.d.ts +21 -0
  88. package/dist/lib/system-bus/windows.d.ts.map +1 -0
  89. package/dist/lib/system-bus/windows.js +3 -0
  90. package/dist/lib/system-bus/windows.js.map +1 -0
  91. package/dist/org-db/components/DbResultTable.d.ts +13 -0
  92. package/dist/org-db/components/DbResultTable.d.ts.map +1 -0
  93. package/dist/org-db/components/DbResultTable.js +58 -0
  94. package/dist/org-db/components/DbResultTable.js.map +1 -0
  95. package/dist/org-db/index.d.ts +2 -0
  96. package/dist/org-db/index.d.ts.map +1 -0
  97. package/dist/org-db/index.js +6 -0
  98. package/dist/org-db/index.js.map +1 -0
  99. package/dist/registry/index.d.ts +9 -0
  100. package/dist/registry/index.d.ts.map +1 -0
  101. package/dist/registry/index.js +25 -0
  102. package/dist/registry/index.js.map +1 -0
  103. package/dist/registry/lib/biome-slot.d.ts +7 -0
  104. package/dist/registry/lib/biome-slot.d.ts.map +1 -0
  105. package/dist/registry/lib/biome-slot.js +18 -0
  106. package/dist/registry/lib/biome-slot.js.map +1 -0
  107. package/dist/registry/lib/biomes-enabled-context.d.ts +3 -0
  108. package/dist/registry/lib/biomes-enabled-context.d.ts.map +1 -0
  109. package/dist/registry/lib/biomes-enabled-context.js +11 -0
  110. package/dist/registry/lib/biomes-enabled-context.js.map +1 -0
  111. package/dist/registry/lib/composition-validation-host.d.ts +3 -0
  112. package/dist/registry/lib/composition-validation-host.d.ts.map +1 -0
  113. package/dist/registry/lib/composition-validation-host.js +10 -0
  114. package/dist/registry/lib/composition-validation-host.js.map +1 -0
  115. package/dist/registry/lib/extension-points.d.ts +15 -0
  116. package/dist/registry/lib/extension-points.d.ts.map +1 -0
  117. package/dist/registry/lib/extension-points.js +17 -0
  118. package/dist/registry/lib/extension-points.js.map +1 -0
  119. package/dist/registry/lib/primitives/SessionEventCard.d.ts +14 -0
  120. package/dist/registry/lib/primitives/SessionEventCard.d.ts.map +1 -0
  121. package/dist/registry/lib/primitives/SessionEventCard.js +60 -0
  122. package/dist/registry/lib/primitives/SessionEventCard.js.map +1 -0
  123. package/dist/registry/lib/primitives/SessionEventTimeline.d.ts +13 -0
  124. package/dist/registry/lib/primitives/SessionEventTimeline.d.ts.map +1 -0
  125. package/dist/registry/lib/primitives/SessionEventTimeline.js +35 -0
  126. package/dist/registry/lib/primitives/SessionEventTimeline.js.map +1 -0
  127. package/dist/registry/lib/primitives/SessionMutationBar.d.ts +10 -0
  128. package/dist/registry/lib/primitives/SessionMutationBar.d.ts.map +1 -0
  129. package/dist/registry/lib/primitives/SessionMutationBar.js +37 -0
  130. package/dist/registry/lib/primitives/SessionMutationBar.js.map +1 -0
  131. package/dist/registry/lib/primitives/SessionTabbedDrawer.d.ts +19 -0
  132. package/dist/registry/lib/primitives/SessionTabbedDrawer.d.ts.map +1 -0
  133. package/dist/registry/lib/primitives/SessionTabbedDrawer.js +75 -0
  134. package/dist/registry/lib/primitives/SessionTabbedDrawer.js.map +1 -0
  135. package/dist/registry/lib/primitives/index.d.ts +5 -0
  136. package/dist/registry/lib/primitives/index.d.ts.map +1 -0
  137. package/dist/registry/lib/primitives/index.js +21 -0
  138. package/dist/registry/lib/primitives/index.js.map +1 -0
  139. package/dist/registry/lib/session-context-builder.d.ts +13 -0
  140. package/dist/registry/lib/session-context-builder.d.ts.map +1 -0
  141. package/dist/registry/lib/session-context-builder.js +39 -0
  142. package/dist/registry/lib/session-context-builder.js.map +1 -0
  143. package/dist/registry/lib/session-context-provider.d.ts +10 -0
  144. package/dist/registry/lib/session-context-provider.d.ts.map +1 -0
  145. package/dist/registry/lib/session-context-provider.js +24 -0
  146. package/dist/registry/lib/session-context-provider.js.map +1 -0
  147. package/dist/registry/lib/session-selectors.d.ts +9 -0
  148. package/dist/registry/lib/session-selectors.d.ts.map +1 -0
  149. package/dist/registry/lib/session-selectors.js +149 -0
  150. package/dist/registry/lib/session-selectors.js.map +1 -0
  151. package/dist/session/comments/CommentRail.d.ts +20 -0
  152. package/dist/session/comments/CommentRail.d.ts.map +1 -0
  153. package/dist/session/comments/CommentRail.js +16 -0
  154. package/dist/session/comments/CommentRail.js.map +1 -0
  155. package/dist/session/index.d.ts +4 -0
  156. package/dist/session/index.d.ts.map +1 -0
  157. package/dist/session/index.js +10 -0
  158. package/dist/session/index.js.map +1 -0
  159. package/dist/session/lib/cn.d.ts +3 -0
  160. package/dist/session/lib/cn.d.ts.map +1 -0
  161. package/dist/session/lib/cn.js +9 -0
  162. package/dist/session/lib/cn.js.map +1 -0
  163. package/dist/session/shell/SessionWorkspaceShell.d.ts +16 -0
  164. package/dist/session/shell/SessionWorkspaceShell.d.ts.map +1 -0
  165. package/dist/session/shell/SessionWorkspaceShell.js +15 -0
  166. package/dist/session/shell/SessionWorkspaceShell.js.map +1 -0
  167. package/package.json +84 -0
  168. package/src/index.ts +2 -0
  169. package/src/lib/biome-host/biome-mode.ts +6 -0
  170. package/src/lib/biome-host/biome-registry.ts +245 -0
  171. package/src/lib/biome-host/composition-validation.ts +215 -0
  172. package/src/lib/biome-host/frontend-biome.ts +162 -0
  173. package/src/lib/biome-host/host-bridge.ts +178 -0
  174. package/src/lib/biome-host/host-sources.ts +41 -0
  175. package/src/lib/biome-host/index.ts +23 -0
  176. package/src/lib/biome-host/nav.ts +83 -0
  177. package/src/lib/biome-host/session-contributions.ts +293 -0
  178. package/src/lib/biome-host/session-profiles.ts +99 -0
  179. package/src/lib/system-bus/capability-invoke.ts +92 -0
  180. package/src/lib/system-bus/deeplink.ts +200 -0
  181. package/src/lib/system-bus/enums.ts +86 -0
  182. package/src/lib/system-bus/host-ports.ts +96 -0
  183. package/src/lib/system-bus/index.ts +16 -0
  184. package/src/lib/system-bus/intent-registry.ts +106 -0
  185. package/src/lib/system-bus/intents.ts +109 -0
  186. package/src/lib/system-bus/palette.ts +77 -0
  187. package/src/lib/system-bus/system-bus-builder.ts +157 -0
  188. package/src/lib/system-bus/system-bus.ts +37 -0
  189. package/src/lib/system-bus/windows.ts +51 -0
  190. package/src/org-db/components/DbResultTable.tsx +143 -0
  191. package/src/org-db/index.ts +1 -0
  192. package/src/registry/index.ts +8 -0
  193. package/src/registry/lib/biome-slot.tsx +47 -0
  194. package/src/registry/lib/biomes-enabled-context.ts +20 -0
  195. package/src/registry/lib/composition-validation-host.ts +37 -0
  196. package/src/registry/lib/extension-points.ts +134 -0
  197. package/src/registry/lib/primitives/SessionEventCard.tsx +138 -0
  198. package/src/registry/lib/primitives/SessionEventTimeline.tsx +89 -0
  199. package/src/registry/lib/primitives/SessionMutationBar.tsx +76 -0
  200. package/src/registry/lib/primitives/SessionTabbedDrawer.tsx +155 -0
  201. package/src/registry/lib/primitives/index.ts +18 -0
  202. package/src/registry/lib/session-context-builder.ts +68 -0
  203. package/src/registry/lib/session-context-provider.tsx +50 -0
  204. package/src/registry/lib/session-selectors.ts +231 -0
  205. package/src/session/comments/CommentRail.tsx +164 -0
  206. package/src/session/index.ts +3 -0
  207. package/src/session/lib/cn.ts +11 -0
  208. package/src/session/shell/SessionWorkspaceShell.tsx +141 -0
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=host-sources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host-sources.js","sourceRoot":"","sources":["../../../src/lib/biome-host/host-sources.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ export * from './frontend-biome';
2
+ export * from './host-bridge';
3
+ export * from './biome-registry';
4
+ export * from './session-contributions';
5
+ export * from './session-profiles';
6
+ export * from './host-sources';
7
+ export * from './nav';
8
+ export * from './biome-mode';
9
+ export * from './composition-validation';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/biome-host/index.ts"],"names":[],"mappings":"AAcA,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./frontend-biome"), exports);
18
+ __exportStar(require("./host-bridge"), exports);
19
+ __exportStar(require("./biome-registry"), exports);
20
+ __exportStar(require("./session-contributions"), exports);
21
+ __exportStar(require("./session-profiles"), exports);
22
+ __exportStar(require("./host-sources"), exports);
23
+ __exportStar(require("./nav"), exports);
24
+ __exportStar(require("./biome-mode"), exports);
25
+ __exportStar(require("./composition-validation"), exports);
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/biome-host/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAcA,mDAAiC;AACjC,gDAA8B;AAC9B,mDAAiC;AACjC,0DAAwC;AACxC,qDAAmC;AACnC,iDAA+B;AAC/B,wCAAsB;AACtB,+CAA6B;AAC7B,2DAAyC"}
@@ -0,0 +1,17 @@
1
+ import type { ComponentType } from 'react';
2
+ export interface NavItem {
3
+ readonly key: string;
4
+ readonly label: string;
5
+ readonly icon?: ComponentType<{
6
+ className?: string | undefined;
7
+ }> | undefined;
8
+ readonly weight?: number | undefined;
9
+ readonly fromBiome?: boolean | undefined;
10
+ }
11
+ export interface NavSection {
12
+ readonly heading?: string | undefined;
13
+ readonly items: readonly NavItem[];
14
+ }
15
+ export declare function mergeNavSections(coreSections: readonly NavSection[]): readonly NavSection[];
16
+ export declare function mergeFeatureRouteMap(coreFeatureRoutes: Readonly<Record<string, string>>): Record<string, string>;
17
+ //# sourceMappingURL=nav.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nav.d.ts","sourceRoot":"","sources":["../../../src/lib/biome-host/nav.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3C,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC,GAAG,SAAS,CAAC;IAC9E,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAErC,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC1C;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,SAAS,OAAO,EAAE,CAAC;CACpC;AAUD,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,SAAS,UAAU,EAAE,GAAG,SAAS,UAAU,EAAE,CAsC3F;AAQD,wBAAgB,oBAAoB,CAClC,iBAAiB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAClD,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAQxB"}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mergeNavSections = mergeNavSections;
4
+ exports.mergeFeatureRouteMap = mergeFeatureRouteMap;
5
+ const biome_registry_1 = require("./biome-registry");
6
+ function mergeNavSections(coreSections) {
7
+ const sectionMap = new Map();
8
+ const sectionOrder = [];
9
+ for (const section of coreSections) {
10
+ const heading = section.heading ?? '';
11
+ sectionOrder.push(heading);
12
+ sectionMap.set(heading, [...section.items]);
13
+ }
14
+ for (const biome of biome_registry_1.biomeRegistry.list()) {
15
+ for (const navItem of biome.navItems ?? []) {
16
+ const heading = navItem.section ?? '';
17
+ let bucket = sectionMap.get(heading);
18
+ if (!bucket) {
19
+ bucket = [];
20
+ sectionOrder.push(heading);
21
+ sectionMap.set(heading, bucket);
22
+ }
23
+ bucket.push({
24
+ key: navItem.id,
25
+ label: navItem.label,
26
+ icon: navItem.icon,
27
+ weight: navItem.weight,
28
+ fromBiome: true,
29
+ });
30
+ }
31
+ }
32
+ return sectionOrder.map((heading) => ({
33
+ heading: heading === '' ? undefined : heading,
34
+ items: (sectionMap.get(heading) ?? []).slice().sort((a, b) => {
35
+ const wa = a.weight ?? 100;
36
+ const wb = b.weight ?? 100;
37
+ if (wa !== wb)
38
+ return wa - wb;
39
+ return a.key.localeCompare(b.key);
40
+ }),
41
+ }));
42
+ }
43
+ function mergeFeatureRouteMap(coreFeatureRoutes) {
44
+ const out = { ...coreFeatureRoutes };
45
+ for (const biome of biome_registry_1.biomeRegistry.list()) {
46
+ for (const navItem of biome.navItems ?? []) {
47
+ out[navItem.id] = navItem.route;
48
+ }
49
+ }
50
+ return out;
51
+ }
52
+ //# sourceMappingURL=nav.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nav.js","sourceRoot":"","sources":["../../../src/lib/biome-host/nav.ts"],"names":[],"mappings":";;AA0BA,4CAsCC;AAQD,oDAUC;AAhFD,qDAAiD;AAwBjD,SAAgB,gBAAgB,CAAC,YAAmC;IAClE,MAAM,UAAU,GAAG,IAAI,GAAG,EAAqB,CAAC;IAChD,MAAM,YAAY,GAAa,EAAE,CAAC;IAElC,KAAK,MAAM,OAAO,IAAI,YAAY,EAAE,CAAC;QACnC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC;QACtC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3B,UAAU,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IAC9C,CAAC;IAED,KAAK,MAAM,KAAK,IAAI,8BAAa,CAAC,IAAI,EAAE,EAAE,CAAC;QACzC,KAAK,MAAM,OAAO,IAAI,KAAK,CAAC,QAAQ,IAAI,EAAE,EAAE,CAAC;YAC3C,MAAM,OAAO,GAAG,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GAAG,iBAAiB,EAAE,CAAC;IAC7D,KAAK,MAAM,KAAK,IAAI,8BAAa,CAAC,IAAI,EAAE,EAAE,CAAC;QACzC,KAAK,MAAM,OAAO,IAAI,KAAK,CAAC,QAAQ,IAAI,EAAE,EAAE,CAAC;YAC3C,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC;QAClC,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -0,0 +1,143 @@
1
+ import type { ComponentType, ReactNode } from 'react';
2
+ import type { HostBridge } from './host-bridge';
3
+ import type { SessionProfileDescriptor } from './session-profiles';
4
+ export interface SessionContext {
5
+ readonly sessionId: string;
6
+ readonly orgId: string;
7
+ readonly projectId: string;
8
+ readonly biomeId?: string;
9
+ readonly profileKey?: string;
10
+ readonly status: string;
11
+ readonly capabilities: ReadonlySet<string>;
12
+ readonly isActive: boolean;
13
+ }
14
+ export interface SessionActivityEvent {
15
+ readonly id: string;
16
+ readonly kind: string;
17
+ readonly sequence?: number;
18
+ readonly createdAt: string;
19
+ readonly title: string;
20
+ readonly content?: string;
21
+ readonly detail?: string;
22
+ readonly status?: 'pending' | 'completed' | 'error';
23
+ readonly payload?: Record<string, unknown>;
24
+ }
25
+ export interface SessionToolCallEvent {
26
+ readonly id: string;
27
+ readonly name: string;
28
+ readonly status: 'pending' | 'completed' | 'error';
29
+ readonly startedAt: string;
30
+ readonly completedAt?: string;
31
+ readonly args?: Record<string, unknown>;
32
+ readonly result?: unknown;
33
+ readonly error?: string;
34
+ }
35
+ export interface SlashCommandContext {
36
+ readonly session: SessionContext;
37
+ readonly bridge: HostBridge;
38
+ }
39
+ export interface SlashCommandContribution {
40
+ readonly id: string;
41
+ readonly name: string;
42
+ readonly label: string;
43
+ readonly description: string;
44
+ readonly icon?: ComponentType<{
45
+ className?: string | undefined;
46
+ }>;
47
+ readonly weight?: number;
48
+ readonly appliesTo?: (ctx: SessionContext) => boolean;
49
+ readonly requiresActiveSession?: boolean;
50
+ readonly onSelect: (ctx: SlashCommandContext) => void | Promise<void>;
51
+ }
52
+ export interface SecondaryDrawerTabContext {
53
+ readonly session: SessionContext;
54
+ readonly bridge: HostBridge;
55
+ }
56
+ export interface SecondaryDrawerTabContribution {
57
+ readonly id: string;
58
+ readonly key: string;
59
+ readonly label: string;
60
+ readonly icon: ComponentType<{
61
+ className?: string | undefined;
62
+ }>;
63
+ readonly order?: number;
64
+ readonly appliesTo?: (ctx: SessionContext) => boolean;
65
+ readonly render: (ctx: SecondaryDrawerTabContext) => ReactNode;
66
+ }
67
+ export interface ActivityRendererContext {
68
+ readonly session: SessionContext;
69
+ readonly event: SessionActivityEvent;
70
+ }
71
+ export interface ActivityRendererContribution {
72
+ readonly id: string;
73
+ readonly entryKind: string;
74
+ readonly appliesTo?: (ctx: ActivityRendererContext) => boolean;
75
+ readonly render: (ctx: ActivityRendererContext) => ReactNode;
76
+ }
77
+ export interface ToolCallRendererContext {
78
+ readonly session: SessionContext;
79
+ readonly event: SessionToolCallEvent;
80
+ }
81
+ export interface ToolCallRendererContribution {
82
+ readonly id: string;
83
+ readonly toolName: string;
84
+ readonly icon?: ComponentType<{
85
+ className?: string | undefined;
86
+ }>;
87
+ readonly weight?: number;
88
+ readonly appliesTo?: (ctx: ToolCallRendererContext) => boolean;
89
+ readonly renderLabel?: (ctx: ToolCallRendererContext) => string;
90
+ readonly render?: (ctx: ToolCallRendererContext) => ReactNode;
91
+ }
92
+ export interface MutationBarContext {
93
+ readonly session: SessionContext;
94
+ readonly bridge: HostBridge;
95
+ }
96
+ export interface MutationBarContribution {
97
+ readonly id: string;
98
+ readonly order?: number;
99
+ readonly appliesTo?: (ctx: SessionContext) => boolean;
100
+ readonly render: (ctx: MutationBarContext) => ReactNode;
101
+ }
102
+ export interface HeaderChipContext {
103
+ readonly session: SessionContext;
104
+ readonly bridge: HostBridge;
105
+ }
106
+ export interface HeaderChipContribution {
107
+ readonly id: string;
108
+ readonly order?: number;
109
+ readonly appliesTo?: (ctx: SessionContext) => boolean;
110
+ readonly render: (ctx: HeaderChipContext) => ReactNode;
111
+ }
112
+ export interface AttachmentPickResult {
113
+ readonly classId: string;
114
+ readonly ref: string;
115
+ readonly label: string;
116
+ readonly payload?: Record<string, unknown>;
117
+ }
118
+ export interface AttachmentPickContext {
119
+ readonly session: SessionContext;
120
+ readonly bridge: HostBridge;
121
+ }
122
+ export interface AttachmentClassContribution {
123
+ readonly id: string;
124
+ readonly label: string;
125
+ readonly description?: string;
126
+ readonly icon?: ComponentType<{
127
+ className?: string | undefined;
128
+ }>;
129
+ readonly order?: number;
130
+ readonly appliesTo?: (ctx: SessionContext) => boolean;
131
+ readonly pickAndAttach: (ctx: AttachmentPickContext) => Promise<AttachmentPickResult | null>;
132
+ }
133
+ export interface SessionContributions {
134
+ readonly slashCommands?: readonly SlashCommandContribution[];
135
+ readonly secondaryDrawerTabs?: readonly SecondaryDrawerTabContribution[];
136
+ readonly activityRenderers?: readonly ActivityRendererContribution[];
137
+ readonly toolCallRenderers?: readonly ToolCallRendererContribution[];
138
+ readonly mutationBars?: readonly MutationBarContribution[];
139
+ readonly headerChips?: readonly HeaderChipContribution[];
140
+ readonly attachmentClasses?: readonly AttachmentClassContribution[];
141
+ readonly profiles?: readonly SessionProfileDescriptor[];
142
+ }
143
+ //# sourceMappingURL=session-contributions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-contributions.d.ts","sourceRoot":"","sources":["../../../src/lib/biome-host/session-contributions.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAQnE,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,E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,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC,CAAC;IAClE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,OAAO,CAAC;IACtD,QAAQ,CAAC,aAAa,EAAE,CACtB,GAAG,EAAE,qBAAqB,KACvB,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;CAC3C;AAWD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,aAAa,CAAC,EAAE,SAAS,wBAAwB,EAAE,CAAC;IAC7D,QAAQ,CAAC,mBAAmB,CAAC,EAAE,SAAS,8BAA8B,EAAE,CAAC;IACzE,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,4BAA4B,EAAE,CAAC;IACrE,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,4BAA4B,EAAE,CAAC;IACrE,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,uBAAuB,EAAE,CAAC;IAC3D,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,sBAAsB,EAAE,CAAC;IACzD,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,2BAA2B,EAAE,CAAC;IASpE,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,wBAAwB,EAAE,CAAC;CACzD"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=session-contributions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-contributions.js","sourceRoot":"","sources":["../../../src/lib/biome-host/session-contributions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ export declare const SessionCapabilities: {
2
+ readonly HasGit: "hasGit";
3
+ readonly HasWorkspaceFiles: "hasWorkspaceFiles";
4
+ readonly SupportsKbPush: "supportsKbPush";
5
+ readonly HasArtifacts: "hasArtifacts";
6
+ readonly SupportsForking: "supportsForking";
7
+ readonly SupportsSharing: "supportsSharing";
8
+ };
9
+ export type SessionCapability = (typeof SessionCapabilities)[keyof typeof SessionCapabilities];
10
+ export interface SessionProfileDescriptor {
11
+ readonly key: string;
12
+ readonly biomeId: string;
13
+ readonly label: string;
14
+ readonly description?: string;
15
+ readonly capabilities: readonly string[];
16
+ }
17
+ export declare function useSessionProfileDescriptor(biomeId: string | undefined, profileKey: string | undefined): SessionProfileDescriptor;
18
+ //# sourceMappingURL=session-profiles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-profiles.d.ts","sourceRoot":"","sources":["../../../src/lib/biome-host/session-profiles.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,mBAAmB;;;;;;;CAatB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAC3B,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE,MAAM,WAAW,wBAAwB;IAKvC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAE9B,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;CAC1C;AAcD,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,UAAU,EAAE,MAAM,GAAG,SAAS,GAC7B,wBAAwB,CAqB1B"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SessionCapabilities = void 0;
4
+ exports.useSessionProfileDescriptor = useSessionProfileDescriptor;
5
+ const react_1 = require("react");
6
+ const biome_registry_1 = require("./biome-registry");
7
+ exports.SessionCapabilities = {
8
+ HasGit: 'hasGit',
9
+ HasWorkspaceFiles: 'hasWorkspaceFiles',
10
+ SupportsKbPush: 'supportsKbPush',
11
+ HasArtifacts: 'hasArtifacts',
12
+ SupportsForking: 'supportsForking',
13
+ SupportsSharing: 'supportsSharing',
14
+ };
15
+ function useSessionProfileDescriptor(biomeId, profileKey) {
16
+ const revision = (0, biome_registry_1.useBiomeRegistryRevision)();
17
+ return (0, react_1.useMemo)(() => {
18
+ const fallback = {
19
+ key: profileKey ?? 'unknown',
20
+ biomeId: biomeId ?? 'unknown',
21
+ label: profileKey ?? 'Unknown profile',
22
+ capabilities: [],
23
+ };
24
+ if (!profileKey)
25
+ return fallback;
26
+ let crossPluginMatch;
27
+ for (const biome of biome_registry_1.biomeRegistry.list()) {
28
+ for (const profile of biome.session?.profiles ?? []) {
29
+ if (profile.key !== profileKey)
30
+ continue;
31
+ if (biomeId != null && profile.biomeId === biomeId)
32
+ return profile;
33
+ crossPluginMatch ??= profile;
34
+ }
35
+ }
36
+ return crossPluginMatch ?? fallback;
37
+ }, [revision, biomeId, profileKey]);
38
+ }
39
+ //# sourceMappingURL=session-profiles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-profiles.js","sourceRoot":"","sources":["../../../src/lib/biome-host/session-profiles.ts"],"names":[],"mappings":";;;AA0EA,kEAwBC;AAjFD,iCAAgC;AAEhC,qDAA2E;AAU9D,QAAA,mBAAmB,GAAG;IAEjC,MAAM,EAAE,QAAQ;IAEhB,iBAAiB,EAAE,mBAAmB;IAEtC,cAAc,EAAE,gBAAgB;IAEhC,YAAY,EAAE,cAAc;IAE5B,eAAe,EAAE,iBAAiB;IAElC,eAAe,EAAE,iBAAiB;CAC1B,CAAC;AAgCX,SAAgB,2BAA2B,CACzC,OAA2B,EAC3B,UAA8B;IAE9B,MAAM,QAAQ,GAAG,IAAA,yCAAwB,GAAE,CAAC;IAC5C,OAAO,IAAA,eAAO,EAAC,GAAG,EAAE;QAClB,MAAM,QAAQ,GAA6B;YACzC,GAAG,EAAE,UAAU,IAAI,SAAS;YAC5B,OAAO,EAAE,OAAO,IAAI,SAAS;YAC7B,KAAK,EAAE,UAAU,IAAI,iBAAiB;YACtC,YAAY,EAAE,EAAE;SACjB,CAAC;QACF,IAAI,CAAC,UAAU;YAAE,OAAO,QAAQ,CAAC;QACjC,IAAI,gBAAsD,CAAC;QAC3D,KAAK,MAAM,KAAK,IAAI,8BAAa,CAAC,IAAI,EAAE,EAAE,CAAC;YACzC,KAAK,MAAM,OAAO,IAAI,KAAK,CAAC,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,CAAC;gBACpD,IAAI,OAAO,CAAC,GAAG,KAAK,UAAU;oBAAE,SAAS;gBACzC,IAAI,OAAO,IAAI,IAAI,IAAI,OAAO,CAAC,OAAO,KAAK,OAAO;oBAAE,OAAO,OAAO,CAAC;gBACnE,gBAAgB,KAAK,OAAO,CAAC;YAC/B,CAAC;QACH,CAAC;QACD,OAAO,gBAAgB,IAAI,QAAQ,CAAC;IAEtC,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;AACtC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { CapabilityRef } from '@xemahq/kernel-contracts/capability';
2
+ import type { SpaceRef } from '@xemahq/kernel-contracts/space';
3
+ export interface CapabilityInvokeMeta {
4
+ readonly sourceBiomeId: string;
5
+ readonly targetCapabilityRef: CapabilityRef;
6
+ readonly spaceRef: SpaceRef;
7
+ readonly environmentId: string;
8
+ readonly actorId: string;
9
+ }
10
+ export interface CapabilityInvokeResult<TOutput = unknown> {
11
+ readonly output?: TOutput;
12
+ readonly auditId: string;
13
+ readonly obligations: readonly string[];
14
+ }
15
+ export interface CapabilityBus {
16
+ invoke<TInput = unknown, TOutput = unknown>(ref: CapabilityRef, input: TInput, meta: CapabilityInvokeMeta): Promise<CapabilityInvokeResult<TOutput>>;
17
+ }
18
+ //# sourceMappingURL=capability-invoke.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capability-invoke.d.ts","sourceRoot":"","sources":["../../../src/lib/system-bus/capability-invoke.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAsB/D,MAAM,WAAW,oBAAoB;IAEnC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAG/B,QAAQ,CAAC,mBAAmB,EAAE,aAAa,CAAC;IAE5C,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAE5B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAI/B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAaD,MAAM,WAAW,sBAAsB,CAAC,OAAO,GAAG,OAAO;IAEvD,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAE1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAQzB,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;CACzC;AAYD,MAAM,WAAW,aAAa;IAW5B,MAAM,CAAC,MAAM,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO,EACxC,GAAG,EAAE,aAAa,EAClB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,oBAAoB,GACzB,OAAO,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC;CAC7C"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=capability-invoke.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capability-invoke.js","sourceRoot":"","sources":["../../../src/lib/system-bus/capability-invoke.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ import { DeeplinkTargetKind } from './enums';
2
+ export declare class DeeplinkParseError extends Error {
3
+ readonly code = "DEEPLINK_INVALID";
4
+ readonly raw: string;
5
+ readonly reason: string;
6
+ constructor(raw: string, reason: string);
7
+ }
8
+ export interface BiomeRouteDeeplink {
9
+ readonly kind: DeeplinkTargetKind.BiomeRoute;
10
+ readonly biomeId: string;
11
+ readonly route: string;
12
+ readonly ctx: Readonly<Record<string, string>>;
13
+ }
14
+ export interface ObjectDeeplink {
15
+ readonly kind: DeeplinkTargetKind.Object;
16
+ readonly objectRef: `xema://${string}`;
17
+ }
18
+ export interface CapabilityDeeplink {
19
+ readonly kind: DeeplinkTargetKind.Capability;
20
+ readonly capabilityRef: string;
21
+ readonly input: Readonly<Record<string, string>>;
22
+ }
23
+ export interface WindowDeeplink {
24
+ readonly kind: DeeplinkTargetKind.Window;
25
+ readonly windowId: string;
26
+ }
27
+ export type ParsedDeeplink = BiomeRouteDeeplink | ObjectDeeplink | CapabilityDeeplink | WindowDeeplink;
28
+ export declare function parseDeeplink(raw: string): ParsedDeeplink;
29
+ export interface DeeplinkBus {
30
+ parse(raw: string): ParsedDeeplink;
31
+ resolve(target: string | ParsedDeeplink): Promise<void>;
32
+ }
33
+ //# sourceMappingURL=deeplink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deeplink.d.ts","sourceRoot":"","sources":["../../../src/lib/system-bus/deeplink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AA4B7C,qBAAa,kBAAmB,SAAQ,KAAK;IAC3C,SAAgB,IAAI,sBAAsB;IAC1C,SAAgB,GAAG,EAAE,MAAM,CAAC;IAC5B,SAAgB,MAAM,EAAE,MAAM,CAAC;gBAEZ,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;CAM/C;AAGD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC,UAAU,CAAC;IAC7C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAChD;AAID,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC;IAGzC,QAAQ,CAAC,SAAS,EAAE,UAAU,MAAM,EAAE,CAAC;CACxC;AAGD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC,UAAU,CAAC;IAG7C,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAE/B,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAClD;AAGD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC;IACzC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAGD,MAAM,MAAM,cAAc,GACtB,kBAAkB,GAClB,cAAc,GACd,kBAAkB,GAClB,cAAc,CAAC;AAwBnB,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAyEzD;AAUD,MAAM,WAAW,WAAW;IAE1B,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAC;IAQnC,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzD"}
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeeplinkParseError = void 0;
4
+ exports.parseDeeplink = parseDeeplink;
5
+ const enums_1 = require("./enums");
6
+ const DEEPLINK_SCHEME = 'xema://';
7
+ class DeeplinkParseError extends Error {
8
+ code = 'DEEPLINK_INVALID';
9
+ raw;
10
+ reason;
11
+ constructor(raw, reason) {
12
+ super(`Invalid deeplink "${raw}": ${reason}`);
13
+ this.name = 'DeeplinkParseError';
14
+ this.raw = raw;
15
+ this.reason = reason;
16
+ }
17
+ }
18
+ exports.DeeplinkParseError = DeeplinkParseError;
19
+ function parseQuery(search) {
20
+ const out = {};
21
+ if (search.length === 0)
22
+ return out;
23
+ for (const pair of search.split('&')) {
24
+ if (pair.length === 0)
25
+ continue;
26
+ const eq = pair.indexOf('=');
27
+ if (eq === -1) {
28
+ out[decodeURIComponent(pair)] = '';
29
+ }
30
+ else {
31
+ out[decodeURIComponent(pair.slice(0, eq))] = decodeURIComponent(pair.slice(eq + 1));
32
+ }
33
+ }
34
+ return out;
35
+ }
36
+ function parseDeeplink(raw) {
37
+ if (typeof raw !== 'string' || !raw.startsWith(DEEPLINK_SCHEME)) {
38
+ throw new DeeplinkParseError(String(raw), `must start with "${DEEPLINK_SCHEME}"`);
39
+ }
40
+ const afterScheme = raw.slice(DEEPLINK_SCHEME.length);
41
+ if (afterScheme.length === 0) {
42
+ throw new DeeplinkParseError(raw, 'empty body after scheme');
43
+ }
44
+ const qIndex = afterScheme.indexOf('?');
45
+ const path = qIndex === -1 ? afterScheme : afterScheme.slice(0, qIndex);
46
+ const search = qIndex === -1 ? '' : afterScheme.slice(qIndex + 1);
47
+ const segments = path.split('/').filter((s) => s.length > 0);
48
+ const head = segments[0];
49
+ if (head === undefined) {
50
+ throw new DeeplinkParseError(raw, 'missing target-kind head segment');
51
+ }
52
+ switch (head) {
53
+ case enums_1.DeeplinkTargetKind.BiomeRoute: {
54
+ const biomeId = segments[1];
55
+ if (biomeId === undefined) {
56
+ throw new DeeplinkParseError(raw, 'biome deeplink missing <biomeId>');
57
+ }
58
+ const routeSegments = segments.slice(2);
59
+ const route = `/${routeSegments.join('/')}`;
60
+ return {
61
+ kind: enums_1.DeeplinkTargetKind.BiomeRoute,
62
+ biomeId,
63
+ route,
64
+ ctx: parseQuery(search),
65
+ };
66
+ }
67
+ case enums_1.DeeplinkTargetKind.Object: {
68
+ const body = segments.slice(1).join('/');
69
+ if (body.length === 0) {
70
+ throw new DeeplinkParseError(raw, 'object deeplink missing <XemaObjectRef>');
71
+ }
72
+ return {
73
+ kind: enums_1.DeeplinkTargetKind.Object,
74
+ objectRef: `${DEEPLINK_SCHEME}${body}`,
75
+ };
76
+ }
77
+ case enums_1.DeeplinkTargetKind.Capability: {
78
+ const capabilityRef = segments.slice(1).join('/');
79
+ if (capabilityRef.length === 0) {
80
+ throw new DeeplinkParseError(raw, 'capability deeplink missing <capability-ref>');
81
+ }
82
+ return {
83
+ kind: enums_1.DeeplinkTargetKind.Capability,
84
+ capabilityRef,
85
+ input: parseQuery(search),
86
+ };
87
+ }
88
+ case enums_1.DeeplinkTargetKind.Window: {
89
+ const windowId = segments[1];
90
+ if (windowId === undefined) {
91
+ throw new DeeplinkParseError(raw, 'window deeplink missing <windowId>');
92
+ }
93
+ return { kind: enums_1.DeeplinkTargetKind.Window, windowId };
94
+ }
95
+ default:
96
+ throw new DeeplinkParseError(raw, `unknown deeplink target kind "${head}" (expected one of: ${Object.values(enums_1.DeeplinkTargetKind).join(', ')})`);
97
+ }
98
+ }
99
+ //# sourceMappingURL=deeplink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deeplink.js","sourceRoot":"","sources":["../../../src/lib/system-bus/deeplink.ts"],"names":[],"mappings":";;;AAyGA,sCAyEC;AAlLD,mCAA6C;AAyB7C,MAAM,eAAe,GAAG,SAAS,CAAC;AAGlC,MAAa,kBAAmB,SAAQ,KAAK;IAC3B,IAAI,GAAG,kBAAkB,CAAC;IAC1B,GAAG,CAAS;IACZ,MAAM,CAAS;IAE/B,YAAmB,GAAW,EAAE,MAAc;QAC5C,KAAK,CAAC,qBAAqB,GAAG,MAAM,MAAM,EAAE,CAAC,CAAC;QAC9C,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;QACjC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,C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AAC,IAAI,CAAC,GAAG,CAChB,CAAC;IACN,CAAC;AACH,CAAC"}
@@ -0,0 +1,27 @@
1
+ export declare enum DeeplinkTargetKind {
2
+ BiomeRoute = "biome-route",
3
+ Object = "object",
4
+ Capability = "capability",
5
+ Window = "window"
6
+ }
7
+ export declare enum WindowOp {
8
+ Open = "open",
9
+ Focus = "focus",
10
+ Close = "close",
11
+ Arrange = "arrange"
12
+ }
13
+ export declare enum WindowArrangement {
14
+ Tile = "tile",
15
+ Stack = "stack",
16
+ Cascade = "cascade",
17
+ Maximize = "maximize"
18
+ }
19
+ export declare enum ActionRefKind {
20
+ Capability = "capability",
21
+ Deeplink = "deeplink"
22
+ }
23
+ export declare enum PaletteEntrySource {
24
+ Capability = "capability",
25
+ Intent = "intent"
26
+ }
27
+ //# sourceMappingURL=enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/lib/system-bus/enums.ts"],"names":[],"mappings":"AAmBA,oBAAY,kBAAkB;IAE5B,UAAU,gBAAgB;IAE1B,MAAM,WAAW;IAEjB,UAAU,eAAe;IAEzB,MAAM,WAAW;CAClB;AAQD,oBAAY,QAAQ;IAClB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,KAAK,UAAU;IACf,OAAO,YAAY;CACpB;AAOD,oBAAY,iBAAiB;IAE3B,IAAI,SAAS;IAEb,KAAK,UAAU;IAEf,OAAO,YAAY;IAEnB,QAAQ,aAAa;CACtB;AASD,oBAAY,aAAa;IAEvB,UAAU,eAAe;IAEzB,QAAQ,aAAa;CACtB;AASD,oBAAY,kBAAkB;IAE5B,UAAU,eAAe;IAEzB,MAAM,WAAW;CAClB"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaletteEntrySource = exports.ActionRefKind = exports.WindowArrangement = exports.WindowOp = exports.DeeplinkTargetKind = void 0;
4
+ var DeeplinkTargetKind;
5
+ (function (DeeplinkTargetKind) {
6
+ DeeplinkTargetKind["BiomeRoute"] = "biome-route";
7
+ DeeplinkTargetKind["Object"] = "object";
8
+ DeeplinkTargetKind["Capability"] = "capability";
9
+ DeeplinkTargetKind["Window"] = "window";
10
+ })(DeeplinkTargetKind || (exports.DeeplinkTargetKind = DeeplinkTargetKind = {}));
11
+ var WindowOp;
12
+ (function (WindowOp) {
13
+ WindowOp["Open"] = "open";
14
+ WindowOp["Focus"] = "focus";
15
+ WindowOp["Close"] = "close";
16
+ WindowOp["Arrange"] = "arrange";
17
+ })(WindowOp || (exports.WindowOp = WindowOp = {}));
18
+ var WindowArrangement;
19
+ (function (WindowArrangement) {
20
+ WindowArrangement["Tile"] = "tile";
21
+ WindowArrangement["Stack"] = "stack";
22
+ WindowArrangement["Cascade"] = "cascade";
23
+ WindowArrangement["Maximize"] = "maximize";
24
+ })(WindowArrangement || (exports.WindowArrangement = WindowArrangement = {}));
25
+ var ActionRefKind;
26
+ (function (ActionRefKind) {
27
+ ActionRefKind["Capability"] = "capability";
28
+ ActionRefKind["Deeplink"] = "deeplink";
29
+ })(ActionRefKind || (exports.ActionRefKind = ActionRefKind = {}));
30
+ var PaletteEntrySource;
31
+ (function (PaletteEntrySource) {
32
+ PaletteEntrySource["Capability"] = "capability";
33
+ PaletteEntrySource["Intent"] = "intent";
34
+ })(PaletteEntrySource || (exports.PaletteEntrySource = PaletteEntrySource = {}));
35
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/lib/system-bus/enums.ts"],"names":[],"mappings":";;;AAmBA,IAAY,kBASX;AATD,WAAY,kBAAkB;IAE5B,gDAA0B,CAAA;IAE1B,uCAAiB,CAAA;IAEjB,+CAAyB,CAAA;IAEzB,uCAAiB,CAAA;AACnB,CAAC,EATW,kBAAkB,kCAAlB,kBAAkB,QAS7B;AAQD,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,yBAAa,CAAA;IACb,2BAAe,CAAA;IACf,2BAAe,CAAA;IACf,+BAAmB,CAAA;AACrB,CAAC,EALW,QAAQ,wBAAR,QAAQ,QAKnB;AAOD,IAAY,iBASX;AATD,WAAY,iBAAiB;IAE3B,kCAAa,CAAA;IAEb,oCAAe,CAAA;IAEf,wCAAmB,CAAA;IAEnB,0CAAqB,CAAA;AACvB,CAAC,EATW,iBAAiB,iCAAjB,iBAAiB,QAS5B;AASD,IAAY,aAKX;AALD,WAAY,aAAa;IAEvB,0CAAyB,CAAA;IAEzB,sCAAqB,CAAA;AACvB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AASD,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAE5B,+CAAyB,CAAA;IAEzB,uCAAiB,CAAA;AACnB,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B"}