@kyo-so/cli 0.1.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 (58) hide show
  1. package/.agents/skills/kyoso-review/SKILL.md +38 -0
  2. package/.agents/skills/kyoso-review/agents/openai.yaml +14 -0
  3. package/LICENSE +677 -0
  4. package/README.md +202 -0
  5. package/dist/acp/AcpAgentManager.d.ts +9 -0
  6. package/dist/acp/AcpAgentProcess.d.ts +9 -0
  7. package/dist/acp/FakeAgentManager.d.ts +9 -0
  8. package/dist/acp/normalize.d.ts +3 -0
  9. package/dist/acp/prompts.d.ts +2 -0
  10. package/dist/aggregate/aggregateFindings.d.ts +15 -0
  11. package/dist/aggregate/severity.d.ts +3 -0
  12. package/dist/audit/sanitize.d.ts +3 -0
  13. package/dist/audit/trace.d.ts +12 -0
  14. package/dist/bin/kyoso.js +199606 -0
  15. package/dist/cli/args.d.ts +8 -0
  16. package/dist/cli/doctor.d.ts +9 -0
  17. package/dist/cli/init.d.ts +4 -0
  18. package/dist/cli/io.d.ts +7 -0
  19. package/dist/cli/main.d.ts +1 -0
  20. package/dist/config/defaultConfig.d.ts +2 -0
  21. package/dist/config/defineConfig.d.ts +2 -0
  22. package/dist/config/loadConfig.d.ts +22 -0
  23. package/dist/config/schema.d.ts +117 -0
  24. package/dist/config/trustedConfig.d.ts +5 -0
  25. package/dist/config/tsConfigLoader.d.ts +7 -0
  26. package/dist/context/buildContext.d.ts +11 -0
  27. package/dist/context/pathPolicy.d.ts +3 -0
  28. package/dist/context/truncate.d.ts +6 -0
  29. package/dist/core/constants.d.ts +7 -0
  30. package/dist/core/errors.d.ts +4 -0
  31. package/dist/core/runReview.d.ts +12 -0
  32. package/dist/core/types.d.ts +154 -0
  33. package/dist/core/validateRequest.d.ts +2 -0
  34. package/dist/index.d.ts +3 -0
  35. package/dist/index.js +189728 -0
  36. package/dist/judge/anthropic.d.ts +2 -0
  37. package/dist/judge/deterministicFallback.d.ts +3 -0
  38. package/dist/judge/openai.d.ts +2 -0
  39. package/dist/judge/prompt.d.ts +9 -0
  40. package/dist/judge/provider.d.ts +26 -0
  41. package/dist/mcp/formatMcpResponse.d.ts +7 -0
  42. package/dist/mcp/schemas.d.ts +38 -0
  43. package/dist/mcp/server.d.ts +6 -0
  44. package/dist/output/markdown.d.ts +7 -0
  45. package/dist/security/cisaGate.d.ts +2 -0
  46. package/dist/security/decision.d.ts +10 -0
  47. package/dist/security/recursionGuard.d.ts +1 -0
  48. package/dist/security/redact.d.ts +5 -0
  49. package/dist/security/sanitizeText.d.ts +3 -0
  50. package/dist/security/secretScan.d.ts +2 -0
  51. package/dist/utils/env.d.ts +5 -0
  52. package/dist/utils/ids.d.ts +1 -0
  53. package/dist/workspace/cleanup.d.ts +1 -0
  54. package/dist/workspace/createSnapshot.d.ts +11 -0
  55. package/examples/claude-code-mcp.json +13 -0
  56. package/examples/codex-config.toml +11 -0
  57. package/examples/kyoso.config.ts +22 -0
  58. package/package.json +50 -0
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: kyoso-review
3
+ description: Use Kyoso when the user explicitly asks for multi-agent plan review, security review, CISA Secure by Design review, diff review, or a second opinion from Codex and Claude. Do not invoke implicitly unless the user clearly requests Kyoso or multi-agent review.
4
+ ---
5
+
6
+ # Kyoso Review
7
+
8
+ Kyoso is a multi-agent review gate for AI coding workflows. It coordinates Codex and Claude through ACP and returns a structured plan, security, or diff review.
9
+
10
+ Use this skill when the user explicitly asks for:
11
+
12
+ - Kyoso
13
+ - multi-agent review
14
+ - plan review
15
+ - security review
16
+ - CISA Secure by Design review
17
+ - diff review
18
+ - second opinion from Codex and Claude
19
+
20
+ Do not use this skill for every coding task. It is intended for deliberate review checkpoints.
21
+
22
+ ## Workflow
23
+
24
+ 1. Determine whether the user wants a plan review, security review, or diff review.
25
+ 2. Summarize the user's goal.
26
+ 3. Gather relevant context:
27
+ - repo summary
28
+ - current plan if available
29
+ - selected files
30
+ - unified diff if available
31
+ - constraints
32
+ 4. Call the appropriate Kyoso MCP tool:
33
+ - `plan_review`
34
+ - `security_review`
35
+ - `diff_review`
36
+ 5. Treat `decision: block` as a stop signal. Present the result to the user before implementing.
37
+ 6. Treat `decision: approve_with_changes` as requiring changes to the plan or implementation.
38
+ 7. Do not claim Kyoso modified files. Kyoso only reviews.
@@ -0,0 +1,14 @@
1
+ interface:
2
+ display_name: "Kyoso Review"
3
+ short_description: "Multi-agent plan, security, and diff review with Codex and Claude"
4
+ default_prompt: "Use Kyoso to review this plan, security-sensitive change, or diff."
5
+
6
+ policy:
7
+ allow_implicit_invocation: false
8
+
9
+ dependencies:
10
+ tools:
11
+ - type: "mcp"
12
+ value: "kyoso"
13
+ description: "Kyoso MCP server"
14
+ transport: "stdio"