opencodekit 0.20.8 → 0.21.1

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 (48) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/template/.opencode/AGENTS.md +25 -1
  3. package/dist/template/.opencode/memory.db +0 -0
  4. package/dist/template/.opencode/memory.db-shm +0 -0
  5. package/dist/template/.opencode/memory.db-wal +0 -0
  6. package/dist/template/.opencode/opencode.json +83 -609
  7. package/dist/template/.opencode/opencodex-fast.jsonc +1 -1
  8. package/dist/template/.opencode/package.json +2 -2
  9. package/dist/template/.opencode/plugin/copilot-auth.ts +86 -12
  10. package/dist/template/.opencode/plugin/prompt-leverage.ts +191 -0
  11. package/dist/template/.opencode/plugin/sdk/copilot/copilot-provider.ts +14 -2
  12. package/dist/template/.opencode/plugin/sdk/copilot/index.ts +2 -2
  13. package/dist/template/.opencode/plugin/sdk/copilot/responses/convert-to-openai-responses-input.ts +335 -0
  14. package/dist/template/.opencode/plugin/sdk/copilot/responses/map-openai-responses-finish-reason.ts +22 -0
  15. package/dist/template/.opencode/plugin/sdk/copilot/responses/openai-config.ts +18 -0
  16. package/dist/template/.opencode/plugin/sdk/copilot/responses/openai-error.ts +22 -0
  17. package/dist/template/.opencode/plugin/sdk/copilot/responses/openai-responses-api-types.ts +214 -0
  18. package/dist/template/.opencode/plugin/sdk/copilot/responses/openai-responses-language-model.ts +1770 -0
  19. package/dist/template/.opencode/plugin/sdk/copilot/responses/openai-responses-prepare-tools.ts +173 -0
  20. package/dist/template/.opencode/plugin/sdk/copilot/responses/openai-responses-settings.ts +1 -0
  21. package/dist/template/.opencode/plugin/sdk/copilot/responses/tool/code-interpreter.ts +87 -0
  22. package/dist/template/.opencode/plugin/sdk/copilot/responses/tool/file-search.ts +127 -0
  23. package/dist/template/.opencode/plugin/sdk/copilot/responses/tool/image-generation.ts +114 -0
  24. package/dist/template/.opencode/plugin/sdk/copilot/responses/tool/local-shell.ts +64 -0
  25. package/dist/template/.opencode/plugin/sdk/copilot/responses/tool/web-search-preview.ts +103 -0
  26. package/dist/template/.opencode/plugin/sdk/copilot/responses/tool/web-search.ts +102 -0
  27. package/dist/template/.opencode/skill/gh-address-comments/SKILL.md +29 -0
  28. package/dist/template/.opencode/skill/gh-address-comments/scripts/fetch_comments.py +237 -0
  29. package/dist/template/.opencode/skill/gh-fix-ci/SKILL.md +38 -0
  30. package/dist/template/.opencode/skill/gh-fix-ci/scripts/inspect_pr_checks.py +509 -0
  31. package/dist/template/.opencode/skill/prompt-leverage/SKILL.md +90 -0
  32. package/dist/template/.opencode/skill/prompt-leverage/references/framework.md +91 -0
  33. package/dist/template/.opencode/skill/prompt-leverage/scripts/augment_prompt.py +157 -0
  34. package/dist/template/.opencode/skill/screenshot/SKILL.md +48 -0
  35. package/dist/template/.opencode/skill/screenshot/scripts/ensure_macos_permissions.sh +54 -0
  36. package/dist/template/.opencode/skill/screenshot/scripts/macos_display_info.swift +22 -0
  37. package/dist/template/.opencode/skill/screenshot/scripts/macos_permissions.swift +40 -0
  38. package/dist/template/.opencode/skill/screenshot/scripts/macos_window_info.swift +126 -0
  39. package/dist/template/.opencode/skill/screenshot/scripts/take_screenshot.ps1 +163 -0
  40. package/dist/template/.opencode/skill/screenshot/scripts/take_screenshot.py +585 -0
  41. package/dist/template/.opencode/skill/security-threat-model/SKILL.md +36 -0
  42. package/dist/template/.opencode/skill/security-threat-model/references/prompt-template.md +255 -0
  43. package/dist/template/.opencode/skill/security-threat-model/references/security-controls-and-assets.md +32 -0
  44. package/dist/template/.opencode/skill/skill-installer/SKILL.md +58 -0
  45. package/dist/template/.opencode/skill/skill-installer/scripts/github_utils.py +21 -0
  46. package/dist/template/.opencode/skill/skill-installer/scripts/install-skill-from-github.py +313 -0
  47. package/dist/template/.opencode/skill/skill-installer/scripts/list-skills.py +106 -0
  48. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
20
20
 
21
21
  //#endregion
22
22
  //#region package.json
23
- var version = "0.20.8";
23
+ var version = "0.21.1";
24
24
 
25
25
  //#endregion
