@ionivetech/mugiwara 0.1.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/LICENSE +21 -0
- package/README.md +488 -0
- package/content/agents/brook-healing.md +36 -0
- package/content/agents/chopper-checkpoint.md +41 -0
- package/content/agents/eval-runner.md +44 -0
- package/content/agents/franky-gates.md +35 -0
- package/content/agents/jinbe-security.md +41 -0
- package/content/agents/luffy-orchestrator.md +44 -0
- package/content/agents/memory-keeper.md +37 -0
- package/content/agents/nami-planner.md +42 -0
- package/content/agents/resume-coordinator.md +39 -0
- package/content/agents/robin-reviewer.md +40 -0
- package/content/agents/sanji-quality.md +36 -0
- package/content/agents/skeptic-verifier.md +39 -0
- package/content/agents/using-mugiwara.md +36 -0
- package/content/agents/usopp-brainstorm.md +36 -0
- package/content/agents/zoro-execution.md +39 -0
- package/content/skills/mugiwara-agent-security/SKILL.md +58 -0
- package/content/skills/mugiwara-backend/SKILL.md +90 -0
- package/content/skills/mugiwara-brainstorm/SKILL.md +53 -0
- package/content/skills/mugiwara-checkpoint/SKILL.md +62 -0
- package/content/skills/mugiwara-dynamic-workflow/SKILL.md +85 -0
- package/content/skills/mugiwara-eval/SKILL.md +82 -0
- package/content/skills/mugiwara-execution/SKILL.md +81 -0
- package/content/skills/mugiwara-frontend/SKILL.md +122 -0
- package/content/skills/mugiwara-gates/SKILL.md +50 -0
- package/content/skills/mugiwara-git/SKILL.md +67 -0
- package/content/skills/mugiwara-healing/SKILL.md +62 -0
- package/content/skills/mugiwara-lessons/SKILL.md +57 -0
- package/content/skills/mugiwara-observability/SKILL.md +54 -0
- package/content/skills/mugiwara-orchestration/SKILL.md +55 -0
- package/content/skills/mugiwara-planning/SKILL.md +98 -0
- package/content/skills/mugiwara-quality/SKILL.md +39 -0
- package/content/skills/mugiwara-resume/SKILL.md +49 -0
- package/content/skills/mugiwara-review/SKILL.md +86 -0
- package/content/skills/mugiwara-security/SKILL.md +87 -0
- package/content/skills/mugiwara-ship/SKILL.md +58 -0
- package/content/skills/mugiwara-workflow/SKILL.md +90 -0
- package/dist/mugiwara.js +602 -0
- package/package.json +29 -0
- package/scripts/install.ps1 +14 -0
- package/scripts/install.sh +17 -0
- package/src/args.ts +31 -0
- package/src/cli.ts +187 -0
- package/src/frontmatter.ts +20 -0
- package/src/installer.ts +118 -0
- package/src/manifest.ts +29 -0
- package/src/prompt.ts +37 -0
- package/src/targets/antigravity.ts +10 -0
- package/src/targets/claude.ts +25 -0
- package/src/targets/cline.ts +10 -0
- package/src/targets/codex.ts +10 -0
- package/src/targets/copilot.ts +26 -0
- package/src/targets/gemini.ts +10 -0
- package/src/targets/generic.ts +43 -0
- package/src/targets/index.ts +14 -0
- package/src/targets/kilo.ts +10 -0
- package/src/targets/opencode.ts +25 -0
- package/src/targets/windsurf.ts +10 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// src/targets/opencode.ts
|
|
2
|
+
import { join } from 'node:path';
|
|
3
|
+
import { stringifyFrontmatter, type FrontmatterData } from '../frontmatter.ts';
|
|
4
|
+
import type { Target } from '../installer.ts';
|
|
5
|
+
|
|
6
|
+
export const target: Target = {
|
|
7
|
+
id: 'opencode',
|
|
8
|
+
label: 'opencode',
|
|
9
|
+
native: true,
|
|
10
|
+
paths({ scope, projectDir, home }) {
|
|
11
|
+
const root = scope === 'global' ? join(home, '.config', 'opencode') : join(projectDir, '.opencode');
|
|
12
|
+
return { skillsDir: join(root, 'skills'), agentsDir: join(root, 'agents') };
|
|
13
|
+
},
|
|
14
|
+
transformSkill(data: FrontmatterData, body: string) {
|
|
15
|
+
return {
|
|
16
|
+
relPath: join(data.name, 'SKILL.md'),
|
|
17
|
+
text: stringifyFrontmatter({ name: data.name, description: data.description }, body),
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
transformAgent(data: FrontmatterData, body: string) {
|
|
21
|
+
const fm: FrontmatterData = { name: data.name, description: data.description };
|
|
22
|
+
if (data.tools) fm.tools = data.tools;
|
|
23
|
+
return { relPath: `${data.name}.md`, text: stringifyFrontmatter(fm, body) };
|
|
24
|
+
},
|
|
25
|
+
};
|