opencodekit 0.16.2 → 0.16.3
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/dist/index.js +16 -4
- package/dist/template/.opencode/agent/scout.md +52 -6
- package/dist/template/.opencode/command/research.md +8 -4
- package/dist/template/.opencode/memory.db-shm +0 -0
- package/dist/template/.opencode/memory.db-wal +0 -0
- package/dist/template/.opencode/skill/v1-run/SKILL.md +165 -0
- package/dist/template/.opencode/skill/v1-run/mcp.json +6 -0
- package/package.json +16 -4
package/dist/index.js
CHANGED
|
@@ -750,9 +750,16 @@ var cac = (name = "") => new CAC(name);
|
|
|
750
750
|
// package.json
|
|
751
751
|
var package_default = {
|
|
752
752
|
name: "opencodekit",
|
|
753
|
-
version: "0.16.
|
|
753
|
+
version: "0.16.3",
|
|
754
754
|
description: "CLI tool for bootstrapping and managing OpenCodeKit projects",
|
|
755
|
-
keywords: [
|
|
755
|
+
keywords: [
|
|
756
|
+
"agents",
|
|
757
|
+
"cli",
|
|
758
|
+
"mcp",
|
|
759
|
+
"opencode",
|
|
760
|
+
"opencodekit",
|
|
761
|
+
"template"
|
|
762
|
+
],
|
|
756
763
|
license: "MIT",
|
|
757
764
|
author: "OpenCodeKit",
|
|
758
765
|
repository: {
|
|
@@ -762,7 +769,10 @@ var package_default = {
|
|
|
762
769
|
bin: {
|
|
763
770
|
ock: "dist/index.js"
|
|
764
771
|
},
|
|
765
|
-
files: [
|
|
772
|
+
files: [
|
|
773
|
+
"dist",
|
|
774
|
+
"README.md"
|
|
775
|
+
],
|
|
766
776
|
type: "module",
|
|
767
777
|
publishConfig: {
|
|
768
778
|
access: "public",
|
|
@@ -808,7 +818,9 @@ var package_default = {
|
|
|
808
818
|
engines: {
|
|
809
819
|
bun: ">=1.3.2"
|
|
810
820
|
},
|
|
811
|
-
trustedDependencies: [
|
|
821
|
+
trustedDependencies: [
|
|
822
|
+
"@beads/bd"
|
|
823
|
+
]
|
|
812
824
|
};
|
|
813
825
|
|
|
814
826
|
// src/commands/agent.ts
|
|
@@ -130,15 +130,61 @@ To construct a permalink: use `grepsearch` to find code, then build the URL from
|
|
|
130
130
|
| Priority | Tool | Use Case | Speed |
|
|
131
131
|
| -------- | ------------- | ----------------------------------------- | ------- |
|
|
132
132
|
| 1 | memory-search | Past research findings | Instant |
|
|
133
|
-
| 2 |
|
|
134
|
-
| 3 |
|
|
135
|
-
| 4 |
|
|
136
|
-
| 5 |
|
|
137
|
-
| 6 |
|
|
138
|
-
| 7 |
|
|
133
|
+
| 2 | v1-run | npm package health, vulns, comparisons | Fast |
|
|
134
|
+
| 3 | context7 | Official library docs | Fast |
|
|
135
|
+
| 4 | codesearch | Exa Code API for SDK/library patterns | Fast |
|
|
136
|
+
| 5 | grepsearch | Cross-repo GitHub code search (1M+ repos) | Medium |
|
|
137
|
+
| 6 | webfetch | Specific doc URLs, READMEs, changelogs | Medium |
|
|
138
|
+
| 7 | opensrc + LSP | Clone & analyze source code | Slow |
|
|
139
|
+
| 8 | websearch | Tutorials, blog posts, recent news | Slow |
|
|
139
140
|
|
|
140
141
|
**Rule:** Exhaust faster tools before slower ones. Run tools in parallel when independent.
|
|
141
142
|
|
|
143
|
+
## v1-run MCP (npm Package Intelligence)
|
|
144
|
+
|
|
145
|
+
Use for npm package evaluation before adding dependencies. Load the skill first:
|
|
146
|
+
|
|
147
|
+
```typescript
|
|
148
|
+
skill({ name: "v1-run" });
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Primary Tool: get_package_health
|
|
152
|
+
|
|
153
|
+
```typescript
|
|
154
|
+
// Comprehensive health check (use this first)
|
|
155
|
+
skill_mcp({ skill_name: "v1-run", tool_name: "get_package_health", arguments: '{"name": "zod"}' });
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
Returns: version, vulnerabilities, health score (0-100), downloads, TypeScript support, maintenance status, AI recommendation.
|
|
159
|
+
|
|
160
|
+
### Compare Packages
|
|
161
|
+
|
|
162
|
+
```typescript
|
|
163
|
+
// Side-by-side comparison (2-5 packages)
|
|
164
|
+
skill_mcp({
|
|
165
|
+
skill_name: "v1-run",
|
|
166
|
+
tool_name: "compare_packages",
|
|
167
|
+
arguments: '{"packages": ["zod", "yup", "joi"]}',
|
|
168
|
+
});
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### Other Tools
|
|
172
|
+
|
|
173
|
+
| Tool | Use Case |
|
|
174
|
+
| ----------------------- | ------------------------------------- |
|
|
175
|
+
| `check_vulnerabilities` | Security audit for specific version |
|
|
176
|
+
| `check_deprecated` | Check if package is deprecated |
|
|
177
|
+
| `find_alternatives` | Discover better options for a package |
|
|
178
|
+
| `check_types` | Verify TypeScript support |
|
|
179
|
+
| `get_package_version` | Get latest version only |
|
|
180
|
+
|
|
181
|
+
**When to use v1-run:**
|
|
182
|
+
|
|
183
|
+
- Choosing between npm packages → `compare_packages`
|
|
184
|
+
- Before adding a dependency → `get_package_health`
|
|
185
|
+
- Security audit → `check_vulnerabilities`
|
|
186
|
+
- Package seems abandoned → `find_alternatives`
|
|
187
|
+
|
|
142
188
|
## context7 Tools
|
|
143
189
|
|
|
144
190
|
Use to access up-to-date library documentation (37.6k+ libraries).
|
|
@@ -23,6 +23,9 @@ if (thorough) {
|
|
|
23
23
|
skill({ name: "deep-research" });
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
// For npm package evaluation
|
|
27
|
+
skill({ name: "v1-run" });
|
|
28
|
+
|
|
26
29
|
// For source code analysis
|
|
27
30
|
skill({ name: "source-code-research" });
|
|
28
31
|
|
|
@@ -149,10 +152,11 @@ If memory search fails (Ollama not running), continue to external sources.
|
|
|
149
152
|
|
|
150
153
|
1. **Codebase patterns** (highest trust) - Delegate to @explore for LSP analysis
|
|
151
154
|
2. **Official docs** (high trust) - What does the library documentation say?
|
|
152
|
-
3. **
|
|
153
|
-
4. **
|
|
154
|
-
5. **
|
|
155
|
-
6. **
|
|
155
|
+
3. **v1-run** (high trust) - npm package health, vulnerabilities, comparisons
|
|
156
|
+
4. **Context7** (high trust) - API usage and examples
|
|
157
|
+
5. **Source code** (high trust) - Library implementation (use `source-code-research` skill)
|
|
158
|
+
6. **GitHub examples** (medium trust) - Real-world patterns via codesearch/grepsearch
|
|
159
|
+
7. **Web search** (lower trust) - Only if tiers 1-6 don't answer
|
|
156
160
|
|
|
157
161
|
## Research
|
|
158
162
|
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: v1-run
|
|
3
|
+
description: npm package intelligence via MCP. Real-time versions, vulnerability data, health scores, and package comparisons. Use when selecting npm packages, checking for vulnerabilities, or comparing alternatives.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# v1.run MCP
|
|
7
|
+
|
|
8
|
+
Fast, accurate npm package intelligence for AI agents via Model Context Protocol.
|
|
9
|
+
|
|
10
|
+
## Overview
|
|
11
|
+
|
|
12
|
+
v1.run is an MCP-first npm registry by Midday.ai that provides:
|
|
13
|
+
|
|
14
|
+
- **Real-time version data** - No hallucinated packages
|
|
15
|
+
- **Security vulnerabilities** - From OSV database
|
|
16
|
+
- **Health scores** - Automated 0-100 scoring
|
|
17
|
+
- **Package comparisons** - 50+ pre-built categories
|
|
18
|
+
|
|
19
|
+
## MCP Endpoint
|
|
20
|
+
|
|
21
|
+
**URL**: `https://api.v1.run/mcp`
|
|
22
|
+
|
|
23
|
+
**Authentication**: None required (public API)
|
|
24
|
+
|
|
25
|
+
## Configuration
|
|
26
|
+
|
|
27
|
+
v1.run MCP is pre-configured as a skill. Load it with:
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
skill({ name: "v1-run" });
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Manual Setup (if needed)
|
|
34
|
+
|
|
35
|
+
```json
|
|
36
|
+
{
|
|
37
|
+
"mcpServers": {
|
|
38
|
+
"v1": {
|
|
39
|
+
"url": "https://api.v1.run/mcp"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Available Tools
|
|
46
|
+
|
|
47
|
+
| Tool | Description |
|
|
48
|
+
| ----------------------- | ----------------------------------------------------------------------------------------------------------------- |
|
|
49
|
+
| `get_package_health` | Comprehensive health assessment (primary tool) - version, vulns, score, downloads, TS support, AI recommendations |
|
|
50
|
+
| `get_package_version` | Get latest version of a package |
|
|
51
|
+
| `check_deprecated` | Check if package is deprecated + get alternatives |
|
|
52
|
+
| `check_types` | Check TypeScript support (bundled or @types) |
|
|
53
|
+
| `check_vulnerabilities` | Security vulnerabilities from OSV database |
|
|
54
|
+
| `find_alternatives` | Find alternative packages with recommendations |
|
|
55
|
+
| `compare_packages` | Side-by-side comparison (2-5 packages) |
|
|
56
|
+
|
|
57
|
+
## Health Score System
|
|
58
|
+
|
|
59
|
+
Packages are scored 0-100 based on:
|
|
60
|
+
|
|
61
|
+
| Factor | Weight | Measures |
|
|
62
|
+
| ----------- | ------ | --------------------------------------- |
|
|
63
|
+
| Downloads | 20% | Weekly downloads + trend direction |
|
|
64
|
+
| Bundle Size | 20% | Smaller gzip = higher score |
|
|
65
|
+
| Freshness | 25% | Recent commits and releases |
|
|
66
|
+
| Community | 10% | Stars, contributors |
|
|
67
|
+
| Quality | 25% | TypeScript, ESM, security, tree-shaking |
|
|
68
|
+
|
|
69
|
+
## Usage Examples
|
|
70
|
+
|
|
71
|
+
### Check Package Health
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
// Get comprehensive health info for a package (primary tool)
|
|
75
|
+
skill_mcp({ skill_name: "v1-run", tool_name: "get_package_health", arguments: '{"name": "zod"}' });
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Response includes:
|
|
79
|
+
|
|
80
|
+
- Latest version
|
|
81
|
+
- Known vulnerabilities (CVEs)
|
|
82
|
+
- Health score (0-100) with grade
|
|
83
|
+
- Weekly downloads + trend
|
|
84
|
+
- TypeScript support
|
|
85
|
+
- Maintenance status
|
|
86
|
+
- AI recommendation
|
|
87
|
+
|
|
88
|
+
### Check for Deprecation
|
|
89
|
+
|
|
90
|
+
```typescript
|
|
91
|
+
// Check if package is deprecated and get alternatives
|
|
92
|
+
skill_mcp({
|
|
93
|
+
skill_name: "v1-run",
|
|
94
|
+
tool_name: "check_deprecated",
|
|
95
|
+
arguments: '{"name": "request"}',
|
|
96
|
+
});
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Check Vulnerabilities
|
|
100
|
+
|
|
101
|
+
```typescript
|
|
102
|
+
// Check specific version for security issues
|
|
103
|
+
skill_mcp({
|
|
104
|
+
skill_name: "v1-run",
|
|
105
|
+
tool_name: "check_vulnerabilities",
|
|
106
|
+
arguments: '{"name": "lodash", "version": "4.17.20"}',
|
|
107
|
+
});
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Find Alternatives
|
|
111
|
+
|
|
112
|
+
```typescript
|
|
113
|
+
// Find alternative packages
|
|
114
|
+
skill_mcp({
|
|
115
|
+
skill_name: "v1-run",
|
|
116
|
+
tool_name: "find_alternatives",
|
|
117
|
+
arguments: '{"name": "moment"}',
|
|
118
|
+
});
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Compare Packages
|
|
122
|
+
|
|
123
|
+
```typescript
|
|
124
|
+
// Compare similar packages (2-5 packages)
|
|
125
|
+
skill_mcp({
|
|
126
|
+
skill_name: "v1-run",
|
|
127
|
+
tool_name: "compare_packages",
|
|
128
|
+
arguments: '{"packages": ["zod", "yup", "joi", "valibot"]}',
|
|
129
|
+
});
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## Pre-built Categories (50+)
|
|
133
|
+
|
|
134
|
+
v1.run includes comparisons for popular package categories:
|
|
135
|
+
|
|
136
|
+
- **HTTP clients**: axios, got, ky, node-fetch
|
|
137
|
+
- **Date libraries**: moment, date-fns, dayjs, luxon
|
|
138
|
+
- **Validation**: zod, yup, joi, ajv, valibot
|
|
139
|
+
- **State management**: redux, zustand, jotai, recoil
|
|
140
|
+
- **ORM**: prisma, drizzle, typeorm, sequelize
|
|
141
|
+
- **Testing**: vitest, jest, mocha, ava
|
|
142
|
+
- **Bundlers**: vite, esbuild, webpack, rollup
|
|
143
|
+
- **Logging**: pino, winston, bunyan
|
|
144
|
+
|
|
145
|
+
## When to Use
|
|
146
|
+
|
|
147
|
+
Use v1.run MCP when:
|
|
148
|
+
|
|
149
|
+
1. **Choosing between packages** - Get objective comparisons
|
|
150
|
+
2. **Checking for vulnerabilities** - Before adding dependencies
|
|
151
|
+
3. **Evaluating maintenance** - Is the package actively maintained?
|
|
152
|
+
4. **Finding alternatives** - Discover better options for a package
|
|
153
|
+
|
|
154
|
+
## Best Practices
|
|
155
|
+
|
|
156
|
+
1. **Always check health** before adding new dependencies
|
|
157
|
+
2. **Compare alternatives** when multiple packages solve the same problem
|
|
158
|
+
3. **Verify TypeScript support** for TypeScript projects
|
|
159
|
+
4. **Check bundle size** for frontend applications
|
|
160
|
+
|
|
161
|
+
## Documentation
|
|
162
|
+
|
|
163
|
+
- [v1.run](https://v1.run)
|
|
164
|
+
- [GitHub: midday-ai/v1](https://github.com/midday-ai/v1)
|
|
165
|
+
- [MCP Documentation](https://modelcontextprotocol.io)
|
package/package.json
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencodekit",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.3",
|
|
4
4
|
"description": "CLI tool for bootstrapping and managing OpenCodeKit projects",
|
|
5
|
-
"keywords": [
|
|
5
|
+
"keywords": [
|
|
6
|
+
"agents",
|
|
7
|
+
"cli",
|
|
8
|
+
"mcp",
|
|
9
|
+
"opencode",
|
|
10
|
+
"opencodekit",
|
|
11
|
+
"template"
|
|
12
|
+
],
|
|
6
13
|
"license": "MIT",
|
|
7
14
|
"author": "OpenCodeKit",
|
|
8
15
|
"repository": {
|
|
@@ -12,7 +19,10 @@
|
|
|
12
19
|
"bin": {
|
|
13
20
|
"ock": "dist/index.js"
|
|
14
21
|
},
|
|
15
|
-
"files": [
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"README.md"
|
|
25
|
+
],
|
|
16
26
|
"type": "module",
|
|
17
27
|
"publishConfig": {
|
|
18
28
|
"access": "public",
|
|
@@ -58,5 +68,7 @@
|
|
|
58
68
|
"engines": {
|
|
59
69
|
"bun": ">=1.3.2"
|
|
60
70
|
},
|
|
61
|
-
"trustedDependencies": [
|
|
71
|
+
"trustedDependencies": [
|
|
72
|
+
"@beads/bd"
|
|
73
|
+
]
|
|
62
74
|
}
|