@opengeni/core 4.4.1 → 4.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeni/core",
3
- "version": "4.4.1",
3
+ "version": "4.5.0",
4
4
  "description": "Opengeni framework-agnostic core: the domain, access, and billing layers (neutral access, off-HTTP V2 surface). Behavior-preserving extraction from apps/api — keeps Hono's HTTPException for error throwing (typed-errors cleanup deferred).",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -51,18 +51,18 @@
51
51
  "dependencies": {
52
52
  "@modelcontextprotocol/client": "2.3.1",
53
53
  "@modelcontextprotocol/sdk": "^1.29.0",
54
- "@opengeni/capabilities": "4.4.1",
55
- "@opengeni/codex": "4.4.1",
56
- "@opengeni/config": "4.4.1",
57
- "@opengeni/contracts": "4.4.1",
58
- "@opengeni/db": "4.4.1",
59
- "@opengeni/documents": "4.4.1",
60
- "@opengeni/events": "4.4.1",
61
- "@opengeni/network": "4.4.1",
62
- "@opengeni/observability": "4.4.1",
63
- "@opengeni/runtime": "4.4.1",
64
- "@opengeni/storage": "4.4.1",
65
- "@opengeni/vaults": "4.4.1",
54
+ "@opengeni/capabilities": "4.5.0",
55
+ "@opengeni/codex": "4.5.0",
56
+ "@opengeni/config": "4.5.0",
57
+ "@opengeni/contracts": "4.5.0",
58
+ "@opengeni/db": "4.5.0",
59
+ "@opengeni/documents": "4.5.0",
60
+ "@opengeni/events": "4.5.0",
61
+ "@opengeni/network": "4.5.0",
62
+ "@opengeni/observability": "4.5.0",
63
+ "@opengeni/runtime": "4.5.0",
64
+ "@opengeni/storage": "4.5.0",
65
+ "@opengeni/vaults": "4.5.0",
66
66
  "hono": "^4.12.18",
67
67
  "zod": "^4.2.1"
68
68
  },
@@ -1668,6 +1668,20 @@ function onePasswordCatalogItem(connections: ConnectionMetadata[]): CapabilityCa
1668
1668
  });
1669
1669
  }
1670
1670
 
1671
+ /** How people and agents name the deployment's Chrome extension, and where it is installed. */
1672
+ export type BrowserExtension = { name: string; installUrl: string };
1673
+
1674
+ /** The deployment's configured Chrome extension, else Opengeni Browser. */
1675
+ export function browserExtension(settings: {
1676
+ browserExtensionName?: string | undefined;
1677
+ browserExtensionInstallUrl?: string | undefined;
1678
+ }): BrowserExtension {
1679
+ return {
1680
+ name: settings.browserExtensionName ?? "Opengeni Browser",
1681
+ installUrl: settings.browserExtensionInstallUrl ?? OPENGENI_BROWSER_EXTENSION_URL,
1682
+ };
1683
+ }
1684
+
1671
1685
  /** The catalog id of the Excel add-in tile and its in-chat install card. */
1672
1686
  export const EXCEL_ADDIN_CAPABILITY_ID = "api:excel-addin";
1673
1687
 
@@ -1793,8 +1807,9 @@ export const CONNECTED_MACHINE_CAPABILITY_ID = "api:connected-machine";
1793
1807
  export { OPENGENI_BROWSER_EXTENSION_URL };
1794
1808
 
1795
1809
  export function nativeConnectionCapabilityRecommendations(
1796
- options: { connectedMachines?: boolean } = {},
1810
+ options: { connectedMachines?: boolean; browserExtension?: BrowserExtension } = {},
1797
1811
  ): CapabilityCatalogItem[] {
1812
+ const extensionUrl = options.browserExtension?.installUrl ?? OPENGENI_BROWSER_EXTENSION_URL;
1798
1813
  const items = [
1799
1814
  CapabilityCatalogItem.parse({
1800
1815
  id: "api:github-app",
@@ -1865,7 +1880,7 @@ export function nativeConnectionCapabilityRecommendations(
1865
1880
  tools: [{ kind: "mcp", id: "opengeni" }],
1866
1881
  runtime: {
1867
1882
  available: true,
1868
- notes: `The person sets up their machine from the chat card. The Chrome browser extension (${OPENGENI_BROWSER_EXTENSION_URL}) works only after the machine is connected.`,
1883
+ notes: `The person sets up their machine from the chat card. The Chrome browser extension (${extensionUrl}) works only after the machine is connected.`,
1869
1884
  },
1870
1885
  lifecycle: {
1871
1886
  status: "available",
@@ -1882,7 +1897,7 @@ export function nativeConnectionCapabilityRecommendations(
1882
1897
  "connected_machine_enroll_token",
1883
1898
  "connected_machine_enable_screen_control",
1884
1899
  ],
1885
- browserExtensionUrl: OPENGENI_BROWSER_EXTENSION_URL,
1900
+ browserExtensionUrl: extensionUrl,
1886
1901
  recommendationOnly: true,
1887
1902
  },
1888
1903
  }),