@quatronic/qore 0.1.10-test.e516d28 → 0.1.11

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 (3) hide show
  1. package/README.md +2 -2
  2. package/dist/cli.js +13 -8
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -35,8 +35,8 @@ qore logs --env stag --level error # error logs
35
35
 
36
36
  ### Portals
37
37
 
38
- `qore` talks to `prod` by default. Pass `--portal staging` to use the
39
- staging portal, or `--portal https://your-portal.example` for anything
38
+ `qore` talks to `prod` by default. Pass `--portal staging` or
39
+ `--portal testing` to use those portals, or `--portal https://your-portal.example` for anything
40
40
  else (only accepted on `qore login`, which then pins the identity provider
41
41
  it reports).
42
42
 
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a630193d-4b81-5884-9df2-1b5ead3fd140")}catch(e){}}();
3
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4c637a92-95e0-5450-9f49-88102f791edc")}catch(e){}}();
4
4
  import { createRequire as __qoreCreateRequire } from "node:module"; const require = __qoreCreateRequire(import.meta.url);
5
5
  import {
6
6
  addSecretValues,
@@ -450,7 +450,7 @@ async function withProxyHint(deps2, e) {
450
450
  return proxy ? withSystemProxy(e, proxy, deps2.platform) : e;
451
451
  }
452
452
  function buildProgram(deps2, io2, signal, register, setExitCode) {
453
- const program = new Command("qore").description("Qore developer CLI").option("--portal <name|url>", "prod, staging, or a portal URL (default: the portal you last logged in to, else prod)").option("--json", "print exactly one JSON document on stdout").option("--no-input", "never prompt").option("--verbose", "log request lines (never secrets)").option("--no-color", "disable colours").exitOverride().configureOutput({ writeOut: (s) => io2.out(s.trimEnd()), writeErr: (s) => io2.err(s.trimEnd()) });
453
+ const program = new Command("qore").description("Qore developer CLI").option("--portal <name|url>", "prod, staging, testing, or a portal URL (default: the portal you last logged in to, else prod)").option("--json", "print exactly one JSON document on stdout").option("--no-input", "never prompt").option("--verbose", "log request lines (never secrets)").option("--no-color", "disable colours").exitOverride().configureOutput({ writeOut: (s) => io2.out(s.trimEnd()), writeErr: (s) => io2.err(s.trimEnd()) });
454
454
  const ctx = { deps: deps2, io: io2, signal, opts: () => program.opts(), setExitCode };
455
455
  for (const r of register) r(program, ctx);
456
456
  return program;
@@ -609,6 +609,10 @@ var BUILTIN_PORTALS = {
609
609
  staging: {
610
610
  apiOrigin: "https://p01--portal-api-staging--hcywmtb2vksv.code.run",
611
611
  pinnedIssuer: "https://auth-staging.quatronic.app/realms/platform-staging"
612
+ },
613
+ testing: {
614
+ apiOrigin: "https://api.qore-testing.quatronic.app",
615
+ pinnedIssuer: "https://auth-testing.quatronic.app/realms/platform-testing"
612
616
  }
613
617
  };
614
618
  function builtinFor(origin) {
@@ -623,7 +627,7 @@ function toOrigin(raw) {
623
627
  url = new URL(raw);
624
628
  } catch {
625
629
  throw new QoreError("QORE_CONTEXT_INVALID", `Not a portal name or URL: ${raw}`, {
626
- hint: "Use --portal prod, --portal staging or --portal https://\u2026"
630
+ hint: "Use --portal prod, --portal staging, --portal testing or --portal https://\u2026"
627
631
  });
628
632
  }
629
633
  const loopback = url.hostname === "localhost" || url.hostname === "127.0.0.1";
@@ -636,6 +640,7 @@ function resolvePortal(arg, defaultProfile) {
636
640
  const chosen = arg ?? defaultProfile;
637
641
  if (chosen === void 0 || chosen === "prod") return { ...BUILTIN_PORTALS.prod, builtin: "prod" };
638
642
  if (chosen === "staging") return { ...BUILTIN_PORTALS.staging, builtin: "staging" };
643
+ if (chosen === "testing") return { ...BUILTIN_PORTALS.testing, builtin: "testing" };
639
644
  const origin = toOrigin(chosen);
640
645
  return builtinFor(origin) ?? { apiOrigin: origin, pinnedIssuer: null, builtin: null };
641
646
  }
@@ -1990,7 +1995,7 @@ async function workspaceRoot(deps2) {
1990
1995
  }
1991
1996
  function profileOrder(cfg, cachedOrigins, portalArg, wsPortal) {
1992
1997
  if (portalArg) return [resolvePortal(portalArg, cfg.defaultProfile)];
1993
- const rank = (o) => o === BUILTIN_PORTALS.prod.apiOrigin ? 0 : o === BUILTIN_PORTALS.staging.apiOrigin ? 1 : 2;
1998
+ const rank = (o) => o === BUILTIN_PORTALS.prod.apiOrigin ? 0 : o === BUILTIN_PORTALS.staging.apiOrigin ? 1 : o === BUILTIN_PORTALS.testing.apiOrigin ? 2 : 3;
1994
1999
  const rest = Object.keys(cfg.profiles).sort((a, b) => rank(a) - rank(b) || a.localeCompare(b));
1995
2000
  const cached2 = cachedOrigins.filter((c) => cfg.profiles[c]);
1996
2001
  const origins = [...wsPortal ? [wsPortal.apiOrigin] : [], ...cached2, resolvePortal(void 0, cfg.defaultProfile).apiOrigin, ...rest];
@@ -5554,7 +5559,7 @@ async function checkRepoNode(deps2, m, recipe, pkg, signal, ms2) {
5554
5559
  return ok(`Node ${found ?? "?"} (engines ${pkg.engines.node})`);
5555
5560
  }
5556
5561
  async function loggedInPortals(deps2, profiles) {
5557
- const rank = (o) => o === BUILTIN_PORTALS.prod.apiOrigin ? 0 : o === BUILTIN_PORTALS.staging.apiOrigin ? 1 : 2;
5562
+ const rank = (o) => o === BUILTIN_PORTALS.prod.apiOrigin ? 0 : o === BUILTIN_PORTALS.staging.apiOrigin ? 1 : o === BUILTIN_PORTALS.testing.apiOrigin ? 2 : 3;
5558
5563
  const out = [];
5559
5564
  for (const origin of Object.keys(profiles).sort((a, b) => rank(a) - rank(b) || a.localeCompare(b))) {
5560
5565
  const p = profiles[origin];
@@ -7957,7 +7962,7 @@ async function connectPostgres(url, o) {
7957
7962
 
7958
7963
  // src/buildInfo.ts
7959
7964
  var SENTRY_DSN = true ? "https://50b592efb53dbc1a31cb10d3945c6d52@o4512129906049024.ingest.de.sentry.io/4512174341750864" : "";
7960
- var SENTRY_ENVIRONMENT = false ? "production" : "development";
7965
+ var SENTRY_ENVIRONMENT = true ? "production" : "development";
7961
7966
 
7962
7967
  // src/platform/proxy.ts
7963
7968
  import { execFile as execFile3 } from "child_process";
@@ -8021,7 +8026,7 @@ function systemProxy(platform = process.platform) {
8021
8026
  }
8022
8027
 
8023
8028
  // src/version.ts
8024
- var VERSION = true ? "0.1.10-test.e516d28" : "0.0.0-dev";
8029
+ var VERSION = true ? "0.1.11" : "0.0.0-dev";
8025
8030
 
8026
8031
  // src/cli.ts
8027
8032
  if (process.env.HTTPS_PROXY || process.env.https_proxy || process.env.HTTP_PROXY) setGlobalDispatcher(new EnvHttpProxyAgent());
@@ -8101,4 +8106,4 @@ if (!drained) {
8101
8106
  process.exit();
8102
8107
  }
8103
8108
  //# sourceMappingURL=cli.js.map
8104
- //# debugId=a630193d-4b81-5884-9df2-1b5ead3fd140
8109
+ //# debugId=4c637a92-95e0-5450-9f49-88102f791edc
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quatronic/qore",
3
- "version": "0.1.10-test.e516d28",
3
+ "version": "0.1.11",
4
4
  "description": "Qore developer CLI",
5
5
  "type": "module",
6
6
  "bin": {