opencodekit 0.20.7 → 0.21.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/dist/index.js +1 -1
- package/dist/template/.opencode/AGENTS.md +60 -0
- package/dist/template/.opencode/agent/build.md +3 -2
- package/dist/template/.opencode/agent/explore.md +14 -14
- package/dist/template/.opencode/agent/general.md +1 -1
- package/dist/template/.opencode/agent/plan.md +1 -1
- package/dist/template/.opencode/agent/review.md +1 -1
- package/dist/template/.opencode/agent/vision.md +0 -9
- package/dist/template/.opencode/memory.db +0 -0
- package/dist/template/.opencode/memory.db-shm +0 -0
- package/dist/template/.opencode/memory.db-wal +0 -0
- package/dist/template/.opencode/opencode.json +83 -614
- package/dist/template/.opencode/opencodex-fast.jsonc +1 -1
- package/dist/template/.opencode/package.json +1 -1
- package/dist/template/.opencode/plugin/copilot-auth.ts +27 -12
- package/dist/template/.opencode/plugin/prompt-leverage.ts +193 -0
- package/dist/template/.opencode/plugin/prompt-leverage.ts.bak +228 -0
- package/dist/template/.opencode/plugin/sdk/copilot/copilot-provider.ts +14 -2
- package/dist/template/.opencode/plugin/sdk/copilot/index.ts +2 -2
- package/dist/template/.opencode/plugin/sdk/copilot/responses/convert-to-openai-responses-input.ts +335 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/map-openai-responses-finish-reason.ts +22 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/openai-config.ts +18 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/openai-error.ts +22 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/openai-responses-api-types.ts +214 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/openai-responses-language-model.ts +1770 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/openai-responses-prepare-tools.ts +173 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/openai-responses-settings.ts +1 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/tool/code-interpreter.ts +87 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/tool/file-search.ts +127 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/tool/image-generation.ts +114 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/tool/local-shell.ts +64 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/tool/web-search-preview.ts +103 -0
- package/dist/template/.opencode/plugin/sdk/copilot/responses/tool/web-search.ts +102 -0
- package/dist/template/.opencode/pnpm-lock.yaml +791 -9
- package/dist/template/.opencode/skill/api-and-interface-design/SKILL.md +162 -0
- package/dist/template/.opencode/skill/beads/SKILL.md +10 -9
- package/dist/template/.opencode/skill/beads/references/MULTI_AGENT.md +10 -10
- package/dist/template/.opencode/skill/ci-cd-and-automation/SKILL.md +202 -0
- package/dist/template/.opencode/skill/code-search-patterns/SKILL.md +253 -0
- package/dist/template/.opencode/skill/code-simplification/SKILL.md +211 -0
- package/dist/template/.opencode/skill/condition-based-waiting/SKILL.md +12 -0
- package/dist/template/.opencode/skill/defense-in-depth/SKILL.md +16 -6
- package/dist/template/.opencode/skill/deprecation-and-migration/SKILL.md +189 -0
- package/dist/template/.opencode/skill/development-lifecycle/SKILL.md +12 -48
- package/dist/template/.opencode/skill/documentation-and-adrs/SKILL.md +220 -0
- package/dist/template/.opencode/skill/gh-address-comments/SKILL.md +29 -0
- package/dist/template/.opencode/skill/gh-address-comments/scripts/fetch_comments.py +237 -0
- package/dist/template/.opencode/skill/gh-fix-ci/SKILL.md +38 -0
- package/dist/template/.opencode/skill/gh-fix-ci/scripts/inspect_pr_checks.py +509 -0
- package/dist/template/.opencode/skill/incremental-implementation/SKILL.md +191 -0
- package/dist/template/.opencode/skill/performance-optimization/SKILL.md +236 -0
- package/dist/template/.opencode/skill/prompt-leverage/SKILL.md +90 -0
- package/dist/template/.opencode/skill/prompt-leverage/references/framework.md +91 -0
- package/dist/template/.opencode/skill/prompt-leverage/scripts/augment_prompt.py +157 -0
- package/dist/template/.opencode/skill/receiving-code-review/SKILL.md +11 -0
- package/dist/template/.opencode/skill/screenshot/SKILL.md +48 -0
- package/dist/template/.opencode/skill/screenshot/scripts/ensure_macos_permissions.sh +54 -0
- package/dist/template/.opencode/skill/screenshot/scripts/macos_display_info.swift +22 -0
- package/dist/template/.opencode/skill/screenshot/scripts/macos_permissions.swift +40 -0
- package/dist/template/.opencode/skill/screenshot/scripts/macos_window_info.swift +126 -0
- package/dist/template/.opencode/skill/screenshot/scripts/take_screenshot.ps1 +163 -0
- package/dist/template/.opencode/skill/screenshot/scripts/take_screenshot.py +585 -0
- package/dist/template/.opencode/skill/security-and-hardening/SKILL.md +296 -0
- package/dist/template/.opencode/skill/security-threat-model/SKILL.md +36 -0
- package/dist/template/.opencode/skill/security-threat-model/references/prompt-template.md +255 -0
- package/dist/template/.opencode/skill/security-threat-model/references/security-controls-and-assets.md +32 -0
- package/dist/template/.opencode/skill/skill-installer/SKILL.md +58 -0
- package/dist/template/.opencode/skill/skill-installer/scripts/github_utils.py +21 -0
- package/dist/template/.opencode/skill/skill-installer/scripts/install-skill-from-github.py +313 -0
- package/dist/template/.opencode/skill/skill-installer/scripts/list-skills.py +106 -0
- package/dist/template/.opencode/skill/structured-edit/SKILL.md +10 -0
- package/dist/template/.opencode/skill/swarm-coordination/SKILL.md +66 -1
- package/package.json +1 -1
- package/dist/template/.opencode/skill/beads-bridge/SKILL.md +0 -321
- package/dist/template/.opencode/skill/code-navigation/SKILL.md +0 -130
- package/dist/template/.opencode/skill/mqdh/SKILL.md +0 -171
- package/dist/template/.opencode/skill/obsidian/SKILL.md +0 -192
- package/dist/template/.opencode/skill/obsidian/mcp.json +0 -22
- package/dist/template/.opencode/skill/pencil/SKILL.md +0 -72
- package/dist/template/.opencode/skill/ralph/SKILL.md +0 -296
- package/dist/template/.opencode/skill/tilth-cli/SKILL.md +0 -207
- package/dist/template/.opencode/skill/tool-priority/SKILL.md +0 -299
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { createProviderToolFactory } from "@ai-sdk/provider-utils"
|
|
2
|
+
import { z } from "zod/v4"
|
|
3
|
+
|
|
4
|
+
export const webSearchArgsSchema = z.object({
|
|
5
|
+
filters: z
|
|
6
|
+
.object({
|
|
7
|
+
allowedDomains: z.array(z.string()).optional(),
|
|
8
|
+
})
|
|
9
|
+
.optional(),
|
|
10
|
+
|
|
11
|
+
searchContextSize: z.enum(["low", "medium", "high"]).optional(),
|
|
12
|
+
|
|
13
|
+
userLocation: z
|
|
14
|
+
.object({
|
|
15
|
+
type: z.literal("approximate"),
|
|
16
|
+
country: z.string().optional(),
|
|
17
|
+
city: z.string().optional(),
|
|
18
|
+
region: z.string().optional(),
|
|
19
|
+
timezone: z.string().optional(),
|
|
20
|
+
})
|
|
21
|
+
.optional(),
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
export const webSearchToolFactory = createProviderToolFactory<
|
|
25
|
+
{
|
|
26
|
+
// Web search doesn't take input parameters - it's controlled by the prompt
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
/**
|
|
30
|
+
* Filters for the search.
|
|
31
|
+
*/
|
|
32
|
+
filters?: {
|
|
33
|
+
/**
|
|
34
|
+
* Allowed domains for the search.
|
|
35
|
+
* If not provided, all domains are allowed.
|
|
36
|
+
* Subdomains of the provided domains are allowed as well.
|
|
37
|
+
*/
|
|
38
|
+
allowedDomains?: string[]
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Search context size to use for the web search.
|
|
43
|
+
* - high: Most comprehensive context, highest cost, slower response
|
|
44
|
+
* - medium: Balanced context, cost, and latency (default)
|
|
45
|
+
* - low: Least context, lowest cost, fastest response
|
|
46
|
+
*/
|
|
47
|
+
searchContextSize?: "low" | "medium" | "high"
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* User location information to provide geographically relevant search results.
|
|
51
|
+
*/
|
|
52
|
+
userLocation?: {
|
|
53
|
+
/**
|
|
54
|
+
* Type of location (always 'approximate')
|
|
55
|
+
*/
|
|
56
|
+
type: "approximate"
|
|
57
|
+
/**
|
|
58
|
+
* Two-letter ISO country code (e.g., 'US', 'GB')
|
|
59
|
+
*/
|
|
60
|
+
country?: string
|
|
61
|
+
/**
|
|
62
|
+
* City name (free text, e.g., 'Minneapolis')
|
|
63
|
+
*/
|
|
64
|
+
city?: string
|
|
65
|
+
/**
|
|
66
|
+
* Region name (free text, e.g., 'Minnesota')
|
|
67
|
+
*/
|
|
68
|
+
region?: string
|
|
69
|
+
/**
|
|
70
|
+
* IANA timezone (e.g., 'America/Chicago')
|
|
71
|
+
*/
|
|
72
|
+
timezone?: string
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
>({
|
|
76
|
+
id: "openai.web_search",
|
|
77
|
+
inputSchema: z.object({
|
|
78
|
+
action: z
|
|
79
|
+
.discriminatedUnion("type", [
|
|
80
|
+
z.object({
|
|
81
|
+
type: z.literal("search"),
|
|
82
|
+
query: z.string().nullish(),
|
|
83
|
+
}),
|
|
84
|
+
z.object({
|
|
85
|
+
type: z.literal("open_page"),
|
|
86
|
+
url: z.string(),
|
|
87
|
+
}),
|
|
88
|
+
z.object({
|
|
89
|
+
type: z.literal("find"),
|
|
90
|
+
url: z.string(),
|
|
91
|
+
pattern: z.string(),
|
|
92
|
+
}),
|
|
93
|
+
])
|
|
94
|
+
.nullish(),
|
|
95
|
+
}),
|
|
96
|
+
})
|
|
97
|
+
|
|
98
|
+
export const webSearch = (
|
|
99
|
+
args: Parameters<typeof webSearchToolFactory>[0] = {}, // default
|
|
100
|
+
) => {
|
|
101
|
+
return webSearchToolFactory(args)
|
|
102
|
+
}
|