26
26
  //#region src/utils/license.ts
@@ -102,12 +102,16 @@ If a newer user instruction conflicts with an earlier one, follow the newer inst
102
102
  - Don't stop early when another tool call would improve the result
103
103
  - Keep calling tools until the task is complete **and** verification passes
104
104
  - If a tool returns empty or partial results, retry with a different strategy before giving up (see Empty Result Recovery)
105
+ - For present-day facts, external APIs, provider behavior, and prior-session context claims, check tools or memory first instead of answering from stale recall
106
+ - If the user provides a specific URL, file path, error log, screenshot, or artifact, inspect that exact evidence before abstracting from it
105
107
 
106
108
  ### Dependency Checks
107
109
 
108
110
  - Before taking an action, check whether prerequisite discovery, lookup, or memory retrieval steps are required
109
111
  - Don't skip prerequisite steps because the final action seems obvious
110
112
  - If a task depends on the output of a prior step, resolve that dependency first
113
+ - Don't claim a capability, tool, or context is unavailable until you've checked the relevant tool, memory, or file evidence
114
+ - If the user writes as if prior context exists ("continue", "that bug", "my project", "what we decided"), search memory or prior sessions before asking them to restate it
111
115
 
112
116
  ### Empty Result Recovery
113
117
 
@@ -115,7 +119,8 @@ If a lookup, search, or tool call returns empty, partial, or suspiciously narrow
115
119
 
116
120
  1. Don't immediately conclude that no results exist
117
121
  2. Try at least 1-2 fallback strategies (alternative query terms, broader filters, different source/tool)
118
- 3. Only then report "no results found" along with what strategies were attempted
122
+ 3. If results look off-target, refine and retry before concluding the task is blocked
123
+ 4. Only then report "no results found" along with what strategies were attempted
119
124
 
120
125
  ### Completeness Tracking
121
126
 
@@ -123,6 +128,8 @@ If a lookup, search, or tool call returns empty, partial, or suspiciously narrow
123
128
  - Maintain an internal checklist of deliverables (use TodoWrite for multi-step work)
124
129
  - For lists, batches, or paginated results: determine expected scope, track processed items, confirm full coverage
125
130
  - If any item is blocked by missing data, mark it `[blocked]` and state exactly what is missing
131
+ - For multi-part requests, address every part and synthesize the result instead of making the user inspect raw logs or partial outputs
132
+ - Once you start a task, see it through to a natural stopping point unless blocked by a real dependency or reversibility constraint
126
133
 
127
134
  ### Plan Quality Gate
128
135
 
@@ -311,6 +318,9 @@ Ask only when:
311
318
  - Ambiguity materially changes outcome
312
319
  - Action is destructive/irreversible
313
320
 
321
+ Before asking, prefer a reversible action, tool lookup, or narrow assumption when that can resolve the ambiguity safely.
322
+ If a question is still needed, ask at most one targeted question when possible.
323
+
314
324
  Keep questions targeted and minimal.
315
325
 
316
326
  ---
@@ -332,6 +342,18 @@ For major tracked work:
332
342
  - **Skills** hold reusable procedures
333
343
  - **Agent prompts** stay role-focused; don't duplicate long checklists
334
344
  - **Load skills on demand**, not by default
345
+ - **Auto-load on input** — The `prompt-leverage` skill is a pre-processing layer that activates on every meaningful user input to upgrade prompts before planning/execution
346
+
347
+ ### Pre-Processing Layer
348
+
349
+ On every meaningful user input (not just greetings or确认):
350
+
351
+ 1. **Load `prompt-leverage`** skill
352
+ 2. Apply the seven-block framework to strengthen the user's prompt
353
+ 3. Preserve original intent; add only necessary structure
354
+ 4. Proceed with planning/execution using the upgraded prompt
355
+
356
+ This ensures every prompt is execution-ready before work begins.
335
357
 
336
358
  ### Intent → Skill Mapping
337
359
 
@@ -449,12 +471,14 @@ When tilth MCP is available with `--edit` mode, use hash-anchored edits as a **f
449
471
  ## Output Style
450
472
 
451
473
  - Be concise, direct, and collaborative
474
+ - Keep tone constructive and matter-of-fact; avoid condescension
452
475
  - Prefer deterministic outputs over prose-heavy explanations
453
476
  - Cite concrete file paths and line numbers for non-trivial claims
454
477
  - **No cheerleading** — avoid motivational language, artificial reassurance, or filler ("Got it!", "Great question!", "Sure thing!")
455
478
  - **Never narrate abstractly** — explain what you're doing and why, not that you're "going to look into this"
456
479
  - **Code reviews: bugs first** — identify bugs, risks, and regressions before style or readability comments
457
480
  - **Flat lists preferred** — use sections for hierarchy instead of deeply nested bullets
481
+ - Own mistakes directly and fix them without excessive apology or self-abasement
458
482
 
459
483
  _Complexity is the enemy. Minimize moving parts._
460
484
 
Binary file