opencodekit 0.21.10 → 0.22.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 (156) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/template/.opencode/AGENTS.md +116 -487
  3. package/dist/template/.opencode/README.md +1 -1
  4. package/dist/template/.opencode/agent/build.md +56 -396
  5. package/dist/template/.opencode/agent/explore.md +0 -1
  6. package/dist/template/.opencode/agent/review.md +0 -1
  7. package/dist/template/.opencode/agent/scout.md +0 -1
  8. package/dist/template/.opencode/agent/vision.md +0 -1
  9. package/dist/template/.opencode/command/clarify.md +48 -0
  10. package/dist/template/.opencode/command/commit.md +53 -0
  11. package/dist/template/.opencode/command/fix.md +56 -0
  12. package/dist/template/.opencode/command/improve-architecture.md +55 -0
  13. package/dist/template/.opencode/command/init.md +88 -68
  14. package/dist/template/.opencode/command/refactor.md +66 -0
  15. package/dist/template/.opencode/command/test.md +66 -0
  16. package/dist/template/.opencode/dcp.jsonc +13 -2
  17. package/dist/template/.opencode/memory/README.md +3 -5
  18. package/dist/template/.opencode/memory/_templates/adr.md +45 -0
  19. package/dist/template/.opencode/memory/project/gotchas.md +1 -1
  20. package/dist/template/.opencode/memory/session-context.md +1 -1
  21. package/dist/template/.opencode/plugin/README.md +1 -1
  22. package/dist/template/.opencode/plugin/guard.ts +62 -0
  23. package/dist/template/.opencode/plugin/{lib/memory-admin-tools.ts → memory/admin.ts} +4 -4
  24. package/dist/template/.opencode/plugin/{lib → memory}/capture.ts +1 -1
  25. package/dist/template/.opencode/plugin/{lib → memory}/compile.ts +2 -2
  26. package/dist/template/.opencode/plugin/{lib → memory}/context.ts +1 -1
  27. package/dist/template/.opencode/plugin/{lib → memory}/curator.ts +1 -1
  28. package/dist/template/.opencode/plugin/{lib → memory}/db/observations.ts +102 -3
  29. package/dist/template/.opencode/plugin/{lib → memory}/db/schema.ts +43 -1
  30. package/dist/template/.opencode/plugin/{lib → memory}/db/types.ts +22 -0
  31. package/dist/template/.opencode/plugin/{lib/memory-db.ts → memory/db.ts} +1 -1
  32. package/dist/template/.opencode/plugin/{lib → memory}/distill.ts +1 -1
  33. package/dist/template/.opencode/plugin/{lib/memory-helpers.ts → memory/helpers.ts} +5 -1
  34. package/dist/template/.opencode/plugin/{lib/memory-hooks.ts → memory/hooks.ts} +1 -1
  35. package/dist/template/.opencode/plugin/{lib → memory}/index-generator.ts +2 -2
  36. package/dist/template/.opencode/plugin/{lib → memory}/inject.ts +1 -1
  37. package/dist/template/.opencode/plugin/{lib → memory}/lint.ts +2 -2
  38. package/dist/template/.opencode/plugin/memory/tools.ts +322 -0
  39. package/dist/template/.opencode/plugin/{lib → memory}/validate.ts +2 -2
  40. package/dist/template/.opencode/plugin/memory.ts +7 -17
  41. package/dist/template/.opencode/plugin/srcwalk.ts +721 -0
  42. package/dist/template/.opencode/skill/agent-code-quality-gate/SKILL.md +98 -0
  43. package/dist/template/.opencode/skill/behavioral-kernel/SKILL.md +52 -0
  44. package/dist/template/.opencode/skill/browser-testing-with-devtools/SKILL.md +85 -0
  45. package/dist/template/.opencode/skill/code-cleanup/SKILL.md +114 -0
  46. package/dist/template/.opencode/skill/code-navigation/SKILL.md +142 -0
  47. package/dist/template/.opencode/skill/code-review-and-quality/SKILL.md +131 -0
  48. package/dist/template/.opencode/skill/debugging-and-error-recovery/SKILL.md +109 -0
  49. package/dist/template/.opencode/skill/deep-module-design/SKILL.md +207 -0
  50. package/dist/template/.opencode/skill/git-workflow-and-versioning/SKILL.md +77 -0
  51. package/dist/template/.opencode/skill/grill-me/SKILL.md +140 -0
  52. package/dist/template/.opencode/skill/memory-system/SKILL.md +9 -10
  53. package/dist/template/.opencode/skill/planning-and-task-breakdown/SKILL.md +116 -0
  54. package/dist/template/.opencode/skill/shipping-and-launch/SKILL.md +95 -0
  55. package/dist/template/.opencode/skill/source-driven-development/SKILL.md +103 -0
  56. package/dist/template/.opencode/skill/spec-driven-development/SKILL.md +121 -0
  57. package/dist/template/.opencode/skill/srcwalk/SKILL.md +161 -0
  58. package/dist/template/.opencode/skill/ubiquitous-language/SKILL.md +184 -0
  59. package/package.json +1 -1
  60. package/dist/template/.opencode/AGENT_ALIGNMENT.md +0 -564
  61. package/dist/template/.opencode/agent/painter.md +0 -83
  62. package/dist/template/.opencode/command/compound.md +0 -240
  63. package/dist/template/.opencode/command/curate.md +0 -299
  64. package/dist/template/.opencode/command/handoff.md +0 -149
  65. package/dist/template/.opencode/command/health.md +0 -356
  66. package/dist/template/.opencode/command/init-context.md +0 -297
  67. package/dist/template/.opencode/command/init-user.md +0 -125
  68. package/dist/template/.opencode/command/iterate.md +0 -200
  69. package/dist/template/.opencode/command/lfg.md +0 -173
  70. package/dist/template/.opencode/command/resume.md +0 -78
  71. package/dist/template/.opencode/command/status.md +0 -126
  72. package/dist/template/.opencode/command/ui-slop-check.md +0 -169
  73. package/dist/template/.opencode/plugin/lib/memory-tools.ts +0 -535
  74. package/dist/template/.opencode/skill/agent-evals/SKILL.md +0 -208
  75. package/dist/template/.opencode/skill/anti-ai-slop/SKILL.md +0 -76
  76. package/dist/template/.opencode/skill/augment-context-engine/SKILL.md +0 -122
  77. package/dist/template/.opencode/skill/augment-context-engine/mcp.json +0 -6
  78. package/dist/template/.opencode/skill/brand-asset-protocol/SKILL.md +0 -222
  79. package/dist/template/.opencode/skill/code-search-patterns/SKILL.md +0 -224
  80. package/dist/template/.opencode/skill/code-simplification/SKILL.md +0 -211
  81. package/dist/template/.opencode/skill/context-condensation/SKILL.md +0 -149
  82. package/dist/template/.opencode/skill/context-initialization/SKILL.md +0 -69
  83. package/dist/template/.opencode/skill/context-management/SKILL.md +0 -390
  84. package/dist/template/.opencode/skill/deep-research/SKILL.md +0 -384
  85. package/dist/template/.opencode/skill/design-direction-advisor/SKILL.md +0 -139
  86. package/dist/template/.opencode/skill/dispatching-parallel-agents/SKILL.md +0 -191
  87. package/dist/template/.opencode/skill/executing-plans/SKILL.md +0 -247
  88. package/dist/template/.opencode/skill/figma-go/SKILL.md +0 -65
  89. package/dist/template/.opencode/skill/finishing-a-development-branch/SKILL.md +0 -357
  90. package/dist/template/.opencode/skill/full-output-enforcement/SKILL.md +0 -62
  91. package/dist/template/.opencode/skill/gh-address-comments/SKILL.md +0 -29
  92. package/dist/template/.opencode/skill/gh-address-comments/scripts/fetch_comments.py +0 -237
  93. package/dist/template/.opencode/skill/gh-fix-ci/SKILL.md +0 -38
  94. package/dist/template/.opencode/skill/gh-fix-ci/scripts/inspect_pr_checks.py +0 -509
  95. package/dist/template/.opencode/skill/hi-fi-prototype-html/SKILL.md +0 -253
  96. package/dist/template/.opencode/skill/html-deck-export/SKILL.md +0 -189
  97. package/dist/template/.opencode/skill/index-knowledge/SKILL.md +0 -413
  98. package/dist/template/.opencode/skill/memory-grounding/SKILL.md +0 -68
  99. package/dist/template/.opencode/skill/playwriter/SKILL.md +0 -158
  100. package/dist/template/.opencode/skill/portless/SKILL.md +0 -109
  101. package/dist/template/.opencode/skill/prd/SKILL.md +0 -146
  102. package/dist/template/.opencode/skill/prd-task/SKILL.md +0 -182
  103. package/dist/template/.opencode/skill/prd-task/references/prd-schema.json +0 -124
  104. package/dist/template/.opencode/skill/prompt-leverage/SKILL.md +0 -90
  105. package/dist/template/.opencode/skill/prompt-leverage/references/framework.md +0 -91
  106. package/dist/template/.opencode/skill/prompt-leverage/scripts/augment_prompt.py +0 -157
  107. package/dist/template/.opencode/skill/receiving-code-review/SKILL.md +0 -263
  108. package/dist/template/.opencode/skill/reconcile/SKILL.md +0 -183
  109. package/dist/template/.opencode/skill/reflection-checkpoints/SKILL.md +0 -183
  110. package/dist/template/.opencode/skill/requesting-code-review/SKILL.md +0 -443
  111. package/dist/template/.opencode/skill/requesting-code-review/references/specialist-profiles.md +0 -108
  112. package/dist/template/.opencode/skill/requesting-code-review/review.md +0 -160
  113. package/dist/template/.opencode/skill/rtk-command-compression/SKILL.md +0 -134
  114. package/dist/template/.opencode/skill/screenshot/SKILL.md +0 -48
  115. package/dist/template/.opencode/skill/screenshot/scripts/ensure_macos_permissions.sh +0 -54
  116. package/dist/template/.opencode/skill/screenshot/scripts/macos_display_info.swift +0 -22
  117. package/dist/template/.opencode/skill/screenshot/scripts/macos_permissions.swift +0 -40
  118. package/dist/template/.opencode/skill/screenshot/scripts/macos_window_info.swift +0 -126
  119. package/dist/template/.opencode/skill/screenshot/scripts/take_screenshot.ps1 +0 -163
  120. package/dist/template/.opencode/skill/screenshot/scripts/take_screenshot.py +0 -585
  121. package/dist/template/.opencode/skill/security-threat-model/SKILL.md +0 -36
  122. package/dist/template/.opencode/skill/security-threat-model/references/prompt-template.md +0 -255
  123. package/dist/template/.opencode/skill/security-threat-model/references/security-controls-and-assets.md +0 -32
  124. package/dist/template/.opencode/skill/sharing-skills/SKILL.md +0 -214
  125. package/dist/template/.opencode/skill/skill-creator/SKILL.md +0 -181
  126. package/dist/template/.opencode/skill/skill-installer/SKILL.md +0 -58
  127. package/dist/template/.opencode/skill/skill-installer/scripts/github_utils.py +0 -21
  128. package/dist/template/.opencode/skill/skill-installer/scripts/install-skill-from-github.py +0 -313
  129. package/dist/template/.opencode/skill/skill-installer/scripts/list-skills.py +0 -106
  130. package/dist/template/.opencode/skill/swarm-coordination/SKILL.md +0 -244
  131. package/dist/template/.opencode/skill/swarm-coordination/references/architecture.md +0 -39
  132. package/dist/template/.opencode/skill/swarm-coordination/references/delegation-worker-protocol.md +0 -145
  133. package/dist/template/.opencode/skill/swarm-coordination/references/dependency-graph.md +0 -50
  134. package/dist/template/.opencode/skill/swarm-coordination/references/drift-check.md +0 -90
  135. package/dist/template/.opencode/skill/swarm-coordination/references/integration-beads.md +0 -20
  136. package/dist/template/.opencode/skill/swarm-coordination/references/launch-flow.md +0 -186
  137. package/dist/template/.opencode/skill/swarm-coordination/references/reconciler.md +0 -172
  138. package/dist/template/.opencode/skill/swarm-coordination/references/tier-enforcement.md +0 -78
  139. package/dist/template/.opencode/skill/swarm-coordination/references/tmux-integration.md +0 -134
  140. package/dist/template/.opencode/skill/systematic-debugging/SKILL.md +0 -402
  141. package/dist/template/.opencode/skill/terse-output-mode/SKILL.md +0 -95
  142. package/dist/template/.opencode/skill/think-in-code/SKILL.md +0 -136
  143. package/dist/template/.opencode/skill/ux-quality-gates/SKILL.md +0 -137
  144. package/dist/template/.opencode/skill/v1-run/SKILL.md +0 -175
  145. package/dist/template/.opencode/skill/v1-run/mcp.json +0 -6
  146. package/dist/template/.opencode/skill/verification-gates/SKILL.md +0 -63
  147. package/dist/template/.opencode/skill/visual-analysis/SKILL.md +0 -154
  148. package/dist/template/.opencode/skill/web-design-guidelines/SKILL.md +0 -46
  149. package/dist/template/.opencode/skill/workspace-setup/SKILL.md +0 -76
  150. package/dist/template/.opencode/skill/writing-plans/SKILL.md +0 -320
  151. /package/dist/template/.opencode/plugin/{lib → memory}/compact.ts +0 -0
  152. /package/dist/template/.opencode/plugin/{lib → memory}/db/graph.ts +0 -0
  153. /package/dist/template/.opencode/plugin/{lib → memory}/db/maintenance.ts +0 -0
  154. /package/dist/template/.opencode/plugin/{lib → memory}/db/pipeline.ts +0 -0
  155. /package/dist/template/.opencode/plugin/{lib → memory}/notify.ts +0 -0
  156. /package/dist/template/.opencode/plugin/{lib → memory}/operation-log.ts +0 -0
