axiom 0.50.0 → 0.51.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.js +5 -5
- package/dist/{chunk-VTY5GQYG.js → chunk-63VQQCZB.js} +27 -33
- package/dist/{chunk-VTY5GQYG.js.map → chunk-63VQQCZB.js.map} +1 -1
- package/dist/{chunk-NVCZHNXV.js → chunk-72PVEOMF.js} +3 -3
- package/dist/{chunk-XMURK766.js → chunk-7PROY4ZA.js} +2 -2
- package/dist/{chunk-5DNTD6I7.js → chunk-PU64TWX4.js} +2 -2
- package/dist/{chunk-5DNTD6I7.js.map → chunk-PU64TWX4.js.map} +1 -1
- package/dist/{chunk-SGN4AMR5.js → chunk-SQJ53C2N.js} +7 -7
- package/dist/docs/README.md +2 -2
- package/dist/docs/config/README.md +1 -1
- package/dist/docs/config/functions/defineConfig.md +1 -1
- package/dist/docs/config/interfaces/AxiomConfig.md +1 -1
- package/dist/docs/config/type-aliases/AxiomEvalInstrumentationHook.md +1 -1
- package/dist/docs/evals/README.md +1 -1
- package/dist/docs/evals/classes/AxiomReporter.md +1 -1
- package/dist/docs/evals/functions/Eval.md +1 -1
- package/dist/docs/evals/interfaces/EvalBuilder.md +1 -1
- package/dist/docs/evals/interfaces/EvalContextData.md +1 -1
- package/dist/docs/evals/online/README.md +1 -1
- package/dist/docs/evals/online/functions/onlineEval.md +1 -1
- package/dist/docs/evals/online/type-aliases/OnlineEvalParams.md +1 -1
- package/dist/docs/evals/online/type-aliases/OnlineEvalScorerEntry.md +1 -1
- package/dist/docs/evals/online/type-aliases/OnlineEvalScorerInput.md +1 -1
- package/dist/docs/evals/online/type-aliases/SampledOnlineEvalScorer.md +1 -1
- package/dist/docs/evals/online/type-aliases/ScorerSampling.md +1 -1
- package/dist/docs/evals/type-aliases/Case.md +1 -1
- package/dist/docs/evals/type-aliases/Chat.md +1 -1
- package/dist/docs/evals/type-aliases/EvalParams.md +1 -1
- package/dist/docs/evals/type-aliases/EvalTask.md +1 -1
- package/dist/docs/evals/type-aliases/Evaluation.md +1 -1
- package/dist/docs/evals/type-aliases/Task.md +1 -1
- package/dist/docs/feedback/README.md +1 -1
- package/dist/docs/feedback/functions/createFeedbackClient.md +1 -1
- package/dist/docs/feedback/type-aliases/FeedbackClient.md +1 -1
- package/dist/docs/feedback/type-aliases/FeedbackConfig.md +1 -1
- package/dist/docs/feedback/type-aliases/FeedbackErrorContext.md +1 -1
- package/dist/docs/feedback/type-aliases/FeedbackEvent.md +1 -1
- package/dist/docs/feedback/type-aliases/FeedbackInput.md +1 -1
- package/dist/docs/feedback/type-aliases/FeedbackLinks.md +1 -1
- package/dist/docs/feedback/type-aliases/FeedbackSettings.md +1 -1
- package/dist/docs/feedback/type-aliases/SendFeedbackFn.md +1 -1
- package/dist/docs/feedback/variables/Feedback.md +1 -1
- package/dist/docs/index/README.md +1 -1
- package/dist/docs/index/functions/axiomAIMiddleware.md +1 -1
- package/dist/docs/index/functions/axiomAIMiddlewareV1.md +1 -1
- package/dist/docs/index/functions/axiomAIMiddlewareV2.md +1 -1
- package/dist/docs/index/functions/axiomAIMiddlewareV3.md +1 -1
- package/dist/docs/index/functions/createAppScope.md +1 -1
- package/dist/docs/index/functions/experimental_parse.md +1 -1
- package/dist/docs/index/functions/getGlobalTracer.md +1 -1
- package/dist/docs/index/functions/initAxiomAI.md +1 -1
- package/dist/docs/index/functions/resetAxiomAI.md +1 -1
- package/dist/docs/index/functions/withSpan.md +1 -1
- package/dist/docs/index/functions/wrapAISDKModel.md +1 -1
- package/dist/docs/index/functions/wrapTool.md +1 -1
- package/dist/docs/index/functions/wrapTools.md +1 -1
- package/dist/docs/index/interfaces/AxiomTelemetryConfig.md +1 -1
- package/dist/docs/index/interfaces/experimental_AxiomPromptMetadata.md +1 -1
- package/dist/docs/index/interfaces/experimental_ParsedMessage.md +1 -1
- package/dist/docs/index/type-aliases/AxiomAIRedactionPolicy.md +1 -1
- package/dist/docs/index/type-aliases/WithSpanOptions.md +1 -1
- package/dist/docs/index/type-aliases/experimental_InferContext.md +1 -1
- package/dist/docs/index/type-aliases/experimental_InferSchema.md +1 -1
- package/dist/docs/index/type-aliases/experimental_ParsedMessagesArray.md +1 -1
- package/dist/docs/index/type-aliases/experimental_Prompt.md +1 -1
- package/dist/docs/index/type-aliases/experimental_TSchema.md +1 -1
- package/dist/docs/index/variables/RedactionPolicy.md +1 -1
- package/dist/docs/index/variables/experimental_Type.md +1 -1
- package/dist/docs/index/variables/onlineEval.md +1 -1
- package/dist/docs/scorers/aggregations/README.md +1 -1
- package/dist/docs/scorers/aggregations/functions/Mean.md +1 -1
- package/dist/docs/scorers/aggregations/functions/Median.md +1 -1
- package/dist/docs/scorers/aggregations/functions/PassAtK.md +1 -1
- package/dist/docs/scorers/aggregations/functions/PassHatK.md +1 -1
- package/dist/docs/scorers/aggregations/type-aliases/Aggregation.md +1 -1
- package/dist/docs/scorers/aggregations/variables/AllTrialsPass.md +1 -1
- package/dist/docs/scorers/aggregations/variables/AtLeastOneTrialPasses.md +1 -1
- package/dist/docs/scorers/scorers/README.md +1 -1
- package/dist/docs/scorers/scorers/functions/Scorer.md +1 -1
- package/dist/docs/scorers/scorers/type-aliases/Score.md +1 -1
- package/dist/docs/scorers/scorers/type-aliases/ScoreWithName.md +1 -1
- package/dist/docs/scorers/scorers/type-aliases/ScorerLike.md +1 -1
- package/dist/docs/scorers/scorers/type-aliases/ScorerOptions.md +1 -1
- package/dist/docs/scorers/scorers/type-aliases/ScorerType.md +1 -1
- package/dist/evals/online.js +2 -2
- package/dist/evals.js +5 -5
- package/dist/evals.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/{run-vitest-V43FXTLI.js → run-vitest-SA4SZBNK.js} +11 -6
- package/dist/run-vitest-SA4SZBNK.js.map +1 -0
- package/package.json +1 -1
- package/dist/run-vitest-V43FXTLI.js.map +0 -1
- /package/dist/{chunk-NVCZHNXV.js.map → chunk-72PVEOMF.js.map} +0 -0
- /package/dist/{chunk-XMURK766.js.map → chunk-7PROY4ZA.js.map} +0 -0
- /package/dist/{chunk-SGN4AMR5.js.map → chunk-SQJ53C2N.js.map} +0 -0
package/dist/bin.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
extractOverrides,
|
|
4
4
|
loadEvalCommand
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-72PVEOMF.js";
|
|
6
6
|
import {
|
|
7
7
|
OAuth,
|
|
8
8
|
fetchOrganizations,
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
verifyToken,
|
|
16
16
|
waitForCallback
|
|
17
17
|
} from "./chunk-3VKWOZAQ.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-63VQQCZB.js";
|
|
19
19
|
import {
|
|
20
20
|
AxiomCLIError
|
|
21
21
|
} from "./chunk-ISSDOC43.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-PU64TWX4.js";
|
|
23
23
|
import "./chunk-MM5FFQJT.js";
|
|
24
24
|
import "./chunk-4TKUTT24.js";
|
|
25
25
|
import "./chunk-KEXKKQVW.js";
|
|
@@ -389,7 +389,7 @@ import { Command } from "commander";
|
|
|
389
389
|
var loadVersionCommand = (program2) => {
|
|
390
390
|
return program2.addCommand(
|
|
391
391
|
new Command("version").description("cli version").action(() => {
|
|
392
|
-
console.log("0.
|
|
392
|
+
console.log("0.51.1");
|
|
393
393
|
})
|
|
394
394
|
);
|
|
395
395
|
};
|
|
@@ -399,7 +399,7 @@ var { loadEnvConfig } = pkg;
|
|
|
399
399
|
loadEnvConfig(process.cwd());
|
|
400
400
|
var { cleanedArgv, overrides } = extractOverrides(process.argv.slice(2));
|
|
401
401
|
var program = new Command2();
|
|
402
|
-
program.name("axiom").description("Axiom's CLI to manage your objects and run evals").version("0.
|
|
402
|
+
program.name("axiom").description("Axiom's CLI to manage your objects and run evals").version("0.51.1");
|
|
403
403
|
program.hook("preAction", async (_, actionCommand) => {
|
|
404
404
|
const commandName = actionCommand.name();
|
|
405
405
|
const parentCommand = actionCommand.parent;
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getRedactionPolicy,
|
|
6
6
|
handleMaybeRedactedAttribute,
|
|
7
7
|
package_default
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PU64TWX4.js";
|
|
9
9
|
import {
|
|
10
10
|
isValidName
|
|
11
11
|
} from "./chunk-MM5FFQJT.js";
|
|
@@ -13,8 +13,7 @@ import {
|
|
|
13
13
|
Attr
|
|
14
14
|
} from "./chunk-4TKUTT24.js";
|
|
15
15
|
import {
|
|
16
|
-
__publicField
|
|
17
|
-
__require
|
|
16
|
+
__publicField
|
|
18
17
|
} from "./chunk-KEXKKQVW.js";
|
|
19
18
|
|
|
20
19
|
// src/otel/withSpan.ts
|
|
@@ -2049,49 +2048,48 @@ function getGlobalFlagOverrides() {
|
|
|
2049
2048
|
import { trace as trace3 } from "@opentelemetry/api";
|
|
2050
2049
|
|
|
2051
2050
|
// src/evals/context/manager.ts
|
|
2052
|
-
import { createRequire } from "module";
|
|
2053
|
-
import { join } from "path";
|
|
2054
2051
|
var CONTEXT_MANAGER_SYMBOL = Symbol.for("axiom.context_manager");
|
|
2052
|
+
var globalScope = globalThis;
|
|
2055
2053
|
function getGlobalContextManager() {
|
|
2056
|
-
return
|
|
2054
|
+
return globalScope[CONTEXT_MANAGER_SYMBOL];
|
|
2057
2055
|
}
|
|
2058
2056
|
function setGlobalContextManager(manager) {
|
|
2059
|
-
|
|
2057
|
+
globalScope[CONTEXT_MANAGER_SYMBOL] = manager;
|
|
2060
2058
|
}
|
|
2061
|
-
var
|
|
2062
|
-
function
|
|
2063
|
-
|
|
2064
|
-
|
|
2059
|
+
var isBrowser = typeof window !== "undefined";
|
|
2060
|
+
function getAsyncLocalStorageConstructor() {
|
|
2061
|
+
const processWithBuiltinModule = globalScope.process;
|
|
2062
|
+
if (!processWithBuiltinModule || typeof processWithBuiltinModule.getBuiltinModule !== "function") {
|
|
2063
|
+
return void 0;
|
|
2064
|
+
}
|
|
2065
|
+
try {
|
|
2066
|
+
const asyncHooksModule = processWithBuiltinModule.getBuiltinModule("node:async_hooks") ?? processWithBuiltinModule.getBuiltinModule("async_hooks");
|
|
2067
|
+
return asyncHooksModule?.AsyncLocalStorage;
|
|
2068
|
+
} catch {
|
|
2069
|
+
return void 0;
|
|
2065
2070
|
}
|
|
2066
|
-
return createRequire(join(process.cwd(), "__axiom_require__.js"));
|
|
2067
2071
|
}
|
|
2068
2072
|
function getContextManager() {
|
|
2069
2073
|
const existing = getGlobalContextManager();
|
|
2070
2074
|
if (existing) return existing;
|
|
2071
2075
|
let manager;
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
}
|
|
2081
|
-
manager = new AsyncLocalStorage();
|
|
2082
|
-
} catch (error) {
|
|
2076
|
+
try {
|
|
2077
|
+
const AsyncLocalStorage = getAsyncLocalStorageConstructor();
|
|
2078
|
+
if (!AsyncLocalStorage) {
|
|
2079
|
+
throw new Error("Unable to resolve AsyncLocalStorage");
|
|
2080
|
+
}
|
|
2081
|
+
manager = new AsyncLocalStorage();
|
|
2082
|
+
} catch (error) {
|
|
2083
|
+
if (!isBrowser) {
|
|
2083
2084
|
console.warn("AsyncLocalStorage not available, using fallback context manager:", error);
|
|
2084
|
-
manager = createFallbackManager();
|
|
2085
2085
|
}
|
|
2086
|
-
} else {
|
|
2087
|
-
console.warn("AsyncLocalStorage not available, using fallback context manager");
|
|
2088
2086
|
manager = createFallbackManager();
|
|
2089
2087
|
}
|
|
2090
2088
|
setGlobalContextManager(manager);
|
|
2091
2089
|
return manager;
|
|
2092
2090
|
}
|
|
2093
2091
|
function createFallbackManager() {
|
|
2094
|
-
let currentContext
|
|
2092
|
+
let currentContext;
|
|
2095
2093
|
return {
|
|
2096
2094
|
getStore: () => currentContext,
|
|
2097
2095
|
run: (value, fn) => {
|
|
@@ -2108,11 +2106,7 @@ function createFallbackManager() {
|
|
|
2108
2106
|
function createAsyncHook(_name) {
|
|
2109
2107
|
return {
|
|
2110
2108
|
get() {
|
|
2111
|
-
|
|
2112
|
-
if (manager.getStore) {
|
|
2113
|
-
return manager.getStore();
|
|
2114
|
-
}
|
|
2115
|
-
return void 0;
|
|
2109
|
+
return getContextManager().getStore();
|
|
2116
2110
|
},
|
|
2117
2111
|
run(value, fn) {
|
|
2118
2112
|
const manager = getContextManager();
|
|
@@ -3146,4 +3140,4 @@ export {
|
|
|
3146
3140
|
withEvalContext,
|
|
3147
3141
|
getConfigScope
|
|
3148
3142
|
};
|
|
3149
|
-
//# sourceMappingURL=chunk-
|
|
3143
|
+
//# sourceMappingURL=chunk-63VQQCZB.js.map
|