agent-devkit 0.0.3 → 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 (57) hide show
  1. package/README.md +170 -1
  2. package/package.json +1 -1
  3. package/runtime/README.md +192 -14
  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 +93 -0
  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/diagnostics.py +9 -0
  35. package/runtime/cli/aikit/github_pr.py +254 -0
  36. package/runtime/cli/aikit/identity.py +75 -0
  37. package/runtime/cli/aikit/llm.py +240 -48
  38. package/runtime/cli/aikit/main.py +924 -24
  39. package/runtime/cli/aikit/memory.py +148 -8
  40. package/runtime/cli/aikit/notifications.py +9 -0
  41. package/runtime/cli/aikit/permissions.py +345 -0
  42. package/runtime/cli/aikit/personality.py +123 -0
  43. package/runtime/cli/aikit/providers.py +4 -5
  44. package/runtime/cli/aikit/scheduler.py +18 -0
  45. package/runtime/cli/aikit/sessions.py +396 -0
  46. package/runtime/cli/aikit/setup_wizard.py +12 -0
  47. package/runtime/cli/aikit/tasks.py +351 -0
  48. package/runtime/cli/aikit/toolchain.py +274 -0
  49. package/runtime/plugins/claude-code-ai-devkit/plugin.json +1 -1
  50. package/runtime/plugins/claude-skill-ai-devkit/plugin.json +1 -1
  51. package/runtime/providers/calendar.yaml +28 -0
  52. package/runtime/providers/github.yaml +42 -0
  53. package/runtime/providers/local-notification.yaml +19 -0
  54. package/runtime/providers/local-scheduler.yaml +24 -0
  55. package/runtime/scripts/README.md +1 -1
  56. package/runtime/scripts/verify-release-alignment.mjs +1 -1
  57. package/runtime/vendor/skills/napkin/napkin.md +13 -3
@@ -0,0 +1,42 @@
1
+ id: github
2
+ name: GitHub
3
+ kind: cli-provider
4
+ status: draft
5
+ description: GitHub provider backed by the official GitHub CLI.
6
+ auth_methods:
7
+ - id: gh-auth
8
+ label: GitHub CLI auth
9
+ native: true
10
+ secret_fields: []
11
+ - id: token
12
+ label: GitHub token
13
+ secret_fields:
14
+ - GITHUB_TOKEN
15
+ config_fields:
16
+ - name: GITHUB_TOKEN
17
+ required: false
18
+ secret: true
19
+ - name: GITHUB_HOST
20
+ required: false
21
+ secret: false
22
+ detection:
23
+ env_any:
24
+ - GITHUB_TOKEN
25
+ health_check:
26
+ command: gh auth status
27
+ risk:
28
+ default: read
29
+ writes: true
30
+ fallbacks:
31
+ - report_only
32
+ - manual_steps
33
+ capabilities:
34
+ read:
35
+ - pr.list-review-requests
36
+ - pr.inspect
37
+ - pr.review-report
38
+ write:
39
+ - pr.comment
40
+ - pr.approve
41
+ - pr.request-changes
42
+ write: true
@@ -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
@@ -34,7 +34,7 @@ python3 scripts/validate-repo.py --json
34
34
  python3 scripts/validate-repo.py --strict
35
35
  python3 scripts/mvp-readiness.py
36
36
  python3 scripts/mvp-readiness.py --json
37
- npm run release:verify -- v0.0.3
37
+ npm run release:verify -- v0.0.4
38
38
  ```
39
39
 
40
40
  ## Regras
@@ -63,7 +63,7 @@ function run(command, args, options = {}) {
63
63
  async function main() {
64
64
  const [rawVersion] = process.argv.slice(2);
65
65
  if (!rawVersion) {
66
- throw new Error("Usage: npm run release:verify -- v0.0.3");
66
+ throw new Error("Usage: npm run release:verify -- v0.0.4");
67
67
  }
68
68
 
69
69
  const version = normalizeVersion(rawVersion);
@@ -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