@@ -1,163 +0,0 @@
1
- param(
2
- [string]$Path,
3
- [ValidateSet("default", "temp")][string]$Mode = "default",
4
- [string]$Format = "png",
5
- [string]$Region,
6
- [switch]$ActiveWindow,
7
- [int]$WindowHandle
8
- )
9
-
10
- Set-StrictMode -Version Latest
11
- $ErrorActionPreference = "Stop"
12
-
13
- function Get-Timestamp {
14
- Get-Date -Format "yyyy-MM-dd_HH-mm-ss"
15
- }
16
-
17
- function Get-DefaultDirectory {
18
- $home = [Environment]::GetFolderPath("UserProfile")
19
- $pictures = Join-Path $home "Pictures"
20
- $screenshots = Join-Path $pictures "Screenshots"
21
- if (Test-Path $screenshots) { return $screenshots }
22
- if (Test-Path $pictures) { return $pictures }
23
- return $home
24
- }
25
-
26
- function New-DefaultFilename {
27
- param([string]$Prefix)
28
- if (-not $Prefix) { $Prefix = "screenshot" }
29
- "$Prefix-$(Get-Timestamp).$Format"
30
- }
31
-
32
- function Resolve-OutputPath {
33
- if ($Path) {
34
- $expanded = [Environment]::ExpandEnvironmentVariables($Path)
35
- $homeDir = [Environment]::GetFolderPath("UserProfile")
36
- if ($expanded -eq "~") {
37
- $expanded = $homeDir
38
- } elseif ($expanded.StartsWith("~/") -or $expanded.StartsWith("~\\")) {
39
- $expanded = Join-Path $homeDir $expanded.Substring(2)
40
- }
41
- $full = [System.IO.Path]::GetFullPath($expanded)
42
- if ((Test-Path $full) -and (Get-Item $full).PSIsContainer) {
43
- $full = Join-Path $full (New-DefaultFilename "")
44
- } elseif (($expanded.EndsWith("\") -or $expanded.EndsWith("/")) -and -not (Test-Path $full)) {
45
- New-Item -ItemType Directory -Path $full -Force | Out-Null
46
- $full = Join-Path $full (New-DefaultFilename "")
47
- } elseif ([System.IO.Path]::GetExtension($full) -eq "") {
48
- $full = "$full.$Format"
49
- }
50
- $parent = Split-Path -Parent $full
51
- if ($parent) {
52
- New-Item -ItemType Directory -Path $parent -Force | Out-Null
53
- }
54
- return $full
55
- }
56
-
57
- if ($Mode -eq "temp") {
58
- $tmp = [System.IO.Path]::GetTempPath()
59
- return Join-Path $tmp (New-DefaultFilename "codex-shot")
60
- }
61
-
62
- $dest = Get-DefaultDirectory
63
- return Join-Path $dest (New-DefaultFilename "")
64
- }
65
-
66
- function Parse-Region {
67
- if (-not $Region) { return $null }
68
- $parts = $Region.Split(",") | ForEach-Object { $_.Trim() }
69
- if ($parts.Length -ne 4) {
70
- throw "Region must be x,y,w,h"
71
- }
72
- $values = $parts | ForEach-Object {
73
- $out = 0
74
- if (-not [int]::TryParse($_, [ref]$out)) {
75
- throw "Region values must be integers"
76
- }
77
- $out
78
- }
79
- if ($values[2] -le 0 -or $values[3] -le 0) {
80
- throw "Region width and height must be positive"
81
- }
82
- return $values
83
- }
84
-
85
- if ($Region -and $ActiveWindow) {
86
- throw "Choose either -Region or -ActiveWindow"
87
- }
88
- if ($Region -and $WindowHandle) {
89
- throw "Choose either -Region or -WindowHandle"
90
- }
91
- if ($ActiveWindow -and $WindowHandle) {
92
- throw "Choose either -ActiveWindow or -WindowHandle"
93
- }
94
-
95
- $regionValues = Parse-Region
96
- $outputPath = Resolve-OutputPath
97
-
98
- Add-Type -AssemblyName System.Windows.Forms
99
- Add-Type -AssemblyName System.Drawing
100
-
101
- $imageFormat = switch ($Format.ToLowerInvariant()) {
102
- "png" { [System.Drawing.Imaging.ImageFormat]::Png }
103
- "jpg" { [System.Drawing.Imaging.ImageFormat]::Jpeg }
104
- "jpeg" { [System.Drawing.Imaging.ImageFormat]::Jpeg }
105
- "bmp" { [System.Drawing.Imaging.ImageFormat]::Bmp }
106
- default { throw "Unsupported format: $Format" }
107
- }
108
-
109
- Add-Type @"
110
- using System;
111
- using System.Runtime.InteropServices;
112
- public static class NativeMethods {
113
- [StructLayout(LayoutKind.Sequential)]
114
- public struct RECT {
115
- public int Left;
116
- public int Top;
117
- public int Right;
118
- public int Bottom;
119
- }
120
-
121
- [DllImport("user32.dll")]
122
- public static extern IntPtr GetForegroundWindow();
123
-
124
- [DllImport("user32.dll")]
125
- public static extern bool GetWindowRect(IntPtr hWnd, out RECT rect);
126
- }
127
- "@
128
-
129
- if ($regionValues) {
130
- $x = $regionValues[0]
131
- $y = $regionValues[1]
132
- $w = $regionValues[2]
133
- $h = $regionValues[3]
134
- $bounds = New-Object System.Drawing.Rectangle($x, $y, $w, $h)
135
- } elseif ($ActiveWindow -or $WindowHandle) {
136
- $handle = if ($WindowHandle) { [IntPtr]$WindowHandle } else { [NativeMethods]::GetForegroundWindow() }
137
- $rect = New-Object NativeMethods+RECT
138
- if (-not [NativeMethods]::GetWindowRect($handle, [ref]$rect)) {
139
- throw "Failed to get window bounds"
140
- }
141
- $width = $rect.Right - $rect.Left
142
- $height = $rect.Bottom - $rect.Top
143
- $bounds = New-Object System.Drawing.Rectangle($rect.Left, $rect.Top, $width, $height)
144
- } else {
145
- $vs = [System.Windows.Forms.SystemInformation]::VirtualScreen
146
- $bounds = New-Object System.Drawing.Rectangle($vs.Left, $vs.Top, $vs.Width, $vs.Height)
147
- }
148
-
149
- $bitmap = New-Object System.Drawing.Bitmap($bounds.Width, $bounds.Height)
150
- $graphics = [System.Drawing.Graphics]::FromImage($bitmap)
151
-
152
- try {
153
- $source = New-Object System.Drawing.Point($bounds.Left, $bounds.Top)
154
- $target = [System.Drawing.Point]::Empty
155
- $size = New-Object System.Drawing.Size($bounds.Width, $bounds.Height)
156
- $graphics.CopyFromScreen($source, $target, $size)
157
- $bitmap.Save($outputPath, $imageFormat)
158
- } finally {
159
- $graphics.Dispose()
160
- $bitmap.Dispose()
161
- }
162
-
163
- Write-Output $outputPath