kimaki 0.4.18 → 0.4.20
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/README.md +0 -21
- package/dist/cli.js +46 -154
- package/dist/discordBot.js +308 -107
- package/dist/genai.js +1 -1
- package/dist/xai-realtime.js +95 -0
- package/package.json +7 -7
- package/src/cli.ts +52 -216
- package/src/discordBot.ts +369 -114
- package/src/genai-worker.ts +1 -1
- package/src/genai.ts +1 -1
- package/src/opencode-command-send-to-discord.md +0 -12
package/src/genai-worker.ts
CHANGED
|
@@ -5,9 +5,9 @@ import path from 'node:path'
|
|
|
5
5
|
import { Resampler } from '@purinton/resampler'
|
|
6
6
|
import * as prism from 'prism-media'
|
|
7
7
|
import { startGenAiSession } from './genai.js'
|
|
8
|
+
import type { Session } from '@google/genai'
|
|
8
9
|
import { getTools } from './tools.js'
|
|
9
10
|
import type { WorkerInMessage, WorkerOutMessage } from './worker-types.js'
|
|
10
|
-
import type { Session } from '@google/genai'
|
|
11
11
|
import { createLogger } from './logger.js'
|
|
12
12
|
|
|
13
13
|
if (!parentPort) {
|
package/src/genai.ts
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Send current session to Discord
|
|
3
|
-
---
|
|
4
|
-
Run the following command to send this session to Discord:
|
|
5
|
-
|
|
6
|
-
```bash
|
|
7
|
-
npx -y kimaki send-to-discord <sessionId>
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
Replace `<sessionId>` with your current OpenCode session ID (available in the system prompt).
|
|
11
|
-
|
|
12
|
-
The command will create a Discord thread with your session history and return the Discord URL.
|