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.
- package/README.md +2 -2
- package/dist/index.js +2753 -508
- package/dist/template/.opencode/AGENTS.md +35 -128
- package/dist/template/.opencode/README.md +4 -3
- package/dist/template/.opencode/command/design.md +1 -0
- package/dist/template/.opencode/command/fix.md +28 -1
- package/dist/template/.opencode/command/implement.md +195 -39
- package/dist/template/.opencode/command/new-feature.md +229 -188
- package/dist/template/.opencode/command/plan.md +354 -82
- package/dist/template/.opencode/command/research.md +29 -6
- package/dist/template/.opencode/command/start.md +227 -0
- package/dist/template/.opencode/command/triage.md +66 -12
- package/dist/template/.opencode/memory/project/beads-workflow.md +510 -0
- package/dist/template/.opencode/memory/session-context.md +40 -0
- package/dist/template/.opencode/opencode.json +20 -5
- package/dist/template/.opencode/package.json +1 -1
- package/dist/template/.opencode/plugin/compaction.ts +62 -18
- package/dist/template/.opencode/plugin/lib/notify.ts +2 -3
- package/dist/template/.opencode/plugin/sessions.ts +1 -1
- package/dist/template/.opencode/plugin/skill-mcp.ts +11 -12
- package/dist/template/.opencode/skill/beads/SKILL.md +44 -0
- package/dist/template/.opencode/skill/source-code-research/SKILL.md +537 -0
- package/dist/template/.opencode/tool/ast-grep.ts +3 -3
- package/dist/template/.opencode/tool/bd-inbox.ts +7 -6
- package/dist/template/.opencode/tool/bd-msg.ts +3 -3
- package/dist/template/.opencode/tool/bd-release.ts +2 -2
- package/dist/template/.opencode/tool/bd-reserve.ts +5 -4
- package/dist/template/.opencode/tool/memory-read.ts +2 -2
- package/dist/template/.opencode/tool/memory-search.ts +2 -2
- package/dist/template/.opencode/tool/memory-update.ts +11 -12
- package/dist/template/.opencode/tool/observation.ts +6 -6
- package/package.json +5 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
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 +=
|
|
115
|
+
observation += "\n---\n\n";
|
|
116
116
|
observation += args.content;
|
|
117
|
-
observation +=
|
|
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
|
|
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.
|
|
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
|
|
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": {
|