umbrella-context 0.1.35 → 0.1.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.
package/dist/index.js CHANGED
@@ -66,7 +66,7 @@ cli.command("query [...args]", "Alias for search").action(async (args) => {
66
66
  await searchCommandAction(args.join(" "));
67
67
  });
68
68
  cli.help();
69
- cli.version("0.1.35");
69
+ cli.version("0.1.36");
70
70
  const argv = process.argv.slice(2);
71
71
  if (argv[0] === "curate" && argv[1] === "view" && argv.length === 2) {
72
72
  await curateViewCommandAction();
package/dist/umbrella.js CHANGED
@@ -24,8 +24,12 @@ function isLocalOnlyUmbrellaUrl(value) {
24
24
  }
25
25
  }
26
26
  async function requestJson(url, options) {
27
+ const parsedUrl = new URL(url);
28
+ const requestOrigin = `${parsedUrl.protocol}//${parsedUrl.host}`;
27
29
  const headers = {
28
30
  Accept: "application/json",
31
+ Origin: requestOrigin,
32
+ Referer: `${requestOrigin}/`,
29
33
  };
30
34
  if (options?.body !== undefined) {
31
35
  headers["Content-Type"] = "application/json";
@@ -42,8 +46,7 @@ async function requestJson(url, options) {
42
46
  });
43
47
  }
44
48
  catch (error) {
45
- const parsed = new URL(url);
46
- const origin = `${parsed.protocol}//${parsed.host}`;
49
+ const origin = requestOrigin;
47
50
  const localHint = isLocalOnlyUmbrellaUrl(origin)
48
51
  ? " That address only works if Umbrella is running on this same computer. If Umbrella lives on another machine, use that machine's real URL or IP instead."
49
52
  : "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umbrella-context",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "description": "Umbrella Context CLI for connecting a device to company context spaces, querying saved context, and syncing MCP access.",
5
5
  "type": "module",
6
6
  "bin": {