opencode-logger 0.4.2 → 0.4.4

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.
@@ -10,7 +10,7 @@ export declare const DEFAULT_LOG_FILENAME = "log.jsonl";
10
10
  * List of event types supported by the logger plugin.
11
11
  * These events correspond to various lifecycle hooks and actions within the Opencode environment.
12
12
  */
13
- export declare const SUPPORTED_EVENTS: readonly ["command.executed", "file.edited", "file.watcher.updated", "installation.updated", "lsp.client.diagnostics", "lsp.updated", "message.part.removed", "message.part.updated", "message.removed", "message.updated", "permission.asked", "permission.replied", "server.connected", "session.created", "session.compacted", "session.deleted", "session.diff", "session.error", "session.idle", "session.status", "session.updated", "shell.env", "todo.updated", "tool.execute.after", "tool.execute.before", "tui.prompt.append", "tui.command.execute", "tui.toast.show"];
13
+ export declare const SUPPORTED_EVENTS: readonly ["command.executed", "experimental.session.compacting", "file.edited", "file.watcher.updated", "installation.updated", "lsp.client.diagnostics", "lsp.updated", "message.part.removed", "message.part.updated", "message.removed", "message.updated", "permission.asked", "permission.replied", "server.connected", "session.compacted", "session.created", "session.deleted", "session.diff", "session.error", "session.idle", "session.status", "session.updated", "shell.env", "todo.updated", "tool.execute.after", "tool.execute.before", "tui.command.execute", "tui.prompt.append", "tui.toast.show"];
14
14
  /**
15
15
  * Type definition derived from the supported events constant.
16
16
  */
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,qBAAqB,kBAAkB,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,oBAAoB,cAAc,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,ojBA6BnB,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,qBAAqB,kBAAkB,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,oBAAoB,cAAc,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,ulBA2CnB,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC"}
package/dist/constants.js CHANGED
@@ -11,32 +11,46 @@ export const DEFAULT_LOG_FILENAME = "log.jsonl";
11
11
  * These events correspond to various lifecycle hooks and actions within the Opencode environment.
12
12
  */
13
13
  export const SUPPORTED_EVENTS = [
14
+ // Command Events
14
15
  "command.executed",
16
+ // Experimental Events
17
+ "experimental.session.compacting",
18
+ // File Events
15
19
  "file.edited",
16
20
  "file.watcher.updated",
21
+ // Installation Events
17
22
  "installation.updated",
23
+ // LSP Events
18
24
  "lsp.client.diagnostics",
19
25
  "lsp.updated",
26
+ // Message Events
20
27
  "message.part.removed",
21
28
  "message.part.updated",
22
29
  "message.removed",
23
30
  "message.updated",
31
+ // Permission Events
24
32
  "permission.asked",
25
33
  "permission.replied",
34
+ // Server Events
26
35
  "server.connected",
27
- "session.created",
36
+ // Session Events
28
37
  "session.compacted",
38
+ "session.created",
29
39
  "session.deleted",
30
40
  "session.diff",
31
41
  "session.error",
32
42
  "session.idle",
33
43
  "session.status",
34
44
  "session.updated",
45
+ // Shell Events
35
46
  "shell.env",
47
+ // Todo Events
36
48
  "todo.updated",
49
+ // Tool Events
37
50
  "tool.execute.after",
38
51
  "tool.execute.before",
39
- "tui.prompt.append",
52
+ // TUI Events
40
53
  "tui.command.execute",
54
+ "tui.prompt.append",
41
55
  "tui.toast.show",
42
56
  ];
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.4.2",
5
+ "version": "0.4.4",
6
6
  "repository": {
7
7
  "url": "git+https://github.com/radekBednarik/opencode-logger.git"
8
8
  },
@@ -19,7 +19,7 @@
19
19
  "plugin"
20
20
  ],
21
21
  "dependencies": {
22
- "@opencode-ai/plugin": "^1.2.5"
22
+ "@opencode-ai/plugin": "^1.2.6"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@biomejs/biome": "2.3.11",