atabey 0.1.2 → 0.1.3
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Atabey — Local AI Control Plane & Discipline Layer (Core Engine)
|
|
2
2
|
|
|
3
|
-
[](https://github.com/ysf-bkr/atabey)
|
|
4
4
|
[](https://www.npmjs.com/package/atabey)
|
|
5
5
|
[](https://www.gnu.org/licenses/agpl-3.0)
|
|
6
6
|
|
|
@@ -384,7 +384,7 @@ async function main() {
|
|
|
384
384
|
}
|
|
385
385
|
function showHelp() {
|
|
386
386
|
process.stdout.write(`
|
|
387
|
-
[ATABEY] v${getPackageVersion()} — AI
|
|
387
|
+
[ATABEY] v${getPackageVersion()} — Local AI Control Plane & Discipline Layer
|
|
388
388
|
|
|
389
389
|
Usage:
|
|
390
390
|
atabey <command> [options]
|
|
@@ -14,11 +14,11 @@ export interface LoggerConfig {
|
|
|
14
14
|
piiWarning: boolean;
|
|
15
15
|
useStderr?: boolean;
|
|
16
16
|
}
|
|
17
|
-
export declare class
|
|
17
|
+
export declare class StructuredLogger {
|
|
18
18
|
private config;
|
|
19
19
|
private static instance;
|
|
20
20
|
private constructor();
|
|
21
|
-
static getInstance():
|
|
21
|
+
static getInstance(): StructuredLogger;
|
|
22
22
|
configure(config: Partial<LoggerConfig>): void;
|
|
23
23
|
private formatMessage;
|
|
24
24
|
private log;
|
|
@@ -28,4 +28,4 @@ export declare class EnterpriseLogger {
|
|
|
28
28
|
error(message: string, meta?: unknown): void;
|
|
29
29
|
fatal(message: string, meta?: unknown): void;
|
|
30
30
|
}
|
|
31
|
-
export declare const logger:
|
|
31
|
+
export declare const logger: StructuredLogger;
|
|
@@ -31,7 +31,7 @@ export var LogLevel;
|
|
|
31
31
|
LogLevel[LogLevel["ERROR"] = 3] = "ERROR";
|
|
32
32
|
LogLevel[LogLevel["FATAL"] = 4] = "FATAL";
|
|
33
33
|
})(LogLevel || (LogLevel = {}));
|
|
34
|
-
export class
|
|
34
|
+
export class StructuredLogger {
|
|
35
35
|
config;
|
|
36
36
|
static instance;
|
|
37
37
|
constructor() {
|
|
@@ -47,10 +47,10 @@ export class EnterpriseLogger {
|
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
static getInstance() {
|
|
50
|
-
if (!
|
|
51
|
-
|
|
50
|
+
if (!StructuredLogger.instance) {
|
|
51
|
+
StructuredLogger.instance = new StructuredLogger();
|
|
52
52
|
}
|
|
53
|
-
return
|
|
53
|
+
return StructuredLogger.instance;
|
|
54
54
|
}
|
|
55
55
|
configure(config) {
|
|
56
56
|
this.config = { ...this.config, ...config };
|
|
@@ -149,5 +149,5 @@ export class EnterpriseLogger {
|
|
|
149
149
|
this.log(LogLevel.FATAL, message, meta);
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
export const logger =
|
|
152
|
+
export const logger = StructuredLogger.getInstance();
|
|
153
153
|
//# sourceMappingURL=logger.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "atabey",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Atabey — Local AI Control Plane & Discipline Layer — Core Engine",
|
|
5
5
|
"author": "Yusuf BEKAR",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"prepublishOnly": "node ../../scripts/build-readmes.mjs && npm run build"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"atabey-shared": "^0.1.
|
|
58
|
+
"atabey-shared": "^0.1.3",
|
|
59
59
|
"better-sqlite3": "^13.0.2",
|
|
60
60
|
"chalk": "^5.6.2",
|
|
61
61
|
"js-yaml": "^4.2.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"zod": "^3.24.2"
|
|
64
64
|
},
|
|
65
65
|
"optionalDependencies": {
|
|
66
|
-
"atabey-mcp": "^0.1.
|
|
66
|
+
"atabey-mcp": "^0.1.3"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@types/better-sqlite3": "^7.6.13",
|