@hasna/wallets 0.1.7 → 0.1.9
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/README.md +21 -2
- package/dist/cli/index.js +14309 -6428
- package/dist/db/agents.d.ts +2 -2
- package/dist/db/agents.d.ts.map +1 -1
- package/dist/db/audit.d.ts +31 -0
- package/dist/db/audit.d.ts.map +1 -0
- package/dist/db/cards.d.ts +5 -2
- package/dist/db/cards.d.ts.map +1 -1
- package/dist/db/database.d.ts +2 -1
- package/dist/db/database.d.ts.map +1 -1
- package/dist/db/pg-migrations.d.ts.map +1 -1
- package/dist/db/providers.d.ts +3 -3
- package/dist/db/providers.d.ts.map +1 -1
- package/dist/db/transactions.d.ts +2 -2
- package/dist/db/transactions.d.ts.map +1 -1
- package/dist/index.d.ts +12 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9499 -3670
- package/dist/lib/cache.d.ts +3 -0
- package/dist/lib/cache.d.ts.map +1 -0
- package/dist/lib/config.d.ts +12 -5
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/doctor.d.ts +2 -2
- package/dist/lib/doctor.d.ts.map +1 -1
- package/dist/lib/format.d.ts +11 -2
- package/dist/lib/format.d.ts.map +1 -1
- package/dist/lib/logger.d.ts +25 -0
- package/dist/lib/logger.d.ts.map +1 -0
- package/dist/mcp/index.js +11903 -9006
- package/dist/providers/agentcard.d.ts +8 -1
- package/dist/providers/agentcard.d.ts.map +1 -1
- package/dist/providers/index.d.ts +6 -5
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/registry.d.ts +1 -1
- package/dist/providers/registry.d.ts.map +1 -1
- package/dist/types/index.d.ts +17 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +79 -73
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/lib/cache.ts"],"names":[],"mappings":"AAOA,wBAAgB,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,CAQpE;AAED,wBAAgB,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAQhD"}
|
package/dist/lib/config.d.ts
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const WalletsConfigSchema: z.ZodObject<{
|
|
3
|
+
default_provider: z.ZodOptional<z.ZodString>;
|
|
4
|
+
default_currency: z.ZodOptional<z.ZodString>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
default_provider?: string | undefined;
|
|
7
|
+
default_currency?: string | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
default_provider?: string | undefined;
|
|
10
|
+
default_currency?: string | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
export type WalletsConfig = z.infer<typeof WalletsConfigSchema>;
|
|
6
13
|
export declare function getConfigDir(): string;
|
|
7
14
|
export declare function getConfigPath(): string;
|
|
8
15
|
export declare function loadConfig(): WalletsConfig;
|
package/dist/lib/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB;;;;;;;;;EAG9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAkChE,wBAAgB,YAAY,IAAI,MAAM,CAarC;AAED,wBAAgB,aAAa,IAAI,MAAM,CAEtC;AAED,wBAAgB,UAAU,IAAI,aAAa,CAQ1C;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAUtD;AAED,wBAAgB,iBAAiB,CAChC,YAAY,EAAE,MAAM,GAClB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAGrC;AAED,wBAAgB,iBAAiB,CAChC,YAAY,EAAE,MAAM,EACpB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACrC,IAAI,CAIN;AAED,wBAAgB,oBAAoB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAI/D"}
|
package/dist/lib/doctor.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { DoctorResult } from
|
|
2
|
-
export declare function runDoctor(): DoctorResult;
|
|
1
|
+
import type { DoctorResult } from '../types/index.js';
|
|
2
|
+
export declare function runDoctor(fix?: boolean): DoctorResult;
|
|
3
3
|
//# sourceMappingURL=doctor.d.ts.map
|
package/dist/lib/doctor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/lib/doctor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/lib/doctor.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAe,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAQnE,wBAAgB,SAAS,CAAC,GAAG,UAAQ,GAAG,YAAY,CAiJnD"}
|
package/dist/lib/format.d.ts
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
|
-
import type { Card, Provider, Transaction
|
|
1
|
+
import type { Card, DoctorCheck, Provider, Transaction } from '../types/index.js';
|
|
2
2
|
export declare function formatCard(card: Card): string;
|
|
3
3
|
export declare function formatProvider(provider: Provider): string;
|
|
4
4
|
export declare function formatTransaction(tx: Transaction): string;
|
|
5
5
|
export declare function formatDoctorCheck(check: DoctorCheck): string;
|
|
6
|
-
export declare function formatError(error: unknown): string;
|
|
6
|
+
export declare function formatError(error: unknown, includeStack?: boolean): string;
|
|
7
|
+
export interface StructuredError {
|
|
8
|
+
timestamp: string;
|
|
9
|
+
type: string;
|
|
10
|
+
code: string;
|
|
11
|
+
message: string;
|
|
12
|
+
suggestion?: string;
|
|
13
|
+
stack?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function formatErrorStructured(error: unknown, includeStack?: boolean): StructuredError;
|
|
7
16
|
//# sourceMappingURL=format.d.ts.map
|
package/dist/lib/format.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/lib/format.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/lib/format.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,WAAW,EACX,MAAM,mBAAmB,CAAC;AAW3B,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAO7C;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEzD;AAED,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,WAAW,GAAG,MAAM,CAIzD;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAI5D;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,EAAE,YAAY,UAAQ,GAAG,MAAM,CAExE;AAED,MAAM,WAAW,eAAe;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,qBAAqB,CACpC,KAAK,EAAE,OAAO,EACd,YAAY,UAAQ,GAClB,eAAe,CAwFjB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type LogLevel = 'debug' | 'info' | 'warn' | 'error';
|
|
2
|
+
export interface LogEntry {
|
|
3
|
+
timestamp: string;
|
|
4
|
+
level: LogLevel;
|
|
5
|
+
message: string;
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
export interface Logger {
|
|
9
|
+
debug(message: string, meta?: Record<string, unknown>): void;
|
|
10
|
+
info(message: string, meta?: Record<string, unknown>): void;
|
|
11
|
+
warn(message: string, meta?: Record<string, unknown>): void;
|
|
12
|
+
error(message: string, meta?: Record<string, unknown>): void;
|
|
13
|
+
}
|
|
14
|
+
declare class ConsoleLogger implements Logger {
|
|
15
|
+
private minLevel;
|
|
16
|
+
private readonly levelPriority;
|
|
17
|
+
constructor(minLevel?: LogLevel);
|
|
18
|
+
debug(message: string, meta?: Record<string, unknown>): void;
|
|
19
|
+
info(message: string, meta?: Record<string, unknown>): void;
|
|
20
|
+
warn(message: string, meta?: Record<string, unknown>): void;
|
|
21
|
+
error(message: string, meta?: Record<string, unknown>): void;
|
|
22
|
+
}
|
|
23
|
+
export declare const logger: ConsoleLogger;
|
|
24
|
+
export { ConsoleLogger };
|
|
25
|
+
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/lib/logger.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAE3D,MAAM,WAAW,QAAQ;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,QAAQ,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,MAAM;IACtB,KAAK,CAAC,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