@oxagen/cli 2.1.4-541 → 2.1.4-548

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 (2) hide show
  1. package/oxagen.mjs +16 -2
  2. package/package.json +1 -1
package/oxagen.mjs CHANGED
@@ -23825,7 +23825,7 @@ import { readFileSync as readFileSync11 } from "node:fs";
23825
23825
  import { dirname as dirname9, resolve as resolve3 } from "node:path";
23826
23826
  import { fileURLToPath } from "node:url";
23827
23827
  function readVersion() {
23828
- if (true) return "2.1.4-541";
23828
+ if (true) return "2.1.4-548";
23829
23829
  try {
23830
23830
  const here = dirname9(fileURLToPath(import.meta.url));
23831
23831
  const pkg = JSON.parse(
@@ -27949,6 +27949,16 @@ function ceilingLines(ceiling) {
27949
27949
  );
27950
27950
  return lines;
27951
27951
  }
27952
+ function routingWarning(gateway, entry2) {
27953
+ if (gateway?.listening !== true) return void 0;
27954
+ if (entry2.ours && entry2.shadowedBy === void 0) return void 0;
27955
+ const lead = `Warning ${entry2.harness} model calls bypass the proxy, so Oxagen does not record them or enforce budget and model limits on them.`;
27956
+ if (entry2.shadowedBy !== void 0)
27957
+ return `${lead} ${entry2.shadowedBy.file} sets ${entry2.key} and overrides the enrolled value. Remove ${entry2.key} from that file, then run \`oxagen agent enroll\`.`;
27958
+ if (entry2.leftAlone !== void 0)
27959
+ return `${lead} ${entry2.leftAlone}. Change that file, then run \`oxagen agent enroll\`.`;
27960
+ return `${lead} Run \`oxagen agent enroll\` to route them through the proxy.`;
27961
+ }
27952
27962
  function printStatus(report, deps) {
27953
27963
  const h = report.host;
27954
27964
  if (h === void 0) {
@@ -27994,6 +28004,10 @@ function printStatus(report, deps) {
27994
28004
  ` ${entry2.harness}: env.ENABLE_TOOL_SEARCH is ${entry2.toolSearch.current === null ? "not set" : JSON.stringify(entry2.toolSearch.current)}, so every request carries the whole MCP tool catalog and a large one overflows the context (run \`oxagen agent enroll\` to set it)`
27995
28005
  );
27996
28006
  }
28007
+ for (const entry2 of modelBaseUrls ?? []) {
28008
+ const warning = routingWarning(gateway, entry2);
28009
+ if (warning !== void 0) deps.out(warning);
28010
+ }
27997
28011
  for (const entry2 of modelCredentials ?? [])
27998
28012
  deps.out(`Credential ${describeHarness(entry2)}`);
27999
28013
  for (const harness of h.harnesses)
@@ -53752,7 +53766,7 @@ var init_package = __esm({
53752
53766
  "package.json"() {
53753
53767
  package_default = {
53754
53768
  name: "@oxagen/cli",
53755
- version: "2.1.4-541",
53769
+ version: "2.1.4-548",
53756
53770
  description: "Oxagen governance CLI \u2014 spend, lineage, grounding, credentials, and audit (agentic coding lives in the stella CLI)",
53757
53771
  type: "module",
53758
53772
  main: "./dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxagen/cli",
3
- "version": "2.1.4-541",
3
+ "version": "2.1.4-548",
4
4
  "description": "Oxagen governance CLI — spend, lineage, grounding, credentials, and audit (agentic coding lives in the stella CLI)",
5
5
  "type": "module",
6
6
  "bin": {