vibecheck-agent 1.0.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.
Files changed (46) hide show
  1. package/dist/agent.d.ts +32 -0
  2. package/dist/agent.js +431 -0
  3. package/dist/agent.js.map +1 -0
  4. package/dist/claude.d.ts +52 -0
  5. package/dist/claude.js +246 -0
  6. package/dist/claude.js.map +1 -0
  7. package/dist/config.d.ts +12 -0
  8. package/dist/config.js +57 -0
  9. package/dist/config.js.map +1 -0
  10. package/dist/images.d.ts +19 -0
  11. package/dist/images.js +101 -0
  12. package/dist/images.js.map +1 -0
  13. package/dist/index.d.ts +2 -0
  14. package/dist/index.js +54 -0
  15. package/dist/index.js.map +1 -0
  16. package/dist/protocol.d.ts +163 -0
  17. package/dist/protocol.js +3 -0
  18. package/dist/protocol.js.map +1 -0
  19. package/dist/scheduler.d.ts +33 -0
  20. package/dist/scheduler.js +132 -0
  21. package/dist/scheduler.js.map +1 -0
  22. package/dist/screenshot.d.ts +28 -0
  23. package/dist/screenshot.js +356 -0
  24. package/dist/screenshot.js.map +1 -0
  25. package/dist/security.d.ts +25 -0
  26. package/dist/security.js +117 -0
  27. package/dist/security.js.map +1 -0
  28. package/dist/session.d.ts +4 -0
  29. package/dist/session.js +55 -0
  30. package/dist/session.js.map +1 -0
  31. package/dist/skills.d.ts +25 -0
  32. package/dist/skills.js +91 -0
  33. package/dist/skills.js.map +1 -0
  34. package/package.json +43 -0
  35. package/src/agent.ts +557 -0
  36. package/src/claude.ts +322 -0
  37. package/src/config.ts +61 -0
  38. package/src/images.ts +122 -0
  39. package/src/index.ts +73 -0
  40. package/src/protocol.ts +229 -0
  41. package/src/scheduler.ts +173 -0
  42. package/src/screenshot.ts +387 -0
  43. package/src/security.ts +158 -0
  44. package/src/session.ts +68 -0
  45. package/src/skills.ts +122 -0
  46. package/tsconfig.json +18 -0
