@lore-co/core 0.2.35 → 0.2.36

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.
@@ -0,0 +1,4 @@
1
+ export declare const HOSTED_LORE_DASHBOARD_URL = "https://app.uselore.co";
2
+ /** Read a saved dashboard URL, moving the previous hosted address to the current one. */
3
+ export declare function currentDashboardUrl(dashboardUrl: string): string;
4
+ //# sourceMappingURL=dashboard-url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard-url.d.ts","sourceRoot":"","sources":["../src/dashboard-url.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,2BAA2B,CAAC;AAIlE,yFAAyF;AACzF,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAEhE"}
@@ -0,0 +1,8 @@
1
+ export const HOSTED_LORE_DASHBOARD_URL = "https://app.uselore.co";
2
+ // Hosted Lore served its dashboard at uselore.co through v0.2.34, and connector configs saved then still name it.
3
+ const PREVIOUS_HOSTED_LORE_DASHBOARD_URL = "https://uselore.co";
4
+ /** Read a saved dashboard URL, moving the previous hosted address to the current one. */
5
+ export function currentDashboardUrl(dashboardUrl) {
6
+ return dashboardUrl.replace(/\/+$/u, "") === PREVIOUS_HOSTED_LORE_DASHBOARD_URL ? HOSTED_LORE_DASHBOARD_URL : dashboardUrl;
7
+ }
8
+ //# sourceMappingURL=dashboard-url.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard-url.js","sourceRoot":"","sources":["../src/dashboard-url.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,yBAAyB,GAAG,wBAAwB,CAAC;AAClE,kHAAkH;AAClH,MAAM,kCAAkC,GAAG,oBAAoB,CAAC;AAEhE,yFAAyF;AACzF,MAAM,UAAU,mBAAmB,CAAC,YAAoB;IACtD,OAAO,YAAY,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,KAAK,kCAAkC,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,YAAY,CAAC;AAC7H,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lore-co/core",
3
- "version": "0.2.35",
3
+ "version": "0.2.36",
4
4
  "description": "Schemas and primitives for auditable Lore engineering memory",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -70,6 +70,10 @@
70
70
  "types": "./dist/guard-evaluation.d.ts",
71
71
  "import": "./dist/guard-evaluation.js"
72
72
  },
73
+ "./dashboard-url": {
74
+ "types": "./dist/dashboard-url.d.ts",
75
+ "import": "./dist/dashboard-url.js"
76
+ },
73
77
  "./learning-line": {
74
78
  "types": "./dist/learning-line.d.ts",
75
79
  "import": "./dist/learning-line.js"