axiom 0.34.2 → 0.36.0

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
@@ -525,6 +525,18 @@ var init_attributes = __esm({
525
525
  }
526
526
  });
527
527
 
528
+ // src/schema.ts
529
+ var SCHEMA_VERSION, SCHEMA_BASE_URL, SCHEMA_URL;
530
+ var init_schema = __esm({
531
+ "src/schema.ts"() {
532
+ "use strict";
533
+ init_cjs_shims();
534
+ SCHEMA_VERSION = "0.0.2";
535
+ SCHEMA_BASE_URL = "https://axiom.co/ai/schemas/";
536
+ SCHEMA_URL = `${SCHEMA_BASE_URL}${SCHEMA_VERSION}`;
537
+ }
538
+ });
539
+
528
540
  // src/otel/startActiveSpan.ts
529
541
  var import_api2;
530
542
  var init_startActiveSpan = __esm({
@@ -541,7 +553,7 @@ var init_package = __esm({
541
553
  "package.json"() {
542
554
  package_default = {
543
555
  name: "axiom",
544
- version: "0.34.2",
556
+ version: "0.36.0",
545
557
  type: "module",
546
558
  author: "Axiom, Inc.",
547
559
  contributors: [
@@ -596,6 +608,16 @@ var init_package = __esm({
596
608
  types: "./dist/config.d.cts",
597
609
  default: "./dist/config.cjs"
598
610
  }
611
+ },
612
+ "./ai/feedback": {
613
+ import: {
614
+ types: "./dist/feedback.d.ts",
615
+ default: "./dist/feedback.js"
616
+ },
617
+ require: {
618
+ types: "./dist/feedback.d.cts",
619
+ default: "./dist/feedback.cjs"
620
+ }
599
621
  }
600
622
  },
601
623
  keywords: [
@@ -722,6 +744,7 @@ var init_wrapperUtils = __esm({
722
744
  init_cjs_shims();
723
745
  import_api5 = require("@opentelemetry/api");
724
746
  init_attributes();
747
+ init_schema();
725
748
  init_withSpanBaggageKey();
726
749
  init_startActiveSpan();
727
750
  init_initAxiomAI();
@@ -2419,11 +2442,11 @@ function setupEvalProvider(connection) {
2419
2442
  axiomProvider = new import_sdk_trace_node.NodeTracerProvider({
2420
2443
  resource: (0, import_resources.resourceFromAttributes)({
2421
2444
  ["service.name"]: "axiom",
2422
- ["service.version"]: "0.34.2"
2445
+ ["service.version"]: "0.36.0"
2423
2446
  }),
2424
2447
  spanProcessors: [processor]
2425
2448
  });
2426
- axiomTracer = axiomProvider.getTracer("axiom", "0.34.2");
2449
+ axiomTracer = axiomProvider.getTracer("axiom", "0.36.0");
2427
2450
  }
2428
2451
  async function initInstrumentation(config) {
2429
2452
  if (initialized) {
@@ -2435,7 +2458,7 @@ async function initInstrumentation(config) {
2435
2458
  }
2436
2459
  initializationPromise = (async () => {
2437
2460
  if (!config.enabled) {
2438
- axiomTracer = import_api10.trace.getTracer("axiom", "0.34.2");
2461
+ axiomTracer = import_api10.trace.getTracer("axiom", "0.36.0");
2439
2462
  initialized = true;
2440
2463
  return;
2441
2464
  }
@@ -3177,7 +3200,7 @@ var import_commander2 = require("commander");
3177
3200
  var loadVersionCommand = (program2) => {
3178
3201
  return program2.addCommand(
3179
3202
  new import_commander2.Command("version").description("cli version").action(() => {
3180
- console.log("0.34.2");
3203
+ console.log("0.36.0");
3181
3204
  })
3182
3205
  );
3183
3206
  };
@@ -3187,7 +3210,7 @@ var { loadEnvConfig } = import_env.default;
3187
3210
  loadEnvConfig(process.cwd());
3188
3211
  var { cleanedArgv, overrides } = extractOverrides(process.argv.slice(2));
3189
3212
  var program = new import_commander3.Command();
3190
- program.name("axiom").description("Axiom's CLI to manage your objects and run evals").version("0.34.2");
3213
+ program.name("axiom").description("Axiom's CLI to manage your objects and run evals").version("0.36.0");
3191
3214
  program.hook("preAction", async (_, actionCommand) => {
3192
3215
  const commandName = actionCommand.name();
3193
3216
  const parentCommand = actionCommand.parent;