@red-codes/agentguard 1.0.0 → 1.1.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.
- package/dist/args.d.ts.map +1 -0
- package/dist/args.js.map +1 -0
- package/dist/bin.d.ts.map +1 -0
- package/dist/bin.js +29190 -0
- package/dist/bin.js.map +7 -0
- package/dist/colors.d.ts.map +1 -0
- package/dist/colors.js.map +1 -0
- package/dist/commands/adoption.d.ts +2 -0
- package/dist/commands/adoption.d.ts.map +1 -0
- package/dist/commands/adoption.js +172 -0
- package/dist/commands/adoption.js.map +1 -0
- package/dist/commands/analytics.d.ts +3 -0
- package/dist/commands/analytics.d.ts.map +1 -0
- package/dist/commands/analytics.js +7 -0
- package/dist/commands/analytics.js.map +1 -0
- package/dist/commands/audit-verify.d.ts +3 -0
- package/dist/commands/audit-verify.d.ts.map +1 -0
- package/dist/commands/audit-verify.js +94 -0
- package/dist/commands/audit-verify.js.map +1 -0
- package/dist/commands/auto-setup.d.ts +28 -0
- package/dist/commands/auto-setup.d.ts.map +1 -0
- package/dist/commands/auto-setup.js +146 -0
- package/dist/commands/auto-setup.js.map +1 -0
- package/dist/commands/ci-check.d.ts +13 -0
- package/dist/commands/ci-check.d.ts.map +1 -0
- package/dist/commands/ci-check.js +286 -0
- package/dist/commands/ci-check.js.map +1 -0
- package/dist/commands/claude-hook.d.ts +2 -0
- package/dist/commands/claude-hook.d.ts.map +1 -0
- package/dist/commands/claude-hook.js +254 -0
- package/dist/commands/claude-hook.js.map +1 -0
- package/dist/commands/claude-init.d.ts.map +1 -0
- package/dist/commands/claude-init.js +401 -0
- package/dist/commands/claude-init.js.map +1 -0
- package/dist/commands/config.d.ts +39 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/config.js +368 -0
- package/dist/commands/config.js.map +1 -0
- package/dist/commands/demo.d.ts +2 -0
- package/dist/commands/demo.d.ts.map +1 -0
- package/dist/commands/demo.js +100 -0
- package/dist/commands/demo.js.map +1 -0
- package/dist/commands/diff.d.ts +3 -0
- package/dist/commands/diff.d.ts.map +1 -0
- package/dist/commands/diff.js +364 -0
- package/dist/commands/diff.js.map +1 -0
- package/dist/commands/evidence-pr.d.ts +3 -0
- package/dist/commands/evidence-pr.d.ts.map +1 -0
- package/dist/commands/evidence-pr.js +162 -0
- package/dist/commands/evidence-pr.js.map +1 -0
- package/dist/commands/export.d.ts +22 -0
- package/dist/commands/export.d.ts.map +1 -0
- package/dist/commands/export.js +92 -0
- package/dist/commands/export.js.map +1 -0
- package/dist/commands/guard.d.ts +21 -0
- package/dist/commands/guard.d.ts.map +1 -0
- package/dist/commands/guard.js +272 -0
- package/dist/commands/guard.js.map +1 -0
- package/dist/commands/import.d.ts +3 -0
- package/dist/commands/import.d.ts.map +1 -0
- package/dist/{cli/commands → commands}/import.js +25 -26
- package/dist/commands/import.js.map +1 -0
- package/dist/commands/init.d.ts +5 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +1288 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/inspect.d.ts +4 -0
- package/dist/commands/inspect.d.ts.map +1 -0
- package/dist/{cli/commands → commands}/inspect.js +97 -70
- package/dist/commands/inspect.js.map +1 -0
- package/dist/commands/learn.d.ts +2 -0
- package/dist/commands/learn.d.ts.map +1 -0
- package/dist/commands/learn.js +264 -0
- package/dist/commands/learn.js.map +1 -0
- package/dist/commands/migrate.d.ts +3 -0
- package/dist/commands/migrate.d.ts.map +1 -0
- package/dist/commands/migrate.js +270 -0
- package/dist/commands/migrate.js.map +1 -0
- package/dist/commands/plugin.d.ts.map +1 -0
- package/dist/{cli/commands → commands}/plugin.js +2 -2
- package/dist/commands/plugin.js.map +1 -0
- package/dist/commands/policy-verify.d.ts +46 -0
- package/dist/commands/policy-verify.d.ts.map +1 -0
- package/dist/commands/policy-verify.js +173 -0
- package/dist/commands/policy-verify.js.map +1 -0
- package/dist/commands/policy.d.ts +27 -0
- package/dist/commands/policy.d.ts.map +1 -0
- package/dist/commands/policy.js +590 -0
- package/dist/commands/policy.js.map +1 -0
- package/dist/{cli/commands → commands}/replay.d.ts +2 -1
- package/dist/commands/replay.d.ts.map +1 -0
- package/dist/{cli/commands → commands}/replay.js +78 -12
- package/dist/commands/replay.js.map +1 -0
- package/dist/commands/session-viewer.d.ts +5 -0
- package/dist/commands/session-viewer.d.ts.map +1 -0
- package/dist/commands/session-viewer.js +462 -0
- package/dist/commands/session-viewer.js.map +1 -0
- package/dist/commands/simulate.d.ts +7 -0
- package/dist/commands/simulate.d.ts.map +1 -0
- package/dist/commands/simulate.js +505 -0
- package/dist/commands/simulate.js.map +1 -0
- package/dist/commands/status.d.ts +2 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +212 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/commands/traces.d.ts +24 -0
- package/dist/commands/traces.d.ts.map +1 -0
- package/dist/commands/traces.js +282 -0
- package/dist/commands/traces.js.map +1 -0
- package/dist/commands/trust.d.ts +6 -0
- package/dist/commands/trust.d.ts.map +1 -0
- package/dist/commands/trust.js +129 -0
- package/dist/commands/trust.js.map +1 -0
- package/dist/evidence-summary.d.ts +35 -0
- package/dist/evidence-summary.d.ts.map +1 -0
- package/dist/evidence-summary.js +202 -0
- package/dist/evidence-summary.js.map +1 -0
- package/dist/{cli/file-event-store.d.ts → file-event-store.d.ts} +1 -1
- package/dist/file-event-store.d.ts.map +1 -0
- package/dist/{cli/file-event-store.js → file-event-store.js} +1 -1
- package/dist/file-event-store.js.map +1 -0
- package/{hooks → dist/hooks}/post-commit +3 -1
- package/{hooks → dist/hooks}/post-merge +3 -1
- package/dist/hooks/pre-commit +29 -0
- package/dist/policy-resolver.d.ts +32 -0
- package/dist/policy-resolver.d.ts.map +1 -0
- package/dist/policy-resolver.js +171 -0
- package/dist/policy-resolver.js.map +1 -0
- package/dist/{cli/recorder.d.ts → recorder.d.ts} +1 -1
- package/dist/recorder.d.ts.map +1 -0
- package/dist/{cli/recorder.js → recorder.js} +1 -1
- package/dist/recorder.js.map +1 -0
- package/dist/replay-timeline-html.d.ts +21 -0
- package/dist/replay-timeline-html.d.ts.map +1 -0
- package/dist/replay-timeline-html.js +414 -0
- package/dist/replay-timeline-html.js.map +1 -0
- package/dist/replay.d.ts.map +1 -0
- package/dist/{cli/replay.js → replay.js} +92 -1
- package/dist/replay.js.map +1 -0
- package/dist/{cli/session-store.d.ts → session-store.d.ts} +5 -0
- package/dist/session-store.d.ts.map +1 -0
- package/dist/{cli/session-store.js → session-store.js} +1 -0
- package/dist/session-store.js.map +1 -0
- package/dist/session-viewer-html.d.ts +10 -0
- package/dist/session-viewer-html.d.ts.map +1 -0
- package/dist/session-viewer-html.js +737 -0
- package/dist/session-viewer-html.js.map +1 -0
- package/dist/templates/ci-only.yaml +103 -0
- package/dist/templates/development.yaml +107 -0
- package/dist/templates/permissive.yaml +87 -0
- package/dist/templates/strict.yaml +112 -0
- package/dist/tui.d.ts +3 -0
- package/dist/tui.d.ts.map +1 -0
- package/dist/tui.js +2 -0
- package/dist/tui.js.map +1 -0
- package/package.json +42 -53
- package/README.md +0 -298
- package/dist/adapters/claude-code.d.ts +0 -24
- package/dist/adapters/claude-code.d.ts.map +0 -1
- package/dist/adapters/claude-code.js +0 -99
- package/dist/adapters/claude-code.js.map +0 -1
- package/dist/adapters/file.d.ts +0 -3
- package/dist/adapters/file.d.ts.map +0 -1
- package/dist/adapters/file.js +0 -35
- package/dist/adapters/file.js.map +0 -1
- package/dist/adapters/git.d.ts +0 -3
- package/dist/adapters/git.d.ts.map +0 -1
- package/dist/adapters/git.js +0 -61
- package/dist/adapters/git.js.map +0 -1
- package/dist/adapters/registry.d.ts +0 -5
- package/dist/adapters/registry.d.ts.map +0 -1
- package/dist/adapters/registry.js +0 -15
- package/dist/adapters/registry.js.map +0 -1
- package/dist/adapters/shell.d.ts +0 -8
- package/dist/adapters/shell.d.ts.map +0 -1
- package/dist/adapters/shell.js +0 -27
- package/dist/adapters/shell.js.map +0 -1
- package/dist/cli/args.d.ts.map +0 -1
- package/dist/cli/args.js.map +0 -1
- package/dist/cli/bin.d.ts.map +0 -1
- package/dist/cli/bin.js +0 -5769
- package/dist/cli/bin.js.map +0 -7
- package/dist/cli/colors.d.ts.map +0 -1
- package/dist/cli/colors.js.map +0 -1
- package/dist/cli/commands/claude-hook.d.ts +0 -2
- package/dist/cli/commands/claude-hook.d.ts.map +0 -1
- package/dist/cli/commands/claude-hook.js +0 -110
- package/dist/cli/commands/claude-hook.js.map +0 -1
- package/dist/cli/commands/claude-init.d.ts.map +0 -1
- package/dist/cli/commands/claude-init.js +0 -150
- package/dist/cli/commands/claude-init.js.map +0 -1
- package/dist/cli/commands/export.d.ts +0 -11
- package/dist/cli/commands/export.d.ts.map +0 -1
- package/dist/cli/commands/export.js +0 -113
- package/dist/cli/commands/export.js.map +0 -1
- package/dist/cli/commands/guard.d.ts +0 -12
- package/dist/cli/commands/guard.d.ts.map +0 -1
- package/dist/cli/commands/guard.js +0 -145
- package/dist/cli/commands/guard.js.map +0 -1
- package/dist/cli/commands/import.d.ts +0 -2
- package/dist/cli/commands/import.d.ts.map +0 -1
- package/dist/cli/commands/import.js.map +0 -1
- package/dist/cli/commands/inspect.d.ts +0 -3
- package/dist/cli/commands/inspect.d.ts.map +0 -1
- package/dist/cli/commands/inspect.js.map +0 -1
- package/dist/cli/commands/plugin.d.ts.map +0 -1
- package/dist/cli/commands/plugin.js.map +0 -1
- package/dist/cli/commands/replay.d.ts.map +0 -1
- package/dist/cli/commands/replay.js.map +0 -1
- package/dist/cli/file-event-store.d.ts.map +0 -1
- package/dist/cli/file-event-store.js.map +0 -1
- package/dist/cli/policy-resolver.d.ts +0 -4
- package/dist/cli/policy-resolver.d.ts.map +0 -1
- package/dist/cli/policy-resolver.js +0 -62
- package/dist/cli/policy-resolver.js.map +0 -1
- package/dist/cli/recorder.d.ts.map +0 -1
- package/dist/cli/recorder.js.map +0 -1
- package/dist/cli/replay.d.ts.map +0 -1
- package/dist/cli/replay.js.map +0 -1
- package/dist/cli/session-store.d.ts.map +0 -1
- package/dist/cli/session-store.js.map +0 -1
- package/dist/cli/tui.d.ts +0 -24
- package/dist/cli/tui.d.ts.map +0 -1
- package/dist/cli/tui.js +0 -197
- package/dist/cli/tui.js.map +0 -1
- package/dist/core/actions.d.ts +0 -11
- package/dist/core/actions.d.ts.map +0 -1
- package/dist/core/actions.js +0 -112
- package/dist/core/actions.js.map +0 -1
- package/dist/core/adapters.d.ts +0 -19
- package/dist/core/adapters.d.ts.map +0 -1
- package/dist/core/adapters.js +0 -85
- package/dist/core/adapters.js.map +0 -1
- package/dist/core/execution-log/bridge.d.ts +0 -12
- package/dist/core/execution-log/bridge.d.ts.map +0 -1
- package/dist/core/execution-log/bridge.js +0 -112
- package/dist/core/execution-log/bridge.js.map +0 -1
- package/dist/core/execution-log/event-log.d.ts +0 -7
- package/dist/core/execution-log/event-log.d.ts.map +0 -1
- package/dist/core/execution-log/event-log.js +0 -103
- package/dist/core/execution-log/event-log.js.map +0 -1
- package/dist/core/execution-log/event-projections.d.ts +0 -28
- package/dist/core/execution-log/event-projections.d.ts.map +0 -1
- package/dist/core/execution-log/event-projections.js +0 -272
- package/dist/core/execution-log/event-projections.js.map +0 -1
- package/dist/core/execution-log/event-schema.d.ts +0 -56
- package/dist/core/execution-log/event-schema.d.ts.map +0 -1
- package/dist/core/execution-log/event-schema.js +0 -160
- package/dist/core/execution-log/event-schema.js.map +0 -1
- package/dist/core/execution-log/index.d.ts +0 -7
- package/dist/core/execution-log/index.d.ts.map +0 -1
- package/dist/core/execution-log/index.js +0 -13
- package/dist/core/execution-log/index.js.map +0 -1
- package/dist/core/hash.d.ts +0 -5
- package/dist/core/hash.d.ts.map +0 -1
- package/dist/core/hash.js +0 -13
- package/dist/core/hash.js.map +0 -1
- package/dist/core/rng.d.ts +0 -29
- package/dist/core/rng.d.ts.map +0 -1
- package/dist/core/rng.js +0 -48
- package/dist/core/rng.js.map +0 -1
- package/dist/core/types.d.ts +0 -746
- package/dist/core/types.d.ts.map +0 -1
- package/dist/core/types.js +0 -8
- package/dist/core/types.js.map +0 -1
- package/dist/events/bus.d.ts +0 -24
- package/dist/events/bus.d.ts.map +0 -1
- package/dist/events/bus.js +0 -64
- package/dist/events/bus.js.map +0 -1
- package/dist/events/decision-jsonl.d.ts +0 -8
- package/dist/events/decision-jsonl.d.ts.map +0 -1
- package/dist/events/decision-jsonl.js +0 -44
- package/dist/events/decision-jsonl.js.map +0 -1
- package/dist/events/jsonl.d.ts +0 -8
- package/dist/events/jsonl.d.ts.map +0 -1
- package/dist/events/jsonl.js +0 -46
- package/dist/events/jsonl.js.map +0 -1
- package/dist/events/schema.d.ts +0 -59
- package/dist/events/schema.d.ts.map +0 -1
- package/dist/events/schema.js +0 -296
- package/dist/events/schema.js.map +0 -1
- package/dist/events/store.d.ts +0 -7
- package/dist/events/store.d.ts.map +0 -1
- package/dist/events/store.js +0 -64
- package/dist/events/store.js.map +0 -1
- package/dist/invariants/checker.d.ts +0 -15
- package/dist/invariants/checker.d.ts.map +0 -1
- package/dist/invariants/checker.js +0 -52
- package/dist/invariants/checker.js.map +0 -1
- package/dist/invariants/definitions.d.ts +0 -33
- package/dist/invariants/definitions.d.ts.map +0 -1
- package/dist/invariants/definitions.js +0 -168
- package/dist/invariants/definitions.js.map +0 -1
- package/dist/kernel/aab.d.ts +0 -26
- package/dist/kernel/aab.d.ts.map +0 -1
- package/dist/kernel/aab.js +0 -149
- package/dist/kernel/aab.js.map +0 -1
- package/dist/kernel/blast-radius.d.ts +0 -60
- package/dist/kernel/blast-radius.d.ts.map +0 -1
- package/dist/kernel/blast-radius.js +0 -146
- package/dist/kernel/blast-radius.js.map +0 -1
- package/dist/kernel/decision.d.ts +0 -40
- package/dist/kernel/decision.d.ts.map +0 -1
- package/dist/kernel/decision.js +0 -92
- package/dist/kernel/decision.js.map +0 -1
- package/dist/kernel/decisions/factory.d.ts +0 -12
- package/dist/kernel/decisions/factory.d.ts.map +0 -1
- package/dist/kernel/decisions/factory.js +0 -56
- package/dist/kernel/decisions/factory.js.map +0 -1
- package/dist/kernel/decisions/types.d.ts +0 -70
- package/dist/kernel/decisions/types.d.ts.map +0 -1
- package/dist/kernel/decisions/types.js +0 -5
- package/dist/kernel/decisions/types.js.map +0 -1
- package/dist/kernel/evidence.d.ts +0 -29
- package/dist/kernel/evidence.d.ts.map +0 -1
- package/dist/kernel/evidence.js +0 -61
- package/dist/kernel/evidence.js.map +0 -1
- package/dist/kernel/kernel.d.ts +0 -47
- package/dist/kernel/kernel.d.ts.map +0 -1
- package/dist/kernel/kernel.js +0 -377
- package/dist/kernel/kernel.js.map +0 -1
- package/dist/kernel/monitor.d.ts +0 -35
- package/dist/kernel/monitor.d.ts.map +0 -1
- package/dist/kernel/monitor.js +0 -144
- package/dist/kernel/monitor.js.map +0 -1
- package/dist/kernel/replay-comparator.d.ts +0 -72
- package/dist/kernel/replay-comparator.d.ts.map +0 -1
- package/dist/kernel/replay-comparator.js +0 -251
- package/dist/kernel/replay-comparator.js.map +0 -1
- package/dist/kernel/replay-engine.d.ts +0 -108
- package/dist/kernel/replay-engine.d.ts.map +0 -1
- package/dist/kernel/replay-engine.js +0 -241
- package/dist/kernel/replay-engine.js.map +0 -1
- package/dist/kernel/replay-processor.d.ts +0 -109
- package/dist/kernel/replay-processor.d.ts.map +0 -1
- package/dist/kernel/replay-processor.js +0 -118
- package/dist/kernel/replay-processor.js.map +0 -1
- package/dist/kernel/simulation/filesystem-simulator.d.ts +0 -3
- package/dist/kernel/simulation/filesystem-simulator.d.ts.map +0 -1
- package/dist/kernel/simulation/filesystem-simulator.js +0 -81
- package/dist/kernel/simulation/filesystem-simulator.js.map +0 -1
- package/dist/kernel/simulation/git-simulator.d.ts +0 -5
- package/dist/kernel/simulation/git-simulator.d.ts.map +0 -1
- package/dist/kernel/simulation/git-simulator.js +0 -115
- package/dist/kernel/simulation/git-simulator.js.map +0 -1
- package/dist/kernel/simulation/package-simulator.d.ts +0 -5
- package/dist/kernel/simulation/package-simulator.d.ts.map +0 -1
- package/dist/kernel/simulation/package-simulator.js +0 -164
- package/dist/kernel/simulation/package-simulator.js.map +0 -1
- package/dist/kernel/simulation/registry.d.ts +0 -3
- package/dist/kernel/simulation/registry.d.ts.map +0 -1
- package/dist/kernel/simulation/registry.js +0 -24
- package/dist/kernel/simulation/registry.js.map +0 -1
- package/dist/kernel/simulation/types.d.ts +0 -35
- package/dist/kernel/simulation/types.d.ts.map +0 -1
- package/dist/kernel/simulation/types.js +0 -4
- package/dist/kernel/simulation/types.js.map +0 -1
- package/dist/plugins/discovery.d.ts +0 -45
- package/dist/plugins/discovery.d.ts.map +0 -1
- package/dist/plugins/discovery.js +0 -89
- package/dist/plugins/discovery.js.map +0 -1
- package/dist/plugins/index.d.ts +0 -10
- package/dist/plugins/index.d.ts.map +0 -1
- package/dist/plugins/index.js +0 -7
- package/dist/plugins/index.js.map +0 -1
- package/dist/plugins/registry.d.ts +0 -52
- package/dist/plugins/registry.d.ts.map +0 -1
- package/dist/plugins/registry.js +0 -148
- package/dist/plugins/registry.js.map +0 -1
- package/dist/plugins/sandbox.d.ts +0 -87
- package/dist/plugins/sandbox.d.ts.map +0 -1
- package/dist/plugins/sandbox.js +0 -122
- package/dist/plugins/sandbox.js.map +0 -1
- package/dist/plugins/types.d.ts +0 -61
- package/dist/plugins/types.d.ts.map +0 -1
- package/dist/plugins/types.js +0 -16
- package/dist/plugins/types.js.map +0 -1
- package/dist/plugins/validator.d.ts +0 -36
- package/dist/plugins/validator.d.ts.map +0 -1
- package/dist/plugins/validator.js +0 -276
- package/dist/plugins/validator.js.map +0 -1
- package/dist/policy/evaluator.d.ts +0 -41
- package/dist/policy/evaluator.d.ts.map +0 -1
- package/dist/policy/evaluator.js +0 -111
- package/dist/policy/evaluator.js.map +0 -1
- package/dist/policy/loader.d.ts +0 -13
- package/dist/policy/loader.d.ts.map +0 -1
- package/dist/policy/loader.js +0 -118
- package/dist/policy/loader.js.map +0 -1
- package/dist/policy/pack-loader.d.ts +0 -40
- package/dist/policy/pack-loader.d.ts.map +0 -1
- package/dist/policy/pack-loader.js +0 -138
- package/dist/policy/pack-loader.js.map +0 -1
- package/dist/policy/yaml-loader.d.ts +0 -23
- package/dist/policy/yaml-loader.d.ts.map +0 -1
- package/dist/policy/yaml-loader.js +0 -222
- package/dist/policy/yaml-loader.js.map +0 -1
- package/dist/renderers/index.d.ts +0 -6
- package/dist/renderers/index.d.ts.map +0 -1
- package/dist/renderers/index.js +0 -4
- package/dist/renderers/index.js.map +0 -1
- package/dist/renderers/registry.d.ts +0 -39
- package/dist/renderers/registry.d.ts.map +0 -1
- package/dist/renderers/registry.js +0 -97
- package/dist/renderers/registry.js.map +0 -1
- package/dist/renderers/tui-renderer.d.ts +0 -18
- package/dist/renderers/tui-renderer.d.ts.map +0 -1
- package/dist/renderers/tui-renderer.js +0 -57
- package/dist/renderers/tui-renderer.js.map +0 -1
- package/dist/renderers/types.d.ts +0 -52
- package/dist/renderers/types.d.ts.map +0 -1
- package/dist/renderers/types.js +0 -4
- package/dist/renderers/types.js.map +0 -1
- package/dist/telemetry/index.d.ts +0 -3
- package/dist/telemetry/index.d.ts.map +0 -1
- package/dist/telemetry/index.js +0 -2
- package/dist/telemetry/index.js.map +0 -1
- package/dist/telemetry/runtimeLogger.d.ts +0 -9
- package/dist/telemetry/runtimeLogger.d.ts.map +0 -1
- package/dist/telemetry/runtimeLogger.js +0 -68
- package/dist/telemetry/runtimeLogger.js.map +0 -1
- package/dist/telemetry/types.d.ts +0 -22
- package/dist/telemetry/types.d.ts.map +0 -1
- package/dist/telemetry/types.js +0 -4
- package/dist/telemetry/types.js.map +0 -1
- package/hooks/pre-commit +0 -28
- /package/dist/{cli/args.d.ts → args.d.ts} +0 -0
- /package/dist/{cli/args.js → args.js} +0 -0
- /package/dist/{cli/bin.d.ts → bin.d.ts} +0 -0
- /package/dist/{cli/colors.d.ts → colors.d.ts} +0 -0
- /package/dist/{cli/colors.js → colors.js} +0 -0
- /package/dist/{cli/commands → commands}/claude-init.d.ts +0 -0
- /package/dist/{cli/commands → commands}/plugin.d.ts +0 -0
- /package/dist/{cli/replay.d.ts → replay.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-viewer-html.js","sourceRoot":"","sources":["../src/session-viewer-html.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# AgentGuard Policy — CI-Only
|
|
2
|
+
#
|
|
3
|
+
# Read-only filesystem with test execution allowed. No git mutations, no file
|
|
4
|
+
# writes, no deploys. Designed for CI/CD pipelines where the agent should only
|
|
5
|
+
# build, test, and report — never modify source code or push changes.
|
|
6
|
+
#
|
|
7
|
+
# Best for: CI pipelines, automated review bots, read-only analysis.
|
|
8
|
+
#
|
|
9
|
+
# Scaffolded by: agentguard init --template ci-only
|
|
10
|
+
# Docs: https://github.com/jpleva91/agent-guard#policy
|
|
11
|
+
|
|
12
|
+
id: ci-only-policy
|
|
13
|
+
name: CI-Only Safety Policy
|
|
14
|
+
description: Read-only with test execution — no mutations, no pushes, no deploys
|
|
15
|
+
severity: 4
|
|
16
|
+
|
|
17
|
+
rules:
|
|
18
|
+
# ─── No git mutations ─────────────────────────────────────────────────
|
|
19
|
+
- action: git.push
|
|
20
|
+
effect: deny
|
|
21
|
+
reason: CI pipelines must not push directly
|
|
22
|
+
|
|
23
|
+
- action: git.force-push
|
|
24
|
+
effect: deny
|
|
25
|
+
reason: Force push prohibited in CI
|
|
26
|
+
|
|
27
|
+
- action: git.commit
|
|
28
|
+
effect: deny
|
|
29
|
+
reason: CI pipelines must not create commits
|
|
30
|
+
|
|
31
|
+
- action: git.reset
|
|
32
|
+
effect: deny
|
|
33
|
+
reason: Git reset prohibited in CI
|
|
34
|
+
|
|
35
|
+
- action: git.branch.create
|
|
36
|
+
effect: deny
|
|
37
|
+
reason: CI pipelines must not create branches
|
|
38
|
+
|
|
39
|
+
- action: git.branch.delete
|
|
40
|
+
effect: deny
|
|
41
|
+
reason: CI pipelines must not delete branches
|
|
42
|
+
|
|
43
|
+
- action: git.merge
|
|
44
|
+
effect: deny
|
|
45
|
+
reason: CI pipelines must not merge branches
|
|
46
|
+
|
|
47
|
+
# ─── No file mutations ────────────────────────────────────────────────
|
|
48
|
+
- action: file.write
|
|
49
|
+
effect: deny
|
|
50
|
+
reason: CI pipelines must not modify source files
|
|
51
|
+
|
|
52
|
+
- action: file.delete
|
|
53
|
+
effect: deny
|
|
54
|
+
reason: CI pipelines must not delete files
|
|
55
|
+
|
|
56
|
+
- action: file.move
|
|
57
|
+
effect: deny
|
|
58
|
+
reason: CI pipelines must not move files
|
|
59
|
+
|
|
60
|
+
# ─── No publishing or deployment ──────────────────────────────────────
|
|
61
|
+
- action: npm.publish
|
|
62
|
+
effect: deny
|
|
63
|
+
reason: Publishing must use a dedicated release pipeline
|
|
64
|
+
|
|
65
|
+
- action: deploy.trigger
|
|
66
|
+
effect: deny
|
|
67
|
+
reason: Deployment must use a dedicated deploy pipeline
|
|
68
|
+
|
|
69
|
+
- action: infra.apply
|
|
70
|
+
effect: deny
|
|
71
|
+
reason: Infrastructure changes prohibited in CI
|
|
72
|
+
|
|
73
|
+
- action: infra.destroy
|
|
74
|
+
effect: deny
|
|
75
|
+
reason: Infrastructure destruction prohibited in CI
|
|
76
|
+
|
|
77
|
+
# ─── Allowed: read-only and test operations ────────────────────────────
|
|
78
|
+
- action: file.read
|
|
79
|
+
effect: allow
|
|
80
|
+
|
|
81
|
+
- action: git.diff
|
|
82
|
+
effect: allow
|
|
83
|
+
|
|
84
|
+
- action: git.checkout
|
|
85
|
+
effect: allow
|
|
86
|
+
|
|
87
|
+
- action:
|
|
88
|
+
- test.run
|
|
89
|
+
- test.run.unit
|
|
90
|
+
- test.run.integration
|
|
91
|
+
effect: allow
|
|
92
|
+
|
|
93
|
+
- action: shell.exec
|
|
94
|
+
effect: allow
|
|
95
|
+
|
|
96
|
+
- action: npm.install
|
|
97
|
+
effect: allow
|
|
98
|
+
|
|
99
|
+
- action: npm.script.run
|
|
100
|
+
effect: allow
|
|
101
|
+
|
|
102
|
+
- action: http.request
|
|
103
|
+
effect: allow
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# AgentGuard Policy — Development
|
|
2
|
+
#
|
|
3
|
+
# Balanced policy for active development. Allows most operations while denying
|
|
4
|
+
# destructive git actions and protecting secrets. A good starting point for
|
|
5
|
+
# teams that want guardrails without excessive restrictions.
|
|
6
|
+
#
|
|
7
|
+
# Best for: team development, feature branches, day-to-day coding with agents.
|
|
8
|
+
#
|
|
9
|
+
# Scaffolded by: agentguard init --template development
|
|
10
|
+
# Docs: https://github.com/jpleva91/agent-guard#policy
|
|
11
|
+
|
|
12
|
+
id: development-policy
|
|
13
|
+
name: Development Safety Policy
|
|
14
|
+
description: Balanced guardrails for active development — protect branches and secrets
|
|
15
|
+
severity: 3
|
|
16
|
+
|
|
17
|
+
rules:
|
|
18
|
+
# ─── Branch protection ────────────────────────────────────────────────
|
|
19
|
+
# Protect main/master from direct pushes — use feature branches and PRs.
|
|
20
|
+
- action: git.push
|
|
21
|
+
effect: deny
|
|
22
|
+
branches: [main, master, release, production]
|
|
23
|
+
reason: Direct push to protected branch — use a feature branch
|
|
24
|
+
|
|
25
|
+
# Force push is never safe on shared branches.
|
|
26
|
+
- action: git.force-push
|
|
27
|
+
effect: deny
|
|
28
|
+
reason: Force push rewrites shared history
|
|
29
|
+
|
|
30
|
+
# ─── Secrets protection ───────────────────────────────────────────────
|
|
31
|
+
- action: file.write
|
|
32
|
+
effect: deny
|
|
33
|
+
target: .env
|
|
34
|
+
reason: Secrets file must not be modified by agents
|
|
35
|
+
|
|
36
|
+
- action: file.write
|
|
37
|
+
effect: deny
|
|
38
|
+
target: "*.pem"
|
|
39
|
+
reason: Certificate files are protected
|
|
40
|
+
|
|
41
|
+
- action: file.write
|
|
42
|
+
effect: deny
|
|
43
|
+
target: "*.key"
|
|
44
|
+
reason: Private key files are protected
|
|
45
|
+
|
|
46
|
+
# ─── Destructive command protection ────────────────────────────────────
|
|
47
|
+
- action: shell.exec
|
|
48
|
+
effect: deny
|
|
49
|
+
target: rm -rf
|
|
50
|
+
reason: Recursive delete blocked
|
|
51
|
+
|
|
52
|
+
- action: infra.destroy
|
|
53
|
+
effect: deny
|
|
54
|
+
reason: Infrastructure destruction requires manual confirmation
|
|
55
|
+
|
|
56
|
+
# ─── Blast radius ─────────────────────────────────────────────────────
|
|
57
|
+
# Limit the scope of changes to prevent runaway modifications.
|
|
58
|
+
- action: file.write
|
|
59
|
+
effect: deny
|
|
60
|
+
limit: 20
|
|
61
|
+
reason: Blast radius exceeded — max 20 files per action
|
|
62
|
+
|
|
63
|
+
# ─── Allowed operations ───────────────────────────────────────────────
|
|
64
|
+
# Reading is always safe.
|
|
65
|
+
- action: file.read
|
|
66
|
+
effect: allow
|
|
67
|
+
|
|
68
|
+
# File writes are allowed (subject to blast radius limit above).
|
|
69
|
+
- action: file.write
|
|
70
|
+
effect: allow
|
|
71
|
+
|
|
72
|
+
# Git operations on non-protected branches.
|
|
73
|
+
- action: git.push
|
|
74
|
+
effect: allow
|
|
75
|
+
|
|
76
|
+
- action: git.commit
|
|
77
|
+
effect: allow
|
|
78
|
+
|
|
79
|
+
- action: git.diff
|
|
80
|
+
effect: allow
|
|
81
|
+
|
|
82
|
+
- action: git.checkout
|
|
83
|
+
effect: allow
|
|
84
|
+
|
|
85
|
+
- action: git.branch.create
|
|
86
|
+
effect: allow
|
|
87
|
+
|
|
88
|
+
- action: git.merge
|
|
89
|
+
effect: allow
|
|
90
|
+
|
|
91
|
+
# Testing is encouraged.
|
|
92
|
+
- action:
|
|
93
|
+
- test.run
|
|
94
|
+
- test.run.unit
|
|
95
|
+
- test.run.integration
|
|
96
|
+
effect: allow
|
|
97
|
+
|
|
98
|
+
# Shell commands for builds and scripts.
|
|
99
|
+
- action: shell.exec
|
|
100
|
+
effect: allow
|
|
101
|
+
|
|
102
|
+
# NPM operations.
|
|
103
|
+
- action: npm.install
|
|
104
|
+
effect: allow
|
|
105
|
+
|
|
106
|
+
- action: npm.script.run
|
|
107
|
+
effect: allow
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# AgentGuard Policy — Permissive
|
|
2
|
+
#
|
|
3
|
+
# Default-allow with deny rules only for dangerous operations. Gives agents
|
|
4
|
+
# freedom to work while guarding against the most destructive actions.
|
|
5
|
+
#
|
|
6
|
+
# Best for: personal projects, prototyping, trusted development environments.
|
|
7
|
+
#
|
|
8
|
+
# Scaffolded by: agentguard init --template permissive
|
|
9
|
+
# Docs: https://github.com/jpleva91/agent-guard#policy
|
|
10
|
+
|
|
11
|
+
id: permissive-policy
|
|
12
|
+
name: Permissive Safety Policy
|
|
13
|
+
description: Default-allow with guardrails for dangerous operations only
|
|
14
|
+
severity: 2
|
|
15
|
+
|
|
16
|
+
rules:
|
|
17
|
+
# ─── Critical safety only ─────────────────────────────────────────────
|
|
18
|
+
# These rules catch the most destructive operations that are almost never
|
|
19
|
+
# intentional when performed by an AI coding agent.
|
|
20
|
+
|
|
21
|
+
# Protect main/master from direct pushes.
|
|
22
|
+
- action: git.push
|
|
23
|
+
effect: deny
|
|
24
|
+
branches: [main, master]
|
|
25
|
+
reason: Direct push to protected branch — use a feature branch
|
|
26
|
+
|
|
27
|
+
# Force push rewrites shared history.
|
|
28
|
+
- action: git.force-push
|
|
29
|
+
effect: deny
|
|
30
|
+
reason: Force push rewrites shared history
|
|
31
|
+
|
|
32
|
+
# Secrets must never be touched.
|
|
33
|
+
- action: file.write
|
|
34
|
+
effect: deny
|
|
35
|
+
target: .env
|
|
36
|
+
reason: Secrets file must not be modified
|
|
37
|
+
|
|
38
|
+
# Block recursive deletion.
|
|
39
|
+
- action: shell.exec
|
|
40
|
+
effect: deny
|
|
41
|
+
target: rm -rf
|
|
42
|
+
reason: Recursive delete blocked
|
|
43
|
+
|
|
44
|
+
# Block infrastructure destruction.
|
|
45
|
+
- action: infra.destroy
|
|
46
|
+
effect: deny
|
|
47
|
+
reason: Infrastructure destruction requires manual confirmation
|
|
48
|
+
|
|
49
|
+
# ─── Everything else is allowed ────────────────────────────────────────
|
|
50
|
+
- action: file.read
|
|
51
|
+
effect: allow
|
|
52
|
+
|
|
53
|
+
- action: file.write
|
|
54
|
+
effect: allow
|
|
55
|
+
|
|
56
|
+
- action: file.delete
|
|
57
|
+
effect: allow
|
|
58
|
+
|
|
59
|
+
- action: git.push
|
|
60
|
+
effect: allow
|
|
61
|
+
|
|
62
|
+
- action: git.commit
|
|
63
|
+
effect: allow
|
|
64
|
+
|
|
65
|
+
- action: git.diff
|
|
66
|
+
effect: allow
|
|
67
|
+
|
|
68
|
+
- action: git.checkout
|
|
69
|
+
effect: allow
|
|
70
|
+
|
|
71
|
+
- action: git.branch.create
|
|
72
|
+
effect: allow
|
|
73
|
+
|
|
74
|
+
- action: shell.exec
|
|
75
|
+
effect: allow
|
|
76
|
+
|
|
77
|
+
- action:
|
|
78
|
+
- test.run
|
|
79
|
+
- test.run.unit
|
|
80
|
+
- test.run.integration
|
|
81
|
+
effect: allow
|
|
82
|
+
|
|
83
|
+
- action: npm.install
|
|
84
|
+
effect: allow
|
|
85
|
+
|
|
86
|
+
- action: npm.script.run
|
|
87
|
+
effect: allow
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# AgentGuard Policy — Strict
|
|
2
|
+
#
|
|
3
|
+
# Maximum guardrails for high-risk environments. Default-deny for all
|
|
4
|
+
# destructive operations. Only read and test operations are allowed by default.
|
|
5
|
+
#
|
|
6
|
+
# Best for: production codebases, security-sensitive projects, regulated environments.
|
|
7
|
+
#
|
|
8
|
+
# Scaffolded by: agentguard init --template strict
|
|
9
|
+
# Docs: https://github.com/jpleva91/agent-guard#policy
|
|
10
|
+
|
|
11
|
+
id: strict-policy
|
|
12
|
+
name: Strict Safety Policy
|
|
13
|
+
description: Maximum guardrails — deny destructive ops, enforce test-before-push
|
|
14
|
+
severity: 5
|
|
15
|
+
|
|
16
|
+
rules:
|
|
17
|
+
# ─── Git safety ───────────────────────────────────────────────────────
|
|
18
|
+
# All pushes denied — use pull requests instead.
|
|
19
|
+
- action: git.push
|
|
20
|
+
effect: deny
|
|
21
|
+
reason: All pushes denied in strict mode — use pull requests
|
|
22
|
+
|
|
23
|
+
# Force push rewrites shared history and is never safe.
|
|
24
|
+
- action: git.force-push
|
|
25
|
+
effect: deny
|
|
26
|
+
reason: Force push rewrites shared history
|
|
27
|
+
|
|
28
|
+
# Hard resets discard work; prefer git stash or revert.
|
|
29
|
+
- action: git.reset
|
|
30
|
+
effect: deny
|
|
31
|
+
reason: Git reset is destructive — use revert instead
|
|
32
|
+
|
|
33
|
+
# Branch deletion can lose unmerged work.
|
|
34
|
+
- action: git.branch.delete
|
|
35
|
+
effect: deny
|
|
36
|
+
reason: Branch deletion denied in strict mode
|
|
37
|
+
|
|
38
|
+
# ─── File safety ──────────────────────────────────────────────────────
|
|
39
|
+
# Prevent deletion of any files by the agent.
|
|
40
|
+
- action: file.delete
|
|
41
|
+
effect: deny
|
|
42
|
+
reason: File deletion denied in strict mode
|
|
43
|
+
|
|
44
|
+
# Secrets and credentials must never be touched.
|
|
45
|
+
- action: file.write
|
|
46
|
+
effect: deny
|
|
47
|
+
target: .env
|
|
48
|
+
reason: Secrets file modification denied
|
|
49
|
+
|
|
50
|
+
- action: file.write
|
|
51
|
+
effect: deny
|
|
52
|
+
target: "*.pem"
|
|
53
|
+
reason: Certificate file modification denied
|
|
54
|
+
|
|
55
|
+
- action: file.write
|
|
56
|
+
effect: deny
|
|
57
|
+
target: "*.key"
|
|
58
|
+
reason: Private key file modification denied
|
|
59
|
+
|
|
60
|
+
# ─── Shell safety ─────────────────────────────────────────────────────
|
|
61
|
+
# Block known destructive commands.
|
|
62
|
+
- action: shell.exec
|
|
63
|
+
effect: deny
|
|
64
|
+
target: rm -rf
|
|
65
|
+
reason: Recursive delete blocked
|
|
66
|
+
|
|
67
|
+
- action: shell.exec
|
|
68
|
+
effect: deny
|
|
69
|
+
target: "chmod 777"
|
|
70
|
+
reason: Overly permissive chmod denied
|
|
71
|
+
|
|
72
|
+
# ─── Blast radius ─────────────────────────────────────────────────────
|
|
73
|
+
# Limit the number of files modified in a single action.
|
|
74
|
+
- action: file.write
|
|
75
|
+
effect: deny
|
|
76
|
+
limit: 10
|
|
77
|
+
reason: Blast radius exceeded — max 10 files per action
|
|
78
|
+
|
|
79
|
+
# ─── Package safety ───────────────────────────────────────────────────
|
|
80
|
+
- action: npm.publish
|
|
81
|
+
effect: deny
|
|
82
|
+
reason: Package publishing denied in strict mode
|
|
83
|
+
|
|
84
|
+
# ─── Infrastructure ───────────────────────────────────────────────────
|
|
85
|
+
- action: infra.destroy
|
|
86
|
+
effect: deny
|
|
87
|
+
reason: Infrastructure destruction denied
|
|
88
|
+
|
|
89
|
+
- action: infra.apply
|
|
90
|
+
effect: deny
|
|
91
|
+
reason: Infrastructure changes denied in strict mode
|
|
92
|
+
|
|
93
|
+
# ─── Deploy ───────────────────────────────────────────────────────────
|
|
94
|
+
- action: deploy.trigger
|
|
95
|
+
effect: deny
|
|
96
|
+
reason: Deployments denied in strict mode
|
|
97
|
+
|
|
98
|
+
# ─── Allowed operations ───────────────────────────────────────────────
|
|
99
|
+
# Reading files is always safe.
|
|
100
|
+
- action: file.read
|
|
101
|
+
effect: allow
|
|
102
|
+
|
|
103
|
+
# Running tests is encouraged.
|
|
104
|
+
- action:
|
|
105
|
+
- test.run
|
|
106
|
+
- test.run.unit
|
|
107
|
+
- test.run.integration
|
|
108
|
+
effect: allow
|
|
109
|
+
|
|
110
|
+
# Viewing diffs is safe.
|
|
111
|
+
- action: git.diff
|
|
112
|
+
effect: allow
|
package/dist/tui.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { TuiConfig, PolicyTraceEvent } from '@red-codes/renderers';
|
|
2
|
+
export { renderBanner, renderAction, renderViolations, renderMonitorStatus, renderSimulation, renderDecisionRecord, renderDecisionTable, renderKernelResult, renderActionGraph, renderPolicyTraces, renderEventStream, } from '@red-codes/renderers';
|
|
3
|
+
//# sourceMappingURL=tui.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tui.d.ts","sourceRoot":"","sources":["../src/tui.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC"}
|
package/dist/tui.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { renderBanner, renderAction, renderViolations, renderMonitorStatus, renderSimulation, renderDecisionRecord, renderDecisionTable, renderKernelResult, renderActionGraph, renderPolicyTraces, renderEventStream, } from '@red-codes/renderers';
|
|
2
|
+
//# sourceMappingURL=tui.js.map
|
package/dist/tui.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tui.js","sourceRoot":"","sources":["../src/tui.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,72 +1,61 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@red-codes/agentguard",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Runtime governance for AI coding agents —
|
|
3
|
+
"version": "1.1.1",
|
|
4
|
+
"description": "Runtime governance for AI coding agents — CLI",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"private": false,
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
6
10
|
"bin": {
|
|
7
|
-
"agentguard": "./dist/
|
|
11
|
+
"agentguard": "./dist/bin.js"
|
|
8
12
|
},
|
|
9
13
|
"files": [
|
|
10
14
|
"dist/",
|
|
11
|
-
"hooks/",
|
|
12
15
|
"LICENSE",
|
|
13
16
|
"README.md"
|
|
14
17
|
],
|
|
15
18
|
"repository": {
|
|
16
19
|
"type": "git",
|
|
17
|
-
"url": "
|
|
20
|
+
"url": "https://github.com/AgentGuardHQ/agentguard",
|
|
21
|
+
"directory": "apps/cli"
|
|
18
22
|
},
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"import": "./dist/index.js",
|
|
26
|
+
"types": "./dist/index.d.ts"
|
|
27
|
+
}
|
|
22
28
|
},
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
"
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"commander": "^14.0.3",
|
|
31
|
+
"pino": "^10.3.1",
|
|
32
|
+
"chokidar": "^5.0.0"
|
|
26
33
|
},
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"agentguard": "node dist/cli/bin.js",
|
|
30
|
-
"build:ts": "tsc && tsx esbuild.config.ts",
|
|
31
|
-
"ts:check": "tsc --noEmit",
|
|
32
|
-
"test": "node tests/run.js",
|
|
33
|
-
"ts:test": "vitest run",
|
|
34
|
-
"ts:test:watch": "vitest",
|
|
35
|
-
"test:coverage": "c8 --check-coverage --lines 50 node tests/run.js",
|
|
36
|
-
"lint": "eslint tests/ src/",
|
|
37
|
-
"lint:fix": "eslint --fix tests/ src/",
|
|
38
|
-
"format": "prettier --check src/",
|
|
39
|
-
"format:fix": "prettier --write src/",
|
|
40
|
-
"prepublishOnly": "npm run build:ts"
|
|
34
|
+
"optionalDependencies": {
|
|
35
|
+
"better-sqlite3": "^12.8.0"
|
|
41
36
|
},
|
|
42
|
-
"keywords": [
|
|
43
|
-
"agentguard",
|
|
44
|
-
"ai-governance",
|
|
45
|
-
"runtime-guardrails",
|
|
46
|
-
"agent-safety",
|
|
47
|
-
"policy-enforcement",
|
|
48
|
-
"invariants",
|
|
49
|
-
"canonical-events",
|
|
50
|
-
"audit-trail",
|
|
51
|
-
"cli",
|
|
52
|
-
"developer-tools"
|
|
53
|
-
],
|
|
54
|
-
"license": "Apache-2.0",
|
|
55
37
|
"devDependencies": {
|
|
56
|
-
"@types/
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
38
|
+
"@types/better-sqlite3": "^7.6.0",
|
|
39
|
+
"@red-codes/core": "1.0.0",
|
|
40
|
+
"@red-codes/policy": "0.1.0",
|
|
41
|
+
"@red-codes/events": "1.0.0",
|
|
42
|
+
"@red-codes/invariants": "0.1.0",
|
|
43
|
+
"@red-codes/kernel": "0.1.0",
|
|
44
|
+
"@red-codes/adapters": "0.1.0",
|
|
45
|
+
"@red-codes/storage": "0.1.0",
|
|
46
|
+
"@red-codes/plugins": "0.1.0",
|
|
47
|
+
"@red-codes/renderers": "0.1.0",
|
|
48
|
+
"@red-codes/swarm": "0.1.0",
|
|
49
|
+
"@red-codes/telemetry-client": "0.1.0",
|
|
50
|
+
"@red-codes/telemetry": "0.1.0"
|
|
66
51
|
},
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
52
|
+
"scripts": {
|
|
53
|
+
"build": "tsc -b && tsx esbuild.config.ts",
|
|
54
|
+
"dev": "node dist/bin.js",
|
|
55
|
+
"test": "vitest run",
|
|
56
|
+
"test:coverage": "vitest run --coverage",
|
|
57
|
+
"lint": "eslint src/",
|
|
58
|
+
"ts:check": "tsc --noEmit",
|
|
59
|
+
"clean": "rm -rf dist"
|
|
71
60
|
}
|
|
72
|
-
}
|
|
61
|
+
}
|