@adhdev/daemon-core 0.8.7 → 0.8.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/dist/index.d.ts +1 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -0
- package/dist/index.mjs.map +1 -1
- package/dist/logging/logger.d.ts +2 -0
- package/node_modules/@adhdev/session-host-core/package.json +1 -1
- package/package.json +1 -1
- package/src/index.ts +9 -1
- package/src/logging/logger.ts +8 -0
package/dist/index.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export { buildStatusSnapshot } from './status/snapshot.js';
|
|
|
46
46
|
export { normalizeManagedStatus, isManagedStatusWorking, isManagedStatusWaiting, normalizeActiveChatData } from './status/normalize.js';
|
|
47
47
|
export type { ManagedStatus } from './status/normalize.js';
|
|
48
48
|
export type { StatusSnapshotOptions, StatusSnapshot } from './status/snapshot.js';
|
|
49
|
-
export { LOG, installGlobalInterceptor, setLogLevel, getLogLevel, getRecentLogs } from './logging/logger.js';
|
|
49
|
+
export { LOG, installGlobalInterceptor, setLogLevel, getLogLevel, getRecentLogs, getDaemonLogDir, getCurrentDaemonLogPath, } from './logging/logger.js';
|
|
50
50
|
export type { ScopedLogger, LogLevel, LogEntry } from './logging/logger.js';
|
|
51
51
|
export { logCommand, getRecentCommands } from './logging/command-log.js';
|
|
52
52
|
export { DaemonCliManager } from './commands/cli-manager.js';
|
package/dist/index.js
CHANGED
|
@@ -236,6 +236,12 @@ function getLogLevel() {
|
|
|
236
236
|
function getDateStr() {
|
|
237
237
|
return (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
238
238
|
}
|
|
239
|
+
function getDaemonLogDir() {
|
|
240
|
+
return LOG_DIR;
|
|
241
|
+
}
|
|
242
|
+
function getCurrentDaemonLogPath(date = /* @__PURE__ */ new Date()) {
|
|
243
|
+
return path4.join(LOG_DIR, `daemon-${date.toISOString().slice(0, 10)}.log`);
|
|
244
|
+
}
|
|
239
245
|
function checkDateRotation() {
|
|
240
246
|
const today = getDateStr();
|
|
241
247
|
if (today !== currentDate) {
|
|
@@ -2360,6 +2366,8 @@ __export(index_exports, {
|
|
|
2360
2366
|
forwardAgentStreamsToIdeInstance: () => forwardAgentStreamsToIdeInstance,
|
|
2361
2367
|
getAIExtensions: () => getAIExtensions,
|
|
2362
2368
|
getAvailableIdeIds: () => getAvailableIdeIds,
|
|
2369
|
+
getCurrentDaemonLogPath: () => getCurrentDaemonLogPath,
|
|
2370
|
+
getDaemonLogDir: () => getDaemonLogDir,
|
|
2363
2371
|
getHostMemorySnapshot: () => getHostMemorySnapshot,
|
|
2364
2372
|
getLogLevel: () => getLogLevel,
|
|
2365
2373
|
getRecentActivity: () => getRecentActivity,
|
|
@@ -19206,6 +19214,8 @@ async function shutdownDaemonComponents(components) {
|
|
|
19206
19214
|
forwardAgentStreamsToIdeInstance,
|
|
19207
19215
|
getAIExtensions,
|
|
19208
19216
|
getAvailableIdeIds,
|
|
19217
|
+
getCurrentDaemonLogPath,
|
|
19218
|
+
getDaemonLogDir,
|
|
19209
19219
|
getHostMemorySnapshot,
|
|
19210
19220
|
getLogLevel,
|
|
19211
19221
|
getRecentActivity,
|