axiom 0.31.0 → 0.31.1

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/bin.cjs CHANGED
@@ -153,6 +153,7 @@ var import_node_path = require("path");
153
153
  var import_node_fs = require("fs");
154
154
  var import_node_os = require("os");
155
155
  var import_node_path2 = __toESM(require("path"), 1);
156
+ var import_vite_tsconfig_paths = __toESM(require("vite-tsconfig-paths"), 1);
156
157
  var import_node = require("vitest/node");
157
158
 
158
159
  // src/evals/reporter.ts
@@ -331,7 +332,7 @@ var import_api4 = require("@opentelemetry/api");
331
332
  // package.json
332
333
  var package_default = {
333
334
  name: "axiom",
334
- version: "0.31.0",
335
+ version: "0.31.1",
335
336
  type: "module",
336
337
  author: "Axiom, Inc.",
337
338
  contributors: [
@@ -415,7 +416,8 @@ var package_default = {
415
416
  defu: "^6.1.4",
416
417
  handlebars: "^4.7.8",
417
418
  nanoid: "^5.1.5",
418
- open: "^10.1.0"
419
+ open: "^10.1.0",
420
+ "vite-tsconfig-paths": "^5.1.4"
419
421
  },
420
422
  peerDependencies: {
421
423
  "@opentelemetry/api": "^1.9.0",
@@ -1766,11 +1768,11 @@ function setupEvalProvider(connection) {
1766
1768
  axiomProvider = new import_sdk_trace_node.NodeTracerProvider({
1767
1769
  resource: (0, import_resources.resourceFromAttributes)({
1768
1770
  ["service.name"]: "axiom",
1769
- ["service.version"]: "0.31.0"
1771
+ ["service.version"]: "0.31.1"
1770
1772
  }),
1771
1773
  spanProcessors: [processor]
1772
1774
  });
1773
- axiomTracer = axiomProvider.getTracer("axiom", "0.31.0");
1775
+ axiomTracer = axiomProvider.getTracer("axiom", "0.31.1");
1774
1776
  }
1775
1777
  async function initInstrumentation(config) {
1776
1778
  if (initialized) {
@@ -1782,7 +1784,7 @@ async function initInstrumentation(config) {
1782
1784
  }
1783
1785
  initializationPromise = (async () => {
1784
1786
  if (!config.enabled) {
1785
- axiomTracer = import_api10.trace.getTracer("axiom", "0.31.0");
1787
+ axiomTracer = import_api10.trace.getTracer("axiom", "0.31.1");
1786
1788
  initialized = true;
1787
1789
  return;
1788
1790
  }
@@ -1898,35 +1900,41 @@ var runVitest = async (dir, opts) => {
1898
1900
  if (opts.list) {
1899
1901
  console.log(u.bgWhite(u.blackBright(" List mode ")));
1900
1902
  }
1901
- const vi = await (0, import_node.createVitest)("test", {
1902
- root: dir ? dir : process.cwd(),
1903
- mode: "test",
1904
- include: opts.include,
1905
- exclude: opts.exclude,
1906
- testNamePattern: opts.testNamePattern,
1907
- reporters: ["verbose", new AxiomReporter()],
1908
- environment: "node",
1909
- browser: void 0,
1910
- watch: opts.watch,
1911
- setupFiles: [],
1912
- // ignore user vitest.config.ts etc
1913
- name: "axiom:eval",
1914
- printConsoleTrace: true,
1915
- silent: false,
1916
- disableConsoleIntercept: true,
1917
- testTimeout: opts.config?.eval?.timeoutMs || 6e4,
1918
- globals: true,
1919
- runner: (0, import_node_path.resolve)(__dirname, "evals", "custom-runner.js"),
1920
- provide: {
1921
- baseline: opts.baseline,
1922
- debug: opts.debug,
1923
- list: opts.list,
1924
- overrides: opts.overrides,
1925
- axiomConfig: providedConfig,
1926
- runId: opts.runId,
1927
- consoleUrl: opts.consoleUrl
1903
+ const vi = await (0, import_node.createVitest)(
1904
+ "test",
1905
+ {
1906
+ root: dir ? dir : process.cwd(),
1907
+ mode: "test",
1908
+ include: opts.include,
1909
+ exclude: opts.exclude,
1910
+ testNamePattern: opts.testNamePattern,
1911
+ reporters: ["verbose", new AxiomReporter()],
1912
+ environment: "node",
1913
+ browser: void 0,
1914
+ watch: opts.watch,
1915
+ setupFiles: [],
1916
+ // ignore user vitest.config.ts etc
1917
+ name: "axiom:eval",
1918
+ printConsoleTrace: true,
1919
+ silent: false,
1920
+ disableConsoleIntercept: true,
1921
+ testTimeout: opts.config?.eval?.timeoutMs || 6e4,
1922
+ globals: true,
1923
+ runner: (0, import_node_path.resolve)(__dirname, "evals", "custom-runner.js"),
1924
+ provide: {
1925
+ baseline: opts.baseline,
1926
+ debug: opts.debug,
1927
+ list: opts.list,
1928
+ overrides: opts.overrides,
1929
+ axiomConfig: providedConfig,
1930
+ runId: opts.runId,
1931
+ consoleUrl: opts.consoleUrl
1932
+ }
1933
+ },
1934
+ {
1935
+ plugins: [(0, import_vite_tsconfig_paths.default)({ root: dir || process.cwd() })]
1928
1936
  }
1929
- });
1937
+ );
1930
1938
  if (opts.list) {
1931
1939
  const result = await vi.collect();
1932
1940
  printCollectedEvals(result, dir || process.cwd());
@@ -2578,7 +2586,7 @@ var import_commander2 = require("commander");
2578
2586
  var loadVersionCommand = (program2) => {
2579
2587
  return program2.addCommand(
2580
2588
  new import_commander2.Command("version").description("cli version").action(() => {
2581
- console.log("0.31.0");
2589
+ console.log("0.31.1");
2582
2590
  })
2583
2591
  );
2584
2592
  };
@@ -2588,7 +2596,7 @@ var { loadEnvConfig } = import_env.default;
2588
2596
  loadEnvConfig(process.cwd());
2589
2597
  var { cleanedArgv, overrides } = extractOverrides(process.argv.slice(2));
2590
2598
  var program = new import_commander3.Command();
2591
- program.name("axiom").description("Axiom's CLI to manage your objects and run evals").version("0.31.0");
2599
+ program.name("axiom").description("Axiom's CLI to manage your objects and run evals").version("0.31.1");
2592
2600
  program.hook("preAction", async (_, actionCommand) => {
2593
2601
  const commandName = actionCommand.name();
2594
2602
  const parentCommand = actionCommand.parent;