opencode-logger 0.2.1 → 0.2.2
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.map +1 -1
- package/dist/index.js +0 -3
- package/package.json +1 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAS,MAAM,qBAAqB,CAAC;AAIzD;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAS,MAAM,qBAAqB,CAAC;AAIzD;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,EAAE,MAe1B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -8,9 +8,6 @@ import { FileLogger } from "./file-logger.js";
|
|
|
8
8
|
* @returns A promise that resolves to the plugin hooks configuration.
|
|
9
9
|
*/
|
|
10
10
|
export const loggerPlugin = async (ctx) => {
|
|
11
|
-
// ctx.directory is the project root in the context of the running plugin usually,
|
|
12
|
-
// but let's be safe and check if we need to resolve it.
|
|
13
|
-
// Based on the docs: directory: The current working directory.
|
|
14
11
|
const logger = new FileLogger(ctx.directory, ctx);
|
|
15
12
|
await logger.init();
|
|
16
13
|
console.log("[Opencode Logger] Plugin initialized!");
|