disunday 1.0.0
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/ai-tool-to-genai.js +208 -0
- package/dist/ai-tool-to-genai.test.js +267 -0
- package/dist/channel-management.js +96 -0
- package/dist/cli.js +1674 -0
- package/dist/commands/abort.js +89 -0
- package/dist/commands/add-project.js +117 -0
- package/dist/commands/agent.js +250 -0
- package/dist/commands/ask-question.js +219 -0
- package/dist/commands/compact.js +126 -0
- package/dist/commands/context-menu.js +171 -0
- package/dist/commands/context.js +89 -0
- package/dist/commands/cost.js +93 -0
- package/dist/commands/create-new-project.js +111 -0
- package/dist/commands/diff.js +77 -0
- package/dist/commands/export.js +100 -0
- package/dist/commands/files.js +73 -0
- package/dist/commands/fork.js +199 -0
- package/dist/commands/help.js +54 -0
- package/dist/commands/login.js +488 -0
- package/dist/commands/merge-worktree.js +165 -0
- package/dist/commands/model.js +325 -0
- package/dist/commands/permissions.js +140 -0
- package/dist/commands/ping.js +13 -0
- package/dist/commands/queue.js +133 -0
- package/dist/commands/remove-project.js +119 -0
- package/dist/commands/rename.js +70 -0
- package/dist/commands/restart-opencode-server.js +77 -0
- package/dist/commands/resume.js +276 -0
- package/dist/commands/run-config.js +79 -0
- package/dist/commands/run.js +240 -0
- package/dist/commands/schedule.js +170 -0
- package/dist/commands/session-info.js +58 -0
- package/dist/commands/session.js +191 -0
- package/dist/commands/settings.js +84 -0
- package/dist/commands/share.js +89 -0
- package/dist/commands/status.js +79 -0
- package/dist/commands/sync.js +119 -0
- package/dist/commands/theme.js +53 -0
- package/dist/commands/types.js +2 -0
- package/dist/commands/undo-redo.js +170 -0
- package/dist/commands/user-command.js +135 -0
- package/dist/commands/verbosity.js +59 -0
- package/dist/commands/worktree-settings.js +50 -0
- package/dist/commands/worktree.js +288 -0
- package/dist/config.js +139 -0
- package/dist/database.js +585 -0
- package/dist/discord-bot.js +700 -0
- package/dist/discord-utils.js +336 -0
- package/dist/discord-utils.test.js +20 -0
- package/dist/errors.js +193 -0
- package/dist/escape-backticks.test.js +429 -0
- package/dist/format-tables.js +96 -0
- package/dist/format-tables.test.js +418 -0
- package/dist/genai-worker-wrapper.js +109 -0
- package/dist/genai-worker.js +299 -0
- package/dist/genai.js +230 -0
- package/dist/image-utils.js +107 -0
- package/dist/interaction-handler.js +289 -0
- package/dist/limit-heading-depth.js +25 -0
- package/dist/limit-heading-depth.test.js +105 -0
- package/dist/logger.js +111 -0
- package/dist/markdown.js +323 -0
- package/dist/markdown.test.js +269 -0
- package/dist/message-formatting.js +447 -0
- package/dist/message-formatting.test.js +73 -0
- package/dist/openai-realtime.js +226 -0
- package/dist/opencode.js +224 -0
- package/dist/reaction-handler.js +128 -0
- package/dist/scheduler.js +93 -0
- package/dist/security.js +200 -0
- package/dist/session-handler.js +1436 -0
- package/dist/system-message.js +138 -0
- package/dist/tools.js +354 -0
- package/dist/unnest-code-blocks.js +117 -0
- package/dist/unnest-code-blocks.test.js +432 -0
- package/dist/utils.js +95 -0
- package/dist/voice-handler.js +569 -0
- package/dist/voice.js +344 -0
- package/dist/worker-types.js +4 -0
- package/dist/worktree-utils.js +134 -0
- package/dist/xml.js +90 -0
- package/dist/xml.test.js +32 -0
- package/package.json +84 -0
package/package.json
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "disunday",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "Discord bot for controlling OpenCode coding sessions",
|
|
6
|
+
"author": "code-xhyun",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/code-xhyun/disunday.git",
|
|
11
|
+
"directory": "discord"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/code-xhyun/disunday#readme",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/code-xhyun/disunday/issues"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"discord",
|
|
19
|
+
"bot",
|
|
20
|
+
"opencode",
|
|
21
|
+
"ai",
|
|
22
|
+
"coding",
|
|
23
|
+
"agent"
|
|
24
|
+
],
|
|
25
|
+
"bin": {
|
|
26
|
+
"disunday": "./dist/cli.js"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"dist"
|
|
30
|
+
],
|
|
31
|
+
"scripts": {
|
|
32
|
+
"dev": "tsx --env-file .env src/cli.ts",
|
|
33
|
+
"build": "tsc",
|
|
34
|
+
"prepublishOnly": "pnpm build",
|
|
35
|
+
"dev:bun": "DEBUG=1 bun --env-file .env src/cli.ts",
|
|
36
|
+
"watch": "tsx scripts/watch-session.ts",
|
|
37
|
+
"test:events": "tsx test-events.ts",
|
|
38
|
+
"pcm-to-mp3": "bun scripts/pcm-to-mp3",
|
|
39
|
+
"test:send": "tsx send-test-message.ts",
|
|
40
|
+
"register-commands": "tsx scripts/register-commands.ts",
|
|
41
|
+
"format": "oxfmt src"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@opencode-ai/plugin": "^1.1.12",
|
|
45
|
+
"@types/better-sqlite3": "^7.6.13",
|
|
46
|
+
"@types/bun": "latest",
|
|
47
|
+
"@types/heic-convert": "^2.1.0",
|
|
48
|
+
"@types/js-yaml": "^4.0.9",
|
|
49
|
+
"@types/ms": "^2.1.0",
|
|
50
|
+
"@types/node": "^24.3.0",
|
|
51
|
+
"tsx": "^4.20.5"
|
|
52
|
+
},
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"@clack/prompts": "^1.0.0",
|
|
55
|
+
"@discordjs/voice": "^0.19.0",
|
|
56
|
+
"@google/genai": "^1.34.0",
|
|
57
|
+
"@opencode-ai/sdk": "^1.1.31",
|
|
58
|
+
"@purinton/resampler": "^1.0.4",
|
|
59
|
+
"ai": "^5.0.114",
|
|
60
|
+
"better-sqlite3": "^12.3.0",
|
|
61
|
+
"cac": "^6.7.14",
|
|
62
|
+
"discord.js": "^14.16.3",
|
|
63
|
+
"domhandler": "^5.0.3",
|
|
64
|
+
"errore": "workspace:^",
|
|
65
|
+
"glob": "^13.0.0",
|
|
66
|
+
"htmlparser2": "^10.0.0",
|
|
67
|
+
"js-yaml": "^4.1.0",
|
|
68
|
+
"marked": "^16.3.0",
|
|
69
|
+
"mime": "^4.1.0",
|
|
70
|
+
"picocolors": "^1.1.1",
|
|
71
|
+
"pretty-ms": "^9.3.0",
|
|
72
|
+
"ripgrep-js": "^3.0.0",
|
|
73
|
+
"string-dedent": "^3.0.2",
|
|
74
|
+
"undici": "^7.16.0",
|
|
75
|
+
"xdg-basedir": "^5.1.0",
|
|
76
|
+
"zod": "^4.2.1"
|
|
77
|
+
},
|
|
78
|
+
"optionalDependencies": {
|
|
79
|
+
"@discordjs/opus": "^0.10.0",
|
|
80
|
+
"heic-convert": "^2.1.0",
|
|
81
|
+
"prism-media": "^1.3.5",
|
|
82
|
+
"sharp": "^0.34.5"
|
|
83
|
+
}
|
|
84
|
+
}
|