@theholocron/holocron-plugin-axiom 5.0.0-alpha.230 → 5.0.0-alpha.232
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/index.d.mts +3 -0
- package/dist/index.mjs +11 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -65,6 +65,9 @@ declare function createContext(options: AxiomPluginOptions): PluginContext;
|
|
|
65
65
|
declare function logs(ctx: PluginContext): Logs;
|
|
66
66
|
declare function createPlugin(options: AxiomPluginOptions): {
|
|
67
67
|
name: string;
|
|
68
|
+
probes: {
|
|
69
|
+
connection: import("@theholocron/cli").Probe;
|
|
70
|
+
};
|
|
68
71
|
capabilities: {
|
|
69
72
|
logs: () => Logs;
|
|
70
73
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthError, ProviderApiError, createResolveToken } from "@theholocron/cli";
|
|
1
|
+
import { AuthError, ProviderApiError, connectionProbe, createResolveToken } from "@theholocron/cli";
|
|
2
2
|
import { createAxiomClient } from "@theholocron/axiom-client";
|
|
3
3
|
import { errorMessage } from "@theholocron/misc-utils";
|
|
4
4
|
//#region src/auth.ts
|
|
@@ -98,6 +98,16 @@ function createPlugin(options) {
|
|
|
98
98
|
const ctx = createContext(options);
|
|
99
99
|
return {
|
|
100
100
|
name: "@theholocron/holocron-plugin-axiom",
|
|
101
|
+
probes: { connection: connectionProbe({
|
|
102
|
+
provider: "Axiom",
|
|
103
|
+
url: options.baseUrl ?? "https://api.axiom.co",
|
|
104
|
+
fetch: options.fetch,
|
|
105
|
+
token: () => resolveToken(options),
|
|
106
|
+
verify: (token) => verifyToken(token, {
|
|
107
|
+
baseUrl: options.baseUrl,
|
|
108
|
+
fetch: options.fetch
|
|
109
|
+
})
|
|
110
|
+
}) },
|
|
101
111
|
capabilities: { logs: () => logs(ctx) }
|
|
102
112
|
};
|
|
103
113
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/holocron-plugin-axiom",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.232",
|
|
4
4
|
"description": "Holocron plugin for Axiom. Implements the logs capability against Axiom's REST API — dataset provisioning and connectivity checks, plus verifyToken + AUTH_HINT for `holocron auth`.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"axiom",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"tsx": "4.23.15",
|
|
48
48
|
"typescript": "^5.9.3",
|
|
49
49
|
"vitest": "^4.1.11",
|
|
50
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
50
|
+
"@theholocron/cli": "5.0.0-alpha.232"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@theholocron/axiom-client": "^1.43.1",
|
|
54
54
|
"@theholocron/misc-utils": "^1.16.0",
|
|
55
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
55
|
+
"@theholocron/cli": "5.0.0-alpha.232"
|
|
56
56
|
},
|
|
57
57
|
"engines": {
|
|
58
58
|
"node": ">=22"
|