agent-devkit 0.0.4 → 0.1.5

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 (60) hide show
  1. package/README.md +42 -2
  2. package/package.json +1 -1
  3. package/runtime/README.md +50 -2
  4. package/runtime/agent +29 -13
  5. package/runtime/agents/README.md +3 -0
  6. package/runtime/agents/github-pr-reviewer/AGENTS.md +10 -0
  7. package/runtime/agents/github-pr-reviewer/README.md +7 -0
  8. package/runtime/agents/github-pr-reviewer/agent.yaml +33 -0
  9. package/runtime/agents/github-pr-reviewer/capabilities/create-review-automation/capability.yaml +20 -0
  10. package/runtime/agents/github-pr-reviewer/capabilities/create-review-automation/decision-rules.md +8 -0
  11. package/runtime/agents/github-pr-reviewer/capabilities/create-review-automation/workflow.md +9 -0
  12. package/runtime/agents/github-pr-reviewer/capabilities/inspect-pr/capability.yaml +20 -0
  13. package/runtime/agents/github-pr-reviewer/capabilities/inspect-pr/decision-rules.md +7 -0
  14. package/runtime/agents/github-pr-reviewer/capabilities/inspect-pr/workflow.md +8 -0
  15. package/runtime/agents/github-pr-reviewer/capabilities/list-review-requests/capability.yaml +20 -0
  16. package/runtime/agents/github-pr-reviewer/capabilities/list-review-requests/decision-rules.md +7 -0
  17. package/runtime/agents/github-pr-reviewer/capabilities/list-review-requests/workflow.md +8 -0
  18. package/runtime/agents/github-pr-reviewer/capabilities/review-pr-diff/capability.yaml +20 -0
  19. package/runtime/agents/github-pr-reviewer/capabilities/review-pr-diff/decision-rules.md +9 -0
  20. package/runtime/agents/github-pr-reviewer/capabilities/review-pr-diff/workflow.md +10 -0
  21. package/runtime/agents/github-pr-reviewer/infra/README.md +7 -0
  22. package/runtime/agents/github-pr-reviewer/knowledge/context.md +7 -0
  23. package/runtime/agents/github-pr-reviewer/knowledge/system.md +17 -0
  24. package/runtime/agents/github-pr-reviewer/templates/pr-automation-output.md +10 -0
  25. package/runtime/agents/github-pr-reviewer/templates/pr-inspection-output.md +9 -0
  26. package/runtime/agents/github-pr-reviewer/templates/pr-list-output.md +9 -0
  27. package/runtime/agents/github-pr-reviewer/templates/pr-review-output.md +17 -0
  28. package/runtime/cli/README.md +37 -1
  29. package/runtime/cli/aikit/__init__.py +1 -1
  30. package/runtime/cli/aikit/aliases.py +196 -0
  31. package/runtime/cli/aikit/app_home.py +78 -0
  32. package/runtime/cli/aikit/audit.py +344 -0
  33. package/runtime/cli/aikit/calendar.py +163 -0
  34. package/runtime/cli/aikit/configuration_orchestrator.py +291 -0
  35. package/runtime/cli/aikit/decision_store.py +158 -0
  36. package/runtime/cli/aikit/diagnostics.py +9 -0
  37. package/runtime/cli/aikit/fallback.py +48 -2
  38. package/runtime/cli/aikit/github_pr.py +254 -0
  39. package/runtime/cli/aikit/identity.py +75 -0
  40. package/runtime/cli/aikit/llm.py +249 -48
  41. package/runtime/cli/aikit/main.py +1240 -32
  42. package/runtime/cli/aikit/memory.py +148 -8
  43. package/runtime/cli/aikit/model_router.py +70 -0
  44. package/runtime/cli/aikit/notifications.py +9 -0
  45. package/runtime/cli/aikit/ollama.py +237 -0
  46. package/runtime/cli/aikit/permissions.py +345 -0
  47. package/runtime/cli/aikit/personality.py +123 -0
  48. package/runtime/cli/aikit/provider_wizard.py +19 -0
  49. package/runtime/cli/aikit/providers.py +4 -5
  50. package/runtime/cli/aikit/review_gate.py +40 -0
  51. package/runtime/cli/aikit/scheduler.py +18 -0
  52. package/runtime/cli/aikit/sessions.py +396 -0
  53. package/runtime/cli/aikit/setup_wizard.py +12 -0
  54. package/runtime/cli/aikit/tasks.py +351 -0
  55. package/runtime/cli/aikit/toolchain.py +274 -0
  56. package/runtime/providers/calendar.yaml +28 -0
  57. package/runtime/providers/github.yaml +42 -0
  58. package/runtime/providers/local-notification.yaml +19 -0
  59. package/runtime/providers/local-scheduler.yaml +24 -0
  60. package/runtime/vendor/skills/napkin/napkin.md +13 -3
