bootproof 0.1.0 → 0.4.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 (74) hide show
  1. package/README.md +873 -109
  2. package/dist/agent-plan.d.ts +44 -0
  3. package/dist/agent-plan.js +826 -0
  4. package/dist/agent-run.d.ts +117 -0
  5. package/dist/agent-run.js +459 -0
  6. package/dist/ai-repair.d.ts +58 -0
  7. package/dist/ai-repair.js +380 -0
  8. package/dist/cli.js +936 -38
  9. package/dist/diagnosis.js +114 -17
  10. package/dist/diff.d.ts +29 -0
  11. package/dist/diff.js +569 -0
  12. package/dist/exec.d.ts +30 -2
  13. package/dist/exec.js +332 -37
  14. package/dist/external-health.d.ts +16 -0
  15. package/dist/external-health.js +214 -0
  16. package/dist/infer.js +489 -41
  17. package/dist/plan.d.ts +2 -0
  18. package/dist/plan.js +49 -7
  19. package/dist/proof.d.ts +78 -2
  20. package/dist/proof.js +266 -13
  21. package/dist/receipt.d.ts +52 -0
  22. package/dist/receipt.js +356 -0
  23. package/dist/redact.d.ts +4 -0
  24. package/dist/redact.js +86 -2
  25. package/dist/registry.d.ts +82 -30
  26. package/dist/registry.js +355 -53
  27. package/dist/remote.d.ts +12 -1
  28. package/dist/remote.js +62 -18
  29. package/dist/repair-playbooks.d.ts +24 -0
  30. package/dist/repair-playbooks.js +593 -0
  31. package/dist/repair-safety.d.ts +130 -0
  32. package/dist/repair-safety.js +766 -0
  33. package/dist/repair.d.ts +142 -0
  34. package/dist/repair.js +1566 -0
  35. package/dist/run.d.ts +6 -1
  36. package/dist/run.js +385 -46
  37. package/dist/sbom.d.ts +22 -0
  38. package/dist/sbom.js +99 -0
  39. package/dist/taxonomy.d.ts +8 -2
  40. package/dist/taxonomy.js +428 -8
  41. package/dist/types.d.ts +57 -2
  42. package/docs/AGENT_IN_THE_LOOP.md +171 -0
  43. package/docs/AGENT_RUN_RECEIPTS.md +38 -0
  44. package/docs/CI_ACTION.md +71 -5
  45. package/docs/DETERMINISTIC_REPAIR_SAFETY_MODEL.md +705 -0
  46. package/docs/FAILURE_TAXONOMY.md +30 -1
  47. package/docs/HONESTY_CONTRACT.md +55 -4
  48. package/docs/LAUNCH_PLAYBOOK.md +232 -0
  49. package/docs/REAL_REPO_EVIDENCE.md +77 -0
  50. package/docs/REAL_WORLD_FIXTURES.md +105 -0
  51. package/docs/REGISTRY.md +48 -28
  52. package/docs/RELEASE_CHECKLIST.md +9 -1
  53. package/docs/REPAIR_RECEIPT.md +224 -0
  54. package/docs/agent-loop-gap-analysis.md +188 -0
  55. package/docs/examples/registry-seeds/advertised-port-mismatch.json +28 -0
  56. package/docs/examples/registry-seeds/airbyte-abctl-external-orchestrator.json +36 -0
  57. package/docs/examples/registry-seeds/go-ollama-service.json +36 -0
  58. package/docs/examples/registry-seeds/laravel-vite-sqlite.json +36 -0
  59. package/docs/examples/registry-seeds/monorepo-ambiguous-health.json +29 -0
  60. package/docs/examples/registry-seeds/php-composer.json +33 -0
  61. package/docs/examples/registry-seeds/rails-bundler.json +32 -0
  62. package/docs/examples/registry-seeds/sentry-devenv-direnv.json +41 -0
  63. package/docs/schemas/action-verdict-v1.schema.json +64 -0
  64. package/docs/schemas/agent-plan-v1.schema.json +148 -0
  65. package/docs/schemas/agent-run-receipts-v1.schema.json +192 -0
  66. package/docs/schemas/ai-repair-suggestion-v1.schema.json +70 -0
  67. package/docs/schemas/ci-context-v1.schema.json +63 -0
  68. package/docs/schemas/diff-result-v1.schema.json +66 -0
  69. package/docs/schemas/federated-receipt-v1.schema.json +51 -0
  70. package/docs/schemas/registry-entry-v1.schema.json +95 -0
  71. package/docs/schemas/registry-seed-example-v1.schema.json +102 -0
  72. package/docs/schemas/repair-action-v1.schema.json +136 -0
  73. package/docs/schemas/repair-receipt-v1.schema.json +221 -0
  74. package/package.json +13 -6
@@ -0,0 +1,44 @@
1
+ import { type RepairMutationScope, type RepairRiskLevel } from "./repair-safety.js";
2
+ export type AgentSafetyClassification = "host_tool_install_required" | "kubernetes_cluster_creation_required" | "heavy_orchestration_required" | "external_orchestrator_required" | "credential_required" | "auth_required" | "external_health_verification_required";
3
+ export type AgentRepositoryClassification = "airbyte_abctl_managed" | "large_orchestration_repo" | "external_orchestrator_required" | "kind_kubernetes_backed" | "helm_deployed" | "auth_required";
4
+ export interface AgentPlanAction {
5
+ classification: AgentSafetyClassification;
6
+ actionType: "command" | "instruction";
7
+ command: string;
8
+ reason: string;
9
+ evidence: string[];
10
+ riskLevel: RepairRiskLevel;
11
+ mutationScope: RepairMutationScope;
12
+ requiresApproval: boolean;
13
+ approvalPrompt: string;
14
+ blockedReason: string;
15
+ verificationStep: string;
16
+ stopCondition: string;
17
+ secretSensitive: boolean;
18
+ }
19
+ export interface AgentPlan {
20
+ schema: "bootproof/agent-plan/v1";
21
+ mode: "agent-plan";
22
+ classifications: AgentRepositoryClassification[];
23
+ currentFailureClass: string;
24
+ observedEvidence: string[];
25
+ suspectedStack: string[];
26
+ missingTools: string[];
27
+ candidateNextActions: AgentPlanAction[];
28
+ verificationSteps: string[];
29
+ stopConditions: string[];
30
+ canBootProofOrchestrateDirectly: boolean;
31
+ canBootProofVerifyExternally: boolean;
32
+ }
33
+ export interface AgentPlanOptions {
34
+ availableTools?: ReadonlySet<string>;
35
+ pathValue?: string;
36
+ }
37
+ export interface AgentPlanValidation {
38
+ valid: boolean;
39
+ errors: string[];
40
+ }
41
+ export declare function validateAgentPlan(value: unknown): AgentPlanValidation;
42
+ export declare function buildAgentPlan(repoPath: string, options?: AgentPlanOptions): AgentPlan;
43
+ export declare function agentPlanPath(repo: string): string;
44
+ export declare function writeAgentPlan(repo: string, plan: AgentPlan): string;