@theholocron/holocron-plugin-axiom 5.0.0-alpha.560 → 5.0.0-alpha.562
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 +2 -1
- package/dist/index.mjs +12 -2
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -91,13 +91,14 @@ export interface PluginContext {
|
|
|
91
91
|
export declare function createContext(options: AxiomPluginOptions): PluginContext;
|
|
92
92
|
/** Builds the `logs` capability from a plugin context. */
|
|
93
93
|
export declare function logs(ctx: PluginContext): Logs;
|
|
94
|
-
/** Creates the Axiom plugin: the `connection` and `token` probes and the `logs` capability. */
|
|
94
|
+
/** Creates the Axiom plugin: the `connection` and `token` probes, the `whoami` action and the `logs` capability. */
|
|
95
95
|
export declare function createPlugin(options: AxiomPluginOptions): {
|
|
96
96
|
name: string;
|
|
97
97
|
probes: {
|
|
98
98
|
token: import("@theholocron/cli").Probe;
|
|
99
99
|
connection: import("@theholocron/cli").Probe;
|
|
100
100
|
};
|
|
101
|
+
whoami: import("@theholocron/cli").ProviderAction;
|
|
101
102
|
capabilities: {
|
|
102
103
|
logs: () => Logs;
|
|
103
104
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthError, ProviderApiError, connectionProbe, createResolveToken, resolveValue, tokenExpectations } from "@theholocron/cli";
|
|
1
|
+
import { AuthError, ProviderApiError, connectionProbe, createResolveToken, resolveValue, tokenExpectations, whoamiAction } from "@theholocron/cli";
|
|
2
2
|
import { PREFIX, createEnvLookup, firstEnv } from "@theholocron/env-utils/lookup";
|
|
3
3
|
import { errorMessage } from "@theholocron/misc-utils";
|
|
4
4
|
import { createAxiomClient } from "@theholocron/axiom-client";
|
|
@@ -393,7 +393,7 @@ function createContext(options) {
|
|
|
393
393
|
function logs(ctx) {
|
|
394
394
|
return new AxiomLogs(ctx.client, { dataset: ctx.options.dataset });
|
|
395
395
|
}
|
|
396
|
-
/** Creates the Axiom plugin: the `connection` and `token` probes and the `logs` capability. */
|
|
396
|
+
/** Creates the Axiom plugin: the `connection` and `token` probes, the `whoami` action and the `logs` capability. */
|
|
397
397
|
function createPlugin(options) {
|
|
398
398
|
const ctx = createContext(options);
|
|
399
399
|
return {
|
|
@@ -416,6 +416,16 @@ function createPlugin(options) {
|
|
|
416
416
|
})
|
|
417
417
|
})
|
|
418
418
|
},
|
|
419
|
+
whoami: whoamiAction({
|
|
420
|
+
provider: "axiom",
|
|
421
|
+
token: () => resolveToken(options),
|
|
422
|
+
verify: (token) => verifyToken(token, {
|
|
423
|
+
baseUrl: options.baseUrl,
|
|
424
|
+
fetch: options.fetch,
|
|
425
|
+
dataset: ctx.options.dataset
|
|
426
|
+
}),
|
|
427
|
+
tokens
|
|
428
|
+
}),
|
|
419
429
|
capabilities: { logs: () => logs(ctx) }
|
|
420
430
|
};
|
|
421
431
|
}
|
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.562",
|
|
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",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"tsx": "4.23.15",
|
|
44
44
|
"typescript": "^6.0.3",
|
|
45
45
|
"vitest": "^5.1.1",
|
|
46
|
-
"@theholocron/axiom-client": "^1.58.0-alpha.
|
|
47
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
46
|
+
"@theholocron/axiom-client": "^1.58.0-alpha.62",
|
|
47
|
+
"@theholocron/cli": "5.0.0-alpha.562",
|
|
48
48
|
"@theholocron/eslint-config": "^8.9.0-alpha.24",
|
|
49
|
-
"@theholocron/http-client": "^1.58.0-alpha.
|
|
49
|
+
"@theholocron/http-client": "^1.58.0-alpha.62",
|
|
50
50
|
"@theholocron/misc-utils": "^1.17.0-alpha.8",
|
|
51
51
|
"@theholocron/tsconfig": "^8.9.0-alpha.24",
|
|
52
52
|
"@theholocron/tsdown-config": "^8.9.0-alpha.24",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@theholocron/axiom-client": "^1.43.1",
|
|
57
57
|
"@theholocron/misc-utils": "^1.16.0",
|
|
58
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
58
|
+
"@theholocron/cli": "5.0.0-alpha.562"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
61
61
|
"node": ">=22"
|