kimaki 0.4.78 → 0.4.80

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 (90) hide show
  1. package/dist/anthropic-auth-plugin.js +628 -0
  2. package/dist/channel-management.js +2 -2
  3. package/dist/cli.js +316 -129
  4. package/dist/commands/action-buttons.js +1 -1
  5. package/dist/commands/login.js +634 -277
  6. package/dist/commands/model.js +91 -6
  7. package/dist/commands/paginated-select.js +57 -0
  8. package/dist/commands/resume.js +2 -2
  9. package/dist/commands/tasks.js +205 -0
  10. package/dist/commands/undo-redo.js +80 -18
  11. package/dist/context-awareness-plugin.js +347 -0
  12. package/dist/database.js +103 -7
  13. package/dist/db.js +39 -1
  14. package/dist/discord-bot.js +42 -19
  15. package/dist/discord-urls.js +11 -0
  16. package/dist/discord-ws-proxy.js +350 -0
  17. package/dist/discord-ws-proxy.test.js +500 -0
  18. package/dist/errors.js +1 -1
  19. package/dist/gateway-session.js +163 -0
  20. package/dist/hrana-server.js +114 -4
  21. package/dist/interaction-handler.js +30 -7
  22. package/dist/ipc-tools-plugin.js +186 -0
  23. package/dist/message-preprocessing.js +56 -11
  24. package/dist/onboarding-welcome.js +1 -1
  25. package/dist/opencode-interrupt-plugin.js +133 -75
  26. package/dist/opencode-plugin.js +12 -389
  27. package/dist/opencode.js +59 -5
  28. package/dist/parse-permission-rules.test.js +117 -0
  29. package/dist/queue-drain-after-interactive-ui.e2e.test.js +119 -0
  30. package/dist/session-handler/thread-session-runtime.js +68 -29
  31. package/dist/startup-time.e2e.test.js +295 -0
  32. package/dist/store.js +1 -0
  33. package/dist/system-message.js +3 -1
  34. package/dist/task-runner.js +7 -3
  35. package/dist/task-schedule.js +12 -0
  36. package/dist/thread-message-queue.e2e.test.js +13 -1
  37. package/dist/undo-redo.e2e.test.js +166 -0
  38. package/dist/utils.js +4 -1
  39. package/dist/voice-attachment.js +34 -0
  40. package/dist/voice-handler.js +11 -9
  41. package/dist/voice-message.e2e.test.js +78 -0
  42. package/dist/voice.test.js +31 -0
  43. package/package.json +12 -7
  44. package/skills/egaki/SKILL.md +80 -15
  45. package/skills/errore/SKILL.md +13 -0
  46. package/skills/lintcn/SKILL.md +749 -0
  47. package/skills/npm-package/SKILL.md +17 -3
  48. package/skills/spiceflow/SKILL.md +14 -0
  49. package/skills/zele/SKILL.md +9 -0
  50. package/src/anthropic-auth-plugin.ts +732 -0
  51. package/src/channel-management.ts +2 -2
  52. package/src/cli.ts +354 -132
  53. package/src/commands/action-buttons.ts +1 -0
  54. package/src/commands/login.ts +836 -337
  55. package/src/commands/model.ts +102 -7
  56. package/src/commands/paginated-select.ts +81 -0
  57. package/src/commands/resume.ts +6 -1
  58. package/src/commands/tasks.ts +293 -0
  59. package/src/commands/undo-redo.ts +87 -20
  60. package/src/context-awareness-plugin.ts +469 -0
  61. package/src/database.ts +138 -7
  62. package/src/db.ts +40 -1
  63. package/src/discord-bot.ts +46 -19
  64. package/src/discord-urls.ts +12 -0
  65. package/src/errors.ts +1 -1
  66. package/src/hrana-server.ts +124 -3
  67. package/src/interaction-handler.ts +41 -9
  68. package/src/ipc-tools-plugin.ts +228 -0
  69. package/src/message-preprocessing.ts +82 -11
  70. package/src/onboarding-welcome.ts +1 -1
  71. package/src/opencode-interrupt-plugin.ts +164 -91
  72. package/src/opencode-plugin.ts +13 -483
  73. package/src/opencode.ts +60 -5
  74. package/src/parse-permission-rules.test.ts +127 -0
  75. package/src/queue-drain-after-interactive-ui.e2e.test.ts +151 -0
  76. package/src/session-handler/thread-runtime-state.ts +4 -1
  77. package/src/session-handler/thread-session-runtime.ts +82 -20
  78. package/src/startup-time.e2e.test.ts +372 -0
  79. package/src/store.ts +8 -0
  80. package/src/system-message.ts +10 -1
  81. package/src/task-runner.ts +9 -22
  82. package/src/task-schedule.ts +15 -0
  83. package/src/thread-message-queue.e2e.test.ts +14 -1
  84. package/src/undo-redo.e2e.test.ts +207 -0
  85. package/src/utils.ts +7 -0
  86. package/src/voice-attachment.ts +51 -0
  87. package/src/voice-handler.ts +15 -7
  88. package/src/voice-message.e2e.test.ts +95 -0
  89. package/src/voice.test.ts +36 -0
  90. package/src/onboarding-tutorial-plugin.ts +0 -93
@@ -39,8 +39,8 @@ Use this skill when scaffolding or fixing npm packages.
39
39
  - any runtime-required extra files (for example `schema.prisma`)
40
40
  - docs like `README.md` and `CHANGELOG.md`
41
41
  - if tests are inside src and gets included in dist, it's fine. don't try to exclude them
42
- 10. `scripts.build` should be `tsc && chmod +x dist/cli.js` (skip the chmod
43
- if the package has no bin). No bundling.
42
+ 10. `scripts.build` should be `rm -rf dist *.tsbuildinfo && tsc && chmod +x dist/cli.js` (skip the chmod
43
+ if the package has no bin). No bundling. We remove dist to cleanup old transpiled files. Also pass tsbuildinfo to remove also the tsc incremental compilation state. Without that tsc would not generate again files to dist.
44
44
  Optionally include running scripts with tsx if needed to generate build artifacts.
45
45
  11. `prepublishOnly` must always run `build` (optionally run generation before
46
46
  build when required). Always add this script:
@@ -179,7 +179,7 @@ Use Node ESM-compatible compiler settings:
179
179
  - Only relative imports are rewritten. Path aliases (`paths` in tsconfig) are
180
180
  not supported by `rewriteRelativeImportExtensions` — this is fine since npm
181
181
  packages should use relative imports anyway.
182
- - Requires TypeScript 5.7+. Pin the typescript devDependency to at least `5.7.0`.
182
+ - Requires TypeScript 5.7+.
183
183
  - Install `@types/node` as a dev dependency whenever Node APIs are used.
184
184
  - If generation is required, keep generators in `scripts/*.ts` and invoke them
185
185
  from package scripts before build/publish.
@@ -217,6 +217,20 @@ Use Node ESM-compatible compiler settings:
217
217
  test files should be close with the associated source files. for example if you have an utils.ts file you will create utils.test.ts file next to it. with tests, importing from utils. preferred testing framework is vitest (or bun if project already using `bun test` or depends on bun APIs, rare)
218
218
 
219
219
 
220
+ ## .gitignore
221
+
222
+ For non-workspace (standalone) packages, always create a `.gitignore` with:
223
+
224
+ ```
225
+ node_modules
226
+ dist
227
+ *.tsbuildinfo
228
+ .DS_Store
229
+ ```
230
+
231
+ Workspace packages inside a monorepo inherit the root `.gitignore`, so this only applies to standalone packages.
232
+
233
+
220
234
  ## common mistakes
221
235
 
222
236
  - if you need to use zod always use latest version
@@ -0,0 +1,14 @@
1
+ ---
2
+ name: spiceflow
3
+ description: "Spiceflow is a super simple, fast, and type-safe API and React Server Components framework for TypeScript. Works on Node.js, Bun, and Cloudflare Workers. Use this skill whenever working with spiceflow to get the latest docs and API reference."
4
+ ---
5
+
6
+ # Spiceflow
7
+
8
+ Every time you work with spiceflow, you MUST fetch the latest README from the main branch:
9
+
10
+ ```bash
11
+ curl -s https://raw.githubusercontent.com/remorses/spiceflow/main/spiceflow/README.md # NEVER pipe to head/tail, read the full output
12
+ ```
13
+
14
+ NEVER use `head`, `tail`, or any other command to truncate the output. Read the full README every time. It contains the complete API reference, usage examples, and framework conventions you need.
@@ -74,6 +74,15 @@ zele mail list --account user@work.com
74
74
  # list inbox
75
75
  zele mail list
76
76
 
77
+ # list only unread emails
78
+ zele mail list --filter "is:unread"
79
+
80
+ # list unread emails with attachments in inbox
81
+ zele mail list --filter "is:unread has:attachment"
82
+
83
+ # combine filter with folder
84
+ zele mail list --filter "from:github" --folder sent
85
+
77
86
  # search mail
78
87
  zele mail search "from:github subject:review"
79
88