@nurix/nustack 0.19.1 → 0.19.3

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.
@@ -4,7 +4,7 @@ import { DEVICE_HEADER, envToken, knownDeviceId, refreshAccessTokenAfterRefusal,
4
4
  import { getOrCreateDeviceId } from "./device_identity.js";
5
5
  const DEFAULT_NUSTACK_URL = "https://apps.nustack.ai";
6
6
  const REQUEST_TIMEOUT_MS = 10_000;
7
- async function authorizedFetch(input, init = {}) {
7
+ export async function authorizedFetch(input, init = {}) {
8
8
  const headers = new Headers(init.headers);
9
9
  headers.set(DEVICE_HEADER, knownDeviceId() ?? (await getOrCreateDeviceId()));
10
10
  headers.set("User-Agent", userAgent());
@@ -24,7 +24,7 @@ function isStreamBody(body) {
24
24
  return body != null && typeof body !== "string" && !(body instanceof ArrayBuffer) && !ArrayBuffer.isView(body) && !(body instanceof URLSearchParams);
25
25
  }
26
26
  const KEYS_PLANE = "the credential plane (/api/v1/keys)";
27
- function errorMessage(payload, status, label, plane) {
27
+ export function errorMessage(payload, status, label, plane) {
28
28
  if (plane && status === 404 && typeof payload?.error === "string") {
29
29
  return `${label}: this NuStack deployment does not serve ${plane} — the server half of this command is not deployed, so it cannot succeed against this host.`;
30
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nurix/nustack",
3
- "version": "0.19.1",
3
+ "version": "0.19.3",
4
4
  "description": "The nustack CLI — bootstrap NuStack services into a repo via the NuStack discovery plane.",
5
5
  "type": "module",
6
6
  "private": false,
@@ -35,8 +35,8 @@
35
35
  "@types/node": "^22.19.20",
36
36
  "typescript": "^5.7.2",
37
37
  "vitest": "^4.1.11",
38
- "@nurix/nustack.studio": "0.0.0",
39
- "@nurix/nustack.ui": "0.0.0"
38
+ "@nurix/nustack.ui": "0.0.0",
39
+ "@nurix/nustack.studio": "0.0.0"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"