Loading...
Loading...
Compare original and translation side by side
.beans/beans prime.beans/beans prime.beans/.beans/undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedbeans create "Implement user login"beans create "Implement user login"undefinedundefinedbeans list # List all beans
beans list --tag urgent # Filter by tag
beans list --status todo # Filter by status
beans list --type feature # Filter by type
beans list --search "login" # Full-text search (Bleve query syntax)beans list # 列出所有beans
beans list --tag urgent # 按标签筛选
beans list --status todo # 按状态筛选
beans list --type feature # 按类型筛选
beans list --search "login" # 全文搜索(使用Bleve查询语法)beans update <id> --status in-progress
beans update <id> --title "New title"
beans update <id> --tag bug --remove-tag urgent
beans update <id> --priority high --type feature
beans update <id> --body "Updated scope notes"beans update <id> --status in-progress
beans update <id> --title "New title"
beans update <id> --tag bug --remove-tag urgent
beans update <id> --priority high --type feature
beans update <id> --body "Updated scope notes"beans show <id> # Show full bean details
beans show <id> --body-only # Only body content
beans show <id> --raw # Raw markdown (no styling)beans show <id> # 查看完整的bean详情
beans show <id> --body-only # 仅查看正文内容
beans show <id> --raw # 查看原始Markdown(无样式)beans delete <id> # Delete bean (prompts unless --force)
beans archive # Delete completed/scrapped beansbeans delete <id> # 删除bean(除非使用--force,否则会提示确认)
beans archive # 删除已完成/废弃的beansbeans check # Validate config and bean graph
beans check --fix # Auto-fix broken links/self-references
beans tui # Interactive terminal UIbeans check # 验证配置和bean关联图
beans check --fix # 自动修复损坏的链接/自引用
beans tui # 交互式终端UIbeans roadmap # Markdown roadmap from milestones/epics
beans graphql '{ beans { id title status } }'beans roadmap # 根据里程碑/史诗生成Markdown格式的路线图
beans graphql '{ beans { id title status } }'beans primebeans primebeans primebeans primeundefinedundefined// ~/.opencode/plugin/beans-prime.ts
import type { Plugin } from "@opencode-ai/plugin";
export const BeansPrimePlugin: Plugin = async ({ $, directory }) => {
let prime = undefined;
try {
const hasBeans = await $`which beans`.quiet();
const hasConfig = await $`test -f ${directory}/.beans.yml`.quiet();
if (hasBeans.exitCode === 0 && hasConfig.exitCode === 0) {
const result = await $`beans prime`.cwd(directory).quiet();
prime = result.stdout.toString();
}
} catch (e) {
// Silently skip if beans not available
}
return {
"experimental.chat.system.transform": async (_, output) => {
if (prime) output.system.push(prime);
},
"experimental.session.compacting": async (_, output) => {
if (prime) output.context.push(prime);
},
};
};
export default BeansPrimePlugin;// ~/.opencode/plugin/beans-prime.ts
import type { Plugin } from "@opencode-ai/plugin";
export const BeansPrimePlugin: Plugin = async ({ $, directory }) => {
let prime = undefined;
try {
const hasBeans = await $`which beans`.quiet();
const hasConfig = await $`test -f ${directory}/.beans.yml`.quiet();
if (hasBeans.exitCode === 0 && hasConfig.exitCode === 0) {
const result = await $`beans prime`.cwd(directory).quiet();
prime = result.stdout.toString();
}
} catch (e) {
// Silently skip if beans not available
}
return {
"experimental.chat.system.transform": async (_, output) => {
if (prime) output.system.push(prime);
},
"experimental.session.compacting": async (_, output) => {
if (prime) output.context.push(prime);
},
};
};
export default BeansPrimePlugin;undefinedundefinedbeans primeundefinedbeans primeundefinedundefinedundefinedundefinedundefinedgit add .beans/<bean-file> && git commit -m "beans: create <bean-title>"git add .beans/<bean-file> && git commit -m "beans: create <bean-title>"undefinedundefinedundefinedundefined.beans/---
id: 12345678
title: "Implement user login"
status: todo
tags: [feature, auth]
priority: high
created: 2024-01-15T10:00:00Z
updated: 2024-01-15T14:30:00Z
---.beans/---
id: 12345678
title: "Implement user login"
status: todo
tags: [feature, auth]
priority: high
created: 2024-01-15T10:00:00Z
updated: 2024-01-15T14:30:00Z
---undefinedundefined.beans.ymlundefined.beans.ymlundefined{{.Description}}undefined{{.Description}}undefined.beans.yml.beans/*.mdbeans prime.beans.yml.beans/*.mdbeans prime