package/src/skills.ts ADDED
@@ -0,0 +1,122 @@
1
+ /**
2
+ * Skills System
3
+ *
4
+ * A skill is a named preset that combines:
5
+ * - systemPrompt override → specialises Claude's behaviour
6
+ * - allowedTools override → restricts/expands what Claude may do
7
+ *
8
+ * Agent types (read-only research vs. full coding) are expressed as skills.
9
+ */
10
+
11
+ export interface Skill {
12
+ id: string;
13
+ name: string;
14
+ icon: string;
15
+ description: string;
16
+ /** Prepended / appended to Claude's default system prompt */
17
+ systemPrompt?: string;
18
+ /**
19
+ * If set, only these tools are available for this skill.
20
+ * Leave undefined to inherit the global allowedTools list.
21
+ */
22
+ allowedTools?: string[];
23
+ }
24
+
25
+ // ---------------------------------------------------------------------------
26
+ // Built-in skills
27
+ // ---------------------------------------------------------------------------
28
+
29
+ export const DEFAULT_SKILLS: Skill[] = [
30
+ // ── Agent types ──────────────────────────────────────────────────────────
31
+
32
+ {
33
+ id: "research",
34
+ name: "Research Agent",
35
+ icon: "🔭",
36
+ description: "Read-only — optimized for code analysis, documentation search, and information gathering",
37
+ systemPrompt:
38
+ "You are a research agent. You ONLY read and analyse — never modify files. " +
39
+ "Provide detailed, well-structured summaries and insights.",
40
+ allowedTools: ["Read", "Glob", "Grep", "WebFetch", "WebSearch"],
41
+ },
42
+ {
43
+ id: "coding",
44
+ name: "Coding Agent",
45
+ icon: "💻",
46
+ description: "File modification enabled — optimized for coding, refactoring, and bug fixes",
47
+ systemPrompt:
48
+ "You are an expert software engineer. Write clean, well-tested, idiomatic code. " +
49
+ "Explain every change you make.",
50
+ // No allowedTools restriction — uses the global list
51
+ },
52
+
53
+ // ── Quick-action skills ───────────────────────────────────────────────────
54
+
55
+ {
56
+ id: "code-review",
57
+ name: "Code Review",
58
+ icon: "🔍",
59
+ description: "Code quality, bug, security, and best practices inspection",
60
+ systemPrompt:
61
+ "You are a senior code reviewer. Focus on: bugs, security vulnerabilities, " +
62
+ "performance, readability, and adherence to best practices. " +
63
+ "Use a structured format: 🔴 Critical / 🟡 Warning / 🟢 Suggestion.",
64
+ allowedTools: ["Read", "Glob", "Grep"],
65
+ },
66
+ {
67
+ id: "test-runner",
68
+ name: "Test Runner",
69
+ icon: "🧪",
70
+ description: "Run test suite and summarize results",
71
+ systemPrompt:
72
+ "Run the project's test suite and provide a concise summary: total / passed / failed. " +
73
+ "For each failing test, show the error and suggest a fix.",
74
+ allowedTools: ["Read", "Bash", "Glob", "Grep"],
75
+ },
76
+ {
77
+ id: "dependency-audit",
78
+ name: "Dependency Audit",
79
+ icon: "📦",
80
+ description: "Check for outdated packages and vulnerabilities, suggest updates",
81
+ systemPrompt:
82
+ "Audit all project dependencies. Check for outdated packages and known vulnerabilities. " +
83
+ "Present results in a table and suggest specific update commands.",
84
+ allowedTools: ["Read", "Bash", "Glob"],
85
+ },
86
+ {
87
+ id: "git-summary",
88
+ name: "Git Summary",
89
+ icon: "📋",
90
+ description: "Summarize recent commits and changes",
91
+ systemPrompt:
92
+ "Summarise recent git history and staged changes in plain Korean. " +
93
+ "Highlight the most important changes and any potential issues.",
94
+ allowedTools: ["Read", "Bash"],
95
+ },
96
+ {
97
+ id: "doc-writer",
98
+ name: "Doc Writer",
99
+ icon: "📝",
100
+ description: "Auto-generate README, API docs, and comments",
101
+ systemPrompt:
102
+ "You are a technical writer. Generate clear, concise documentation in Korean (or English if the codebase is English). " +
103
+ "Follow existing documentation style when present.",
104
+ allowedTools: ["Read", "Write", "Edit", "Glob", "Grep"],
105
+ },
106
+ ];
107
+
108
+ // ---------------------------------------------------------------------------
109
+ // Lookup helpers
110
+ // ---------------------------------------------------------------------------
111
+
112
+ const skillMap = new Map<string, Skill>(
113
+ DEFAULT_SKILLS.map((s) => [s.id, s]),
114
+ );
115
+
116
+ export function getSkill(id: string): Skill | undefined {
117
+ return skillMap.get(id);
118
+ }
119
+
120
+ export function getAllSkills(): Skill[] {
121
+ return DEFAULT_SKILLS;
122
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "NodeNext",
5
+ "moduleResolution": "NodeNext",
6
+ "outDir": "./dist",
7
+ "rootDir": "./src",
8
+ "strict": true,
9
+ "esModuleInterop": true,
10
+ "declaration": true,
11
+ "sourceMap": true,
12
+ "skipLibCheck": true,
13
+ "forceConsistentCasingInFileNames": true,
14
+ "resolveJsonModule": true
15
+ },
16
+ "include": ["src/**/*"],
17
+ "exclude": ["node_modules", "dist"]
18
+ }