moshi-opencode-hooks 1.0.15 → 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 +9 -5
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -131,6 +131,15 @@ const pkg = await import("./package.json", { assert: { type: "json" } })
131
131
  const VERSION = pkg.default.version
132
132
 
133
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
+
134
143
  const setupEventSubscription = async () => {
135
144
  try {
136
145
  const events = await client.event.subscribe()
@@ -193,11 +202,6 @@ export const MoshiHooks: Plugin = async ({ client, directory }) => {
193
202
  }
194
203
 
195
204
  return {
196
- "tui.toast.show": async (_input: unknown, output: any) => {
197
- output.message = `moshi-opencode-hooks v${VERSION} is active`
198
- output.type = "info"
199
- },
200
-
201
205
  "tool.execute.before": async (input, output) => {
202
206
  const token = await loadToken()
203
207
  if (!token) return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moshi-opencode-hooks",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "OpenCode plugin for Moshi live activity integration",
5
5
  "repository": {
6
6
  "type": "git",