@adhdev/daemon-core 0.8.8 → 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.mjs
CHANGED
|
@@ -234,6 +234,12 @@ function getLogLevel() {
|
|
|
234
234
|
function getDateStr() {
|
|
235
235
|
return (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
236
236
|
}
|
|
237
|
+
function getDaemonLogDir() {
|
|
238
|
+
return LOG_DIR;
|
|
239
|
+
}
|
|
240
|
+
function getCurrentDaemonLogPath(date = /* @__PURE__ */ new Date()) {
|
|
241
|
+
return path4.join(LOG_DIR, `daemon-${date.toISOString().slice(0, 10)}.log`);
|
|
242
|
+
}
|
|
237
243
|
function checkDateRotation() {
|
|
238
244
|
const today = getDateStr();
|
|
239
245
|
if (today !== currentDate) {
|
|
@@ -19133,6 +19139,8 @@ export {
|
|
|
19133
19139
|
forwardAgentStreamsToIdeInstance,
|
|
19134
19140
|
getAIExtensions,
|
|
19135
19141
|
getAvailableIdeIds,
|
|
19142
|
+
getCurrentDaemonLogPath,
|
|
19143
|
+
getDaemonLogDir,
|
|
19136
19144
|
getHostMemorySnapshot,
|
|
19137
19145
|
getLogLevel,
|
|
19138
19146
|
getRecentActivity,
|