@@ -0,0 +1,19 @@
1
+ id: local-notification
2
+ name: Local Notification
3
+ kind: local-runtime
4
+ status: draft
5
+ description: Local notification provider for terminal notifications.
6
+ auth_methods: []
7
+ config_fields: []
8
+ health_check:
9
+ command: agent provider doctor local-notification
10
+ risk:
11
+ default: local-notification
12
+ writes: true
13
+ fallbacks:
14
+ - skip_provider
15
+ capabilities:
16
+ read: []
17
+ write:
18
+ - notification.terminal
19
+ write: true
@@ -0,0 +1,24 @@
1
+ id: local-scheduler
2
+ name: Local Scheduler
3
+ kind: local-runtime
4
+ status: draft
5
+ description: Local scheduler provider for Agent DevKit task execution.
6
+ auth_methods: []
7
+ config_fields: []
8
+ health_check:
9
+ command: agent scheduler run-once --dry-run
10
+ risk:
11
+ default: local-write
12
+ writes: true
13
+ fallbacks:
14
+ - dry_run
15
+ - manual_steps
16
+ capabilities:
17
+ read:
18
+ - task.list
19
+ - task.history
20
+ write:
21
+ - task.create
22
+ - task.update
23
+ - task.delete
24
+ write: true
@@ -17,15 +17,25 @@
17
17
  ## Shell & Command Reliability
18
18
  1. **[2026-06-20] Azure DevOps SSL can fail through Python urllib**
19
19
  Do instead: use the repository's curl-backed transport for Azure DevOps API calls in local/serverless execution.
20
- 2. **[2026-06-27] Runtime `--source` can conflict with capability domain args**
20
+ 2. **[2026-06-28] Toolchain install deve ser plan-first e idempotente**
21
+ Do instead: diagnosticar PATH antes de planejar instalacao externa; se a ferramenta ja existe, retornar `already-installed` e nao executar reinstalacao.
22
+ 3. **[2026-06-28] Saida de instaladores externos pode vazar ambiente**
23
+ Do instead: antes de persistir stdout/stderr de comandos de setup/toolchain, redigir valores de variaveis com KEY/TOKEN/SECRET/PASSWORD/PASS/PAT.
24
+ 4. **[2026-06-27] Runtime `--source` can conflict with capability domain args**
21
25
  Do instead: intercept `--source` only for capabilities that explicitly support Agent DevKit source registry injection; otherwise leave it for the runner domain contract.
22
26
 
23
27
  ## Domain Behavior Guardrails
24
28
  1. **[2026-06-28] Agentes devem ser agnosticos de cliente/projeto**
25
29
  Do instead: mover nomes de produto, cliente, URLs, paths locais, regras de elegibilidade e campos XML especificos para provider/config/env antes de versionar o agente.
26
- 2. **[2026-06-20] Azure card descriptions may include sensitive production log data**
30
+ 2. **[2026-06-28] Sessao ativa nao deve vazar contexto entre projetos**
31
+ Do instead: ao persistir contexto de conversa, reutilizar automaticamente apenas sessoes do mesmo projeto; para outro projeto, criar nova sessao ou exigir retomada explicita.
32
+ 3. **[2026-06-28] Roteamento de PR deve usar tokens reais**
33
+ Do instead: detectar `pr`, `prs` ou `pull request` como tokens/expressao, nao substring ampla que captura palavras como `problema`.
34
+ 4. **[2026-06-28] Tasks com escrita externa devem bloquear por padrao**
35
+ Do instead: permitir `dry-run`, mas bloquear execucao real quando `action.external_writes=true` sem permissao explicita de escrita externa.
36
+ 5. **[2026-06-20] Azure card descriptions may include sensitive production log data**
27
37
  Do instead: retrieve the complete card for validation, but summarize PII-heavy log payloads in user-facing responses unless raw content is explicitly required.
28
- 3. **[2026-06-21] N1 restrictive-base uses a scoped SQL Server override**
38
+ 6. **[2026-06-21] N1 restrictive-base uses a scoped SQL Server override**
29
39
  Do instead: when the N1 agent checks the restrictive base, prefer `DB_RESTRICTIVE_CONN_STRING` only in the subprocess environment for `sqlserver-data-analyzer`, without changing the global SQL Server analyzer default.
30
40
 
31
41
  ## User Directives