kimaki 0.4.15 → 0.4.17

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/dist/cli.js CHANGED
@@ -588,7 +588,6 @@ cli
588
588
  .get(sessionId);
589
589
  if (!threadRow) {
590
590
  cliLogger.error(`No Discord thread found for session: ${sessionId}`);
591
- cliLogger.error('Make sure the session has been sent to Discord first using /send-to-kimaki-discord');
592
591
  process.exit(EXIT_NO_RESTART);
593
592
  }
594
593
  const botRow = db
@@ -629,20 +628,17 @@ cli
629
628
  }
630
629
  });
631
630
  cli
632
- .command('install-plugin', 'Install the OpenCode commands for kimaki Discord integration')
631
+ .command('install-plugin', 'Install the OpenCode command for kimaki Discord integration')
633
632
  .action(async () => {
634
633
  try {
635
634
  const require = createRequire(import.meta.url);
636
635
  const sendCommandSrc = require.resolve('./opencode-command-send-to-discord.md');
637
- const uploadCommandSrc = require.resolve('./opencode-command-upload-to-discord.md');
638
636
  const opencodeConfig = path.join(os.homedir(), '.config', 'opencode');
639
637
  const commandDir = path.join(opencodeConfig, 'command');
640
638
  fs.mkdirSync(commandDir, { recursive: true });
641
639
  const sendCommandDest = path.join(commandDir, 'send-to-kimaki-discord.md');
642
- const uploadCommandDest = path.join(commandDir, 'upload-to-discord.md');
643
640
  fs.copyFileSync(sendCommandSrc, sendCommandDest);
644
- fs.copyFileSync(uploadCommandSrc, uploadCommandDest);
645
- note(`Commands installed:\n- ${sendCommandDest}\n- ${uploadCommandDest}\n\nUse /send-to-kimaki-discord to send session to Discord.\nUse /upload-to-discord to upload files to the thread.`, '✅ Installed');
641
+ note(`Command installed:\n- ${sendCommandDest}\n\nUse /send-to-kimaki-discord to send session to Discord.`, '✅ Installed');
646
642
  process.exit(0);
647
643
  }
648
644
  catch (error) {
@@ -41,6 +41,14 @@ The user is reading your messages from inside Discord, via kimaki.xyz
41
41
 
42
42
  Your current OpenCode session ID is: ${sessionId}
43
43
 
44
+ ## uploading files to discord
45
+
46
+ To upload files (images, screenshots, etc.) to the Discord thread, run:
47
+
48
+ npx -y kimaki upload-to-discord --session ${sessionId} <file1> [file2] ...
49
+
50
+ ## showing diffs
51
+
44
52
  After each message, if you implemented changes, you can show the user a diff via an url running the command, to show the changes in working directory:
45
53
 
46
54
  bunx critique web
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "kimaki",
3
3
  "module": "index.ts",
4
4
  "type": "module",
5
- "version": "0.4.15",
5
+ "version": "0.4.17",
6
6
  "scripts": {
7
7
  "dev": "tsx --env-file .env src/cli.ts",
8
8
  "prepublishOnly": "pnpm tsc",
package/src/cli.ts CHANGED
@@ -869,7 +869,6 @@ cli
869
869
 
870
870
  if (!threadRow) {
871
871
  cliLogger.error(`No Discord thread found for session: ${sessionId}`)
872
- cliLogger.error('Make sure the session has been sent to Discord first using /send-to-kimaki-discord')
873
872
  process.exit(EXIT_NO_RESTART)
874
873
  }
875
874
 
@@ -931,12 +930,11 @@ cli
931
930
  })
932
931
 
933
932
  cli
934
- .command('install-plugin', 'Install the OpenCode commands for kimaki Discord integration')
933
+ .command('install-plugin', 'Install the OpenCode command for kimaki Discord integration')
935
934
  .action(async () => {
936
935
  try {
937
936
  const require = createRequire(import.meta.url)
938
937
  const sendCommandSrc = require.resolve('./opencode-command-send-to-discord.md')
939
- const uploadCommandSrc = require.resolve('./opencode-command-upload-to-discord.md')
940
938
 
941
939
  const opencodeConfig = path.join(os.homedir(), '.config', 'opencode')
942
940
  const commandDir = path.join(opencodeConfig, 'command')
@@ -944,13 +942,11 @@ cli
944
942
  fs.mkdirSync(commandDir, { recursive: true })
945
943
 
946
944
  const sendCommandDest = path.join(commandDir, 'send-to-kimaki-discord.md')
947
- const uploadCommandDest = path.join(commandDir, 'upload-to-discord.md')
948
945
 
949
946
  fs.copyFileSync(sendCommandSrc, sendCommandDest)
950
- fs.copyFileSync(uploadCommandSrc, uploadCommandDest)
951
947
 
952
948
  note(
953
- `Commands installed:\n- ${sendCommandDest}\n- ${uploadCommandDest}\n\nUse /send-to-kimaki-discord to send session to Discord.\nUse /upload-to-discord to upload files to the thread.`,
949
+ `Command installed:\n- ${sendCommandDest}\n\nUse /send-to-kimaki-discord to send session to Discord.`,
954
950
  '✅ Installed',
955
951
  )
956
952
 
package/src/discordBot.ts CHANGED
@@ -82,6 +82,14 @@ The user is reading your messages from inside Discord, via kimaki.xyz
82
82
 
83
83
  Your current OpenCode session ID is: ${sessionId}
84
84
 
85
+ ## uploading files to discord
86
+
87
+ To upload files (images, screenshots, etc.) to the Discord thread, run:
88
+
89
+ npx -y kimaki upload-to-discord --session ${sessionId} <file1> [file2] ...
90
+
91
+ ## showing diffs
92
+
85
93
  After each message, if you implemented changes, you can show the user a diff via an url running the command, to show the changes in working directory:
86
94
 
87
95
  bunx critique web
@@ -1,22 +0,0 @@
1
- ---
2
- description: Upload files to Discord thread
3
- ---
4
- Upload files to the current Discord thread by running:
5
-
6
- ```bash
7
- npx -y kimaki upload-to-discord --session <sessionId> <file1> [file2] [file3] ...
8
- ```
9
-
10
- Replace `<sessionId>` with your current OpenCode session ID (available in the system prompt).
11
-
12
- Examples:
13
-
14
- ```bash
15
- # Upload a single file
16
- npx -y kimaki upload-to-discord --session ses_abc123 ./screenshot.png
17
-
18
- # Upload multiple files
19
- npx -y kimaki upload-to-discord --session ses_abc123 ./image1.png ./image2.jpg ./document.pdf
20
- ```
21
-
22
- The session must have been sent to Discord first using `/send-to-kimaki-discord`.