opencodekit 0.12.7 → 0.13.1

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 (32) hide show
  1. package/README.md +2 -2
  2. package/dist/index.js +2753 -508
  3. package/dist/template/.opencode/AGENTS.md +35 -128
  4. package/dist/template/.opencode/README.md +4 -3
  5. package/dist/template/.opencode/command/design.md +1 -0
  6. package/dist/template/.opencode/command/fix.md +28 -1
  7. package/dist/template/.opencode/command/implement.md +195 -39
  8. package/dist/template/.opencode/command/new-feature.md +229 -188
  9. package/dist/template/.opencode/command/plan.md +354 -82
  10. package/dist/template/.opencode/command/research.md +29 -6
  11. package/dist/template/.opencode/command/start.md +227 -0
  12. package/dist/template/.opencode/command/triage.md +66 -12
  13. package/dist/template/.opencode/memory/project/beads-workflow.md +510 -0
  14. package/dist/template/.opencode/memory/session-context.md +40 -0
  15. package/dist/template/.opencode/opencode.json +20 -5
  16. package/dist/template/.opencode/package.json +1 -1
  17. package/dist/template/.opencode/plugin/compaction.ts +62 -18
  18. package/dist/template/.opencode/plugin/lib/notify.ts +2 -3
  19. package/dist/template/.opencode/plugin/sessions.ts +1 -1
  20. package/dist/template/.opencode/plugin/skill-mcp.ts +11 -12
  21. package/dist/template/.opencode/skill/beads/SKILL.md +44 -0
  22. package/dist/template/.opencode/skill/source-code-research/SKILL.md +537 -0
  23. package/dist/template/.opencode/tool/ast-grep.ts +3 -3
  24. package/dist/template/.opencode/tool/bd-inbox.ts +7 -6
  25. package/dist/template/.opencode/tool/bd-msg.ts +3 -3
  26. package/dist/template/.opencode/tool/bd-release.ts +2 -2
  27. package/dist/template/.opencode/tool/bd-reserve.ts +5 -4
  28. package/dist/template/.opencode/tool/memory-read.ts +2 -2
  29. package/dist/template/.opencode/tool/memory-search.ts +2 -2
  30. package/dist/template/.opencode/tool/memory-update.ts +11 -12
  31. package/dist/template/.opencode/tool/observation.ts +6 -6
  32. package/package.json +5 -2
@@ -1,6 +1,6 @@
1
- import path from "path";
1
+ import fs from "node:fs/promises";
2
+ import path from "node:path";
2
3
  import { tool } from "@opencode-ai/plugin";
3
- import fs from "fs/promises";
4
4
 
5
5
  // Observation types following claude-mem patterns
6
6
  type ObservationType =
@@ -112,9 +112,9 @@ export default tool({
112
112
  observation += `**Files:** ${files.map((f) => `\`${f}\``).join(", ")}\n`;
113
113
  }
114
114
 
115
- observation += `\n---\n\n`;
115
+ observation += "\n---\n\n";
116
116
  observation += args.content;
117
- observation += `\n`;
117
+ observation += "\n";
118
118
 
119
119
  try {
120
120
  // Ensure directory exists
@@ -128,7 +128,7 @@ export default tool({
128
128
  // Update bead notes if bead_id provided
129
129
  if (args.bead_id) {
130
130
  try {
131
- const { execSync } = await import("child_process");
131
+ const { execSync } = await import("node:child_process");
132
132
  const noteContent = `${icon} ${obsType}: ${args.title}`;
133
133
  execSync(
134
134
  `bd edit ${args.bead_id} --note "${noteContent.replace(/"/g, '\\"')}"`,
@@ -149,7 +149,7 @@ export default tool({
149
149
  if (error instanceof Error) {
150
150
  return `Error saving observation: ${error.message}`;
151
151
  }
152
- return `Unknown error saving observation`;
152
+ return "Unknown error saving observation";
153
153
  }
154
154
  },
155
155
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencodekit",
3
- "version": "0.12.7",
3
+ "version": "0.13.1",
4
4
  "description": "CLI tool for bootstrapping and managing OpenCodeKit projects",
5
5
  "type": "module",
6
6
  "repository": {
@@ -17,7 +17,7 @@
17
17
  "files": ["dist", "README.md"],
18
18
  "scripts": {
19
19
  "dev": "bun run src/index.ts",
20
- "build": "bun build src/index.ts --outdir dist --target node && mkdir -p dist/template && rsync -av --exclude=node_modules --exclude=dist --exclude=.git --exclude=coverage --exclude=.next --exclude=.turbo --exclude=logs --exclude=package-lock.json .opencode/ dist/template/.opencode/",
20
+ "build": "bun run build.ts && mkdir -p dist/template && rsync -av --exclude=node_modules --exclude=dist --exclude=.git --exclude=coverage --exclude=.next --exclude=.turbo --exclude=logs --exclude=package-lock.json .opencode/ dist/template/.opencode/",
21
21
  "compile": "bun build src/index.ts --compile --outfile ock",
22
22
  "compile:binary": "bun build src/index.ts --compile --outfile bin/ock",
23
23
  "typecheck": "tsc --noEmit",
@@ -35,11 +35,14 @@
35
35
  "dependencies": {
36
36
  "@clack/prompts": "^0.7.0",
37
37
  "@opencode-ai/plugin": "^1.1.2",
38
+ "@opentui/core": "^0.1.69",
39
+ "@opentui/solid": "^0.1.69",
38
40
  "beads-village": "^1.3.3",
39
41
  "cac": "^6.7.14",
40
42
  "cli-table3": "^0.6.5",
41
43
  "ora": "^9.0.0",
42
44
  "picocolors": "^1.1.1",
45
+ "solid-js": "^1.9.10",
43
46
  "zod": "^3.23.8"
44
47
  },
45
48
  "devDependencies": {