opencode-logger 0.3.1 → 0.3.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/biome.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
3
+ "linter": {
4
+ "rules": {
5
+ "complexity": {
6
+ "useLiteralKeys": "off"
7
+ }
8
+ }
9
+ }
10
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"file-logger.d.ts","sourceRoot":"","sources":["../src/file-logger.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGvD;;GAEG;AACH,MAAM,WAAW,QAAQ;IACxB,qDAAqD;IACrD,SAAS,EAAE,MAAM,CAAC;IAClB,uFAAuF;IACvF,SAAS,EAAE,MAAM,CAAC;IAClB,kDAAkD;IAClD,OAAO,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,qBAAa,UAAU;IACtB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,WAAW,CAAc;IAEjC;;;;OAIG;gBACS,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW;IAQzD,OAAO,CAAC,mBAAmB;IAY3B,OAAO,CAAC,cAAc;IAKtB;;;OAGG;IACG,IAAI;IASV;;;;OAIG;IACG,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO;CAwB7C"}
1
+ {"version":3,"file":"file-logger.d.ts","sourceRoot":"","sources":["../src/file-logger.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGvD;;GAEG;AACH,MAAM,WAAW,QAAQ;IACxB,qDAAqD;IACrD,SAAS,EAAE,MAAM,CAAC;IAClB,uFAAuF;IACvF,SAAS,EAAE,MAAM,CAAC;IAClB,kDAAkD;IAClD,OAAO,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,qBAAa,UAAU;IACtB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,WAAW,CAAc;IAEjC;;;;OAIG;gBACS,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW;IAQzD,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,cAAc;IAItB;;;OAGG;IACG,IAAI;IASV;;;;OAIG;IACG,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO;CAwB7C"}
@@ -19,9 +19,7 @@ export class FileLogger {
19
19
  this.pluginInput = pluginInput;
20
20
  }
21
21
  resolveLogDirectory(projectRoot) {
22
- const logDir =
23
- // biome-ignore lint/complexity/useLiteralKeys: process.env access
24
- process.env["OPENCODE_LOGGER_DIR"] ||
22
+ const logDir = process.env["OPENCODE_LOGGER_DIR"] ||
25
23
  join(projectRoot, DEFAULT_LOG_DIRECTORY);
26
24
  // If logDir is absolute, use it directly. Otherwise, resolve it relative to projectRoot
27
25
  // Note: The default join(projectRoot, DEFAULT_LOG_DIRECTORY) above already handles the relative default case,
@@ -29,7 +27,6 @@ export class FileLogger {
29
27
  return isAbsolute(logDir) ? logDir : resolve(projectRoot, logDir);
30
28
  }
31
29
  getLogFilename() {
32
- // biome-ignore lint/complexity/useLiteralKeys: process.env access
33
30
  return process.env["OPENCODE_LOGGER_FILENAME"] || DEFAULT_LOG_FILENAME;
34
31
  }
35
32
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAS,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAKzD;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,EAAE,MAmB1B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAS,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAKzD;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,EAAE,MAkB1B,CAAC"}
package/dist/index.js CHANGED
@@ -15,7 +15,6 @@ export const loggerPlugin = async (ctx) => {
15
15
  const hooks = {
16
16
  event: async ({ event }) => {
17
17
  if (SUPPORTED_EVENTS.includes(event.type) &&
18
- // biome-ignore lint/complexity/useLiteralKeys: process.env access
19
18
  shouldLogEvent(event.type, process.env["OPENCODE_LOGGER_SCOPE"])) {
20
19
  await logger.log(event.type, event);
21
20
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "opencode-logger",
3
3
  "main": "dist/index.js",
4
4
  "types": "dist/index.d.ts",
5
- "version": "0.3.1",
5
+ "version": "0.3.3",
6
6
  "repository": {
7
7
  "url": "git+https://github.com/radekBednarik/opencode-logger.git"
8
8
  },
@@ -19,16 +19,17 @@
19
19
  "plugin"
20
20
  ],
21
21
  "dependencies": {
22
- "@opencode-ai/plugin": "^1.1.25"
22
+ "@opencode-ai/plugin": "^1.1.51"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@biomejs/biome": "2.3.11",
26
26
  "@types/bun": "latest",
27
27
  "husky": "^9.1.7",
28
- "lint-staged": "^16.2.7"
28
+ "lint-staged": "^16.2.7",
29
+ "prettier": "^3.8.1"
29
30
  },
30
31
  "peerDependencies": {
31
- "typescript": "^5"
32
+ "typescript": "^5.9.3"
32
33
  },
33
34
  "private": false,
34
35
  "scripts": {