moshi-opencode-hooks 1.0.14 → 1.0.16

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.
Files changed (2) hide show
  1. package/index.ts +12 -0
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -127,7 +127,19 @@ function formatModelName(model: string | undefined): string | undefined {
127
127
  return model.replace(/^claude-/, "")
128
128
  }
129
129
 
130
+ const pkg = await import("./package.json", { assert: { type: "json" } })
131
+ const VERSION = pkg.default.version
132
+
130
133
  export const MoshiHooks: Plugin = async ({ client, directory }) => {
134
+ setTimeout(() => {
135
+ client.tui.showToast({
136
+ body: {
137
+ message: `moshi-opencode-hooks v${VERSION} is active`,
138
+ variant: "info",
139
+ },
140
+ })
141
+ }, 5000)
142
+
131
143
  const setupEventSubscription = async () => {
132
144
  try {
133
145
  const events = await client.event.subscribe()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moshi-opencode-hooks",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "OpenCode plugin for Moshi live activity integration",
5
5
  "repository": {
6
6
  "type": "git",