opencodekit 0.16.13 → 0.16.14

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 CHANGED
@@ -759,7 +759,7 @@ var cac = (name = "") => new CAC(name);
759
759
  // package.json
760
760
  var package_default = {
761
761
  name: "opencodekit",
762
- version: "0.16.13",
762
+ version: "0.16.14",
763
763
  description: "CLI tool for bootstrapping and managing OpenCodeKit projects",
764
764
  keywords: ["agents", "cli", "mcp", "opencode", "opencodekit", "template"],
765
765
  license: "MIT",
@@ -0,0 +1,88 @@
1
+ ---
2
+ name: context7
3
+ description: Retrieve up-to-date documentation for software libraries, frameworks, and components via the Context7 API. This skill should be used when looking up documentation for any programming library or framework, finding code examples for specific APIs or features, verifying correct usage of library functions, or obtaining current information about library APIs that may have changed since training.
4
+ ---
5
+
6
+ # Context7
7
+
8
+ ## Overview
9
+
10
+ This skill enables retrieval of current documentation for software libraries and components by querying the Context7 API via curl. Use it instead of relying on potentially outdated training data.
11
+
12
+ ## Workflow
13
+
14
+ ### Step 1: Search for the Library
15
+
16
+ To find the Context7 library ID, query the search endpoint:
17
+
18
+ ```bash
19
+ curl -s "https://context7.com/api/v2/libs/search?libraryName=LIBRARY_NAME&query=TOPIC" | jq '.results[0]'
20
+ ```
21
+
22
+ **Parameters:**
23
+
24
+ - `libraryName` (required): The library name to search for (e.g., "react", "nextjs", "fastapi", "axios")
25
+ - `query` (required): A description of the topic for relevance ranking
26
+
27
+ **Response fields:**
28
+
29
+ - `id`: Library identifier for the context endpoint (e.g., `/websites/react_dev_reference`)
30
+ - `title`: Human-readable library name
31
+ - `description`: Brief description of the library
32
+ - `totalSnippets`: Number of documentation snippets available
33
+
34
+ ### Step 2: Fetch Documentation
35
+
36
+ To retrieve documentation, use the library ID from step 1:
37
+
38
+ ```bash
39
+ curl -s "https://context7.com/api/v2/context?libraryId=LIBRARY_ID&query=TOPIC&type=txt"
40
+ ```
41
+
42
+ **Parameters:**
43
+
44
+ - `libraryId` (required): The library ID from search results
45
+ - `query` (required): The specific topic to retrieve documentation for
46
+ - `type` (optional): Response format - `json` (default) or `txt` (plain text, more readable)
47
+
48
+ ## Examples
49
+
50
+ ### React hooks documentation
51
+
52
+ ```bash
53
+ # Find React library ID
54
+ curl -s "https://context7.com/api/v2/libs/search?libraryName=react&query=hooks" | jq '.results[0].id'
55
+ # Returns: "/websites/react_dev_reference"
56
+
57
+ # Fetch useState documentation
58
+ curl -s "https://context7.com/api/v2/context?libraryId=/websites/react_dev_reference&query=useState&type=txt"
59
+ ```
60
+
61
+ ### Next.js routing documentation
62
+
63
+ ```bash
64
+ # Find Next.js library ID
65
+ curl -s "https://context7.com/api/v2/libs/search?libraryName=nextjs&query=routing" | jq '.results[0].id'
66
+
67
+ # Fetch app router documentation
68
+ curl -s "https://context7.com/api/v2/context?libraryId=/vercel/next.js&query=app+router&type=txt"
69
+ ```
70
+
71
+ ### FastAPI dependency injection
72
+
73
+ ```bash
74
+ # Find FastAPI library ID
75
+ curl -s "https://context7.com/api/v2/libs/search?libraryName=fastapi&query=dependencies" | jq '.results[0].id'
76
+
77
+ # Fetch dependency injection documentation
78
+ curl -s "https://context7.com/api/v2/context?libraryId=/fastapi/fastapi&query=dependency+injection&type=txt"
79
+ ```
80
+
81
+ ## Tips
82
+
83
+ - Use `type=txt` for more readable output
84
+ - Use `jq` to filter and format JSON responses
85
+ - Be specific with the `query` parameter to improve relevance ranking
86
+ - If the first search result is not correct, check additional results in the array
87
+ - URL-encode query parameters containing spaces (use `+` or `%20`)
88
+ - No API key is required for basic usage (rate-limited)
@@ -1,81 +1,81 @@
1
1
  {
2
- "$schema": "https://raw.githubusercontent.com/Opencode-DCP/opencode-dynamic-context-pruning/master/dcp.schema.json",
3
- "enabled": true,
4
- "debug": false,
5
- // "minimal" shows prune activity without noise; "detailed" shows token counts
6
- "pruneNotification": "off",
7
- // "chat" (in-conversation) or "toast" (system notification)
8
- "pruneNotificationType": "chat",
9
- // Commands: /dcp context, /dcp stats, /dcp sweep
10
- "commands": {
11
- "enabled": true,
12
- // Protect these from /dcp sweep
13
- "protectedTools": ["observation", "memory-update", "memory-search"],
14
- },
15
- "turnProtection": {
16
- "enabled": true,
17
- "turns": 4,
18
- },
19
- // Protected file patterns - never auto-prune reads of these files
20
- "protectedFilePatterns": [
21
- "**/.env*",
22
- "**/AGENTS.md",
23
- "**/.opencode/**",
24
- "**/.beads/**",
25
- "**/package.json",
26
- "**/tsconfig.json",
27
- "**/biome.json",
28
- ],
29
- "tools": {
30
- "settings": {
31
- "nudgeEnabled": true,
32
- "nudgeFrequency": 10,
33
- // Trigger compression at ~94% of Copilot's 128k context limit
34
- "contextLimit": 136000,
35
- // Protect state-modifying and critical workflow tools
36
- // LSP excluded: ephemeral exploration, prune after understanding
37
- "protectedTools": [
38
- "write",
39
- "edit",
40
- "memory-update",
41
- "observation",
42
- "skill",
43
- "skill_mcp",
44
- "task",
45
- "batch",
46
- "todowrite",
47
- "todoread",
48
- ],
49
- },
50
- // v2.0.0: permission model - "allow", "ask", or "deny"
51
- "prune": {
52
- "permission": "allow",
53
- },
54
- "distill": {
55
- "permission": "allow",
56
- "showDistillation": false,
57
- },
2
+ "$schema": "https://raw.githubusercontent.com/Opencode-DCP/opencode-dynamic-context-pruning/master/dcp.schema.json",
3
+ "enabled": true,
4
+ "debug": false,
5
+ // "minimal" shows prune activity without noise; "detailed" shows token counts
6
+ "pruneNotification": "off",
7
+ // "chat" (in-conversation) or "toast" (system notification)
8
+ "pruneNotificationType": "chat",
9
+ // Commands: /dcp context, /dcp stats, /dcp sweep
10
+ "commands": {
11
+ "enabled": true,
12
+ // Protect these from /dcp sweep
13
+ "protectedTools": ["observation", "memory-update", "memory-search"]
14
+ },
15
+ "turnProtection": {
16
+ "enabled": true,
17
+ "turns": 4
18
+ },
19
+ // Protected file patterns - never auto-prune reads of these files
20
+ "protectedFilePatterns": [
21
+ "**/.env*",
22
+ "**/AGENTS.md",
23
+ "**/.opencode/**",
24
+ "**/.beads/**",
25
+ "**/package.json",
26
+ "**/tsconfig.json",
27
+ "**/biome.json"
28
+ ],
29
+ "tools": {
30
+ "settings": {
31
+ "nudgeEnabled": true,
32
+ "nudgeFrequency": 10,
33
+ // v2.0.1: percentage support - 90% of model's 128k context
34
+ "contextLimit": "90%",
35
+ // Protect state-modifying and critical workflow tools
36
+ // LSP excluded: ephemeral exploration, prune after understanding
37
+ "protectedTools": [
38
+ "write",
39
+ "edit",
40
+ "memory-update",
41
+ "observation",
42
+ "skill",
43
+ "skill_mcp",
44
+ "task",
45
+ "batch",
46
+ "todowrite",
47
+ "todoread"
48
+ ]
49
+ },
50
+ // v2.0.0: permission model - "allow", "ask", or "deny"
51
+ "prune": {
52
+ "permission": "allow"
53
+ },
54
+ "distill": {
55
+ "permission": "allow",
56
+ "showDistillation": false
57
+ },
58
58
  "compress": {
59
- "permission": "ask",
59
+ // v2.0.1: compress is experimental, deny by default
60
+ "permission": "deny",
60
61
  "showCompression": false,
61
62
  },
62
- },
63
- "strategies": {
64
- // Dedup = zero LLM cost, high impact - always enable
65
- "deduplication": {
66
- "enabled": true,
67
- "protectedTools": [],
68
- },
69
- // Supersede writes = zero cost, removes redundant write inputs after read
70
- // Note: default changed to false in beta, we explicitly enable
71
- "supersedeWrites": {
72
- "enabled": true,
73
- },
74
- // Purge error inputs after N turns
75
- "purgeErrors": {
76
- "enabled": true,
77
- "turns": 4,
78
- "protectedTools": [],
79
- },
80
- },
63
+ "strategies": {
64
+ // Dedup = zero LLM cost, high impact - always enable
65
+ "deduplication": {
66
+ "enabled": true,
67
+ "protectedTools": []
68
+ },
69
+ // Supersede writes = zero cost, removes redundant write inputs after read
70
+ // Note: default changed to false in beta, we explicitly enable
71
+ "supersedeWrites": {
72
+ "enabled": true
73
+ },
74
+ // Purge error inputs after N turns
75
+ "purgeErrors": {
76
+ "enabled": true,
77
+ "turns": 4,
78
+ "protectedTools": []
79
+ }
80
+ }
81
81
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencodekit",
3
- "version": "0.16.13",
3
+ "version": "0.16.14",
4
4
  "description": "CLI tool for bootstrapping and managing OpenCodeKit projects",
5
5
  "keywords": ["agents", "cli", "mcp", "opencode", "opencodekit", "template"],
6
6
  "license": "MIT",