@debugbundle/cli 1.5.0 → 1.5.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/main.cjs +142 -5
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -15944,8 +15944,10 @@ function buildSkill() {
|
|
|
15944
15944
|
"name: debugbundle",
|
|
15945
15945
|
"description: >-",
|
|
15946
15946
|
" Investigate runtime incidents, inspect debug bundles, generate reproductions,",
|
|
15947
|
-
"
|
|
15948
|
-
" Use when the user reports a bug, runtime
|
|
15947
|
+
" run improvement analysis, and inspect operational controls using the DebugBundle",
|
|
15948
|
+
" CLI and local project scaffold. Use when the user reports a bug, runtime",
|
|
15949
|
+
" failure, production incident, endpoint downtime, health-check issue, missing",
|
|
15950
|
+
" notification, webhook delivery failure, probe request, or noisy incident.",
|
|
15949
15951
|
"metadata:",
|
|
15950
15952
|
" author: debugbundle",
|
|
15951
15953
|
' version: "1.0"',
|
|
@@ -15983,6 +15985,24 @@ function buildSkill() {
|
|
|
15983
15985
|
"4. Apply the narrowest fix, then validate it with the repository test workflow from `.debugbundle/profile.json`.",
|
|
15984
15986
|
"5. When the fix is confirmed, or when the incident was intentionally generated for smoke, verification, or dogfooding, resolve it with `debugbundle resolve <incident-id> [incident-id ...]` or MCP `resolve_incident` / `resolve_incidents` so the open queue stays actionable.",
|
|
15985
15987
|
"",
|
|
15988
|
+
"## Investigation Controls",
|
|
15989
|
+
"",
|
|
15990
|
+
"Use these controls when the user's issue is about observability behavior, notification delivery, targeted evidence gathering, or event noise rather than only application code.",
|
|
15991
|
+
"",
|
|
15992
|
+
"- Availability checks: use hosted health checks for endpoint downtime, public reachability, or project Health tab issues. These are DebugBundle-run external `GET`/`HEAD` checks, not SDK events from the customer app.",
|
|
15993
|
+
"- Probes: inspect active probes with `debugbundle probe list <project-id> --json` or MCP `list_active_probes` before activating more probes. Activate probes only when targeted runtime evidence is needed and the user has asked for investigation.",
|
|
15994
|
+
"- Capture policy and rules: inspect policy/rules before suppressing noisy incidents. Prefer `debugbundle capture-rule suggest <incident-id> --json` and narrow capture-policy path rules over broad drops or demotions.",
|
|
15995
|
+
"- Alerts and webhooks: when the user reports missing, duplicate, or failed notifications, inspect alert config, webhook config, and webhook delivery history before changing application code.",
|
|
15996
|
+
"",
|
|
15997
|
+
"## Availability Checks",
|
|
15998
|
+
"",
|
|
15999
|
+
"- Start with `debugbundle health checks list --project-id <id> --json` or MCP `list_health_checks` to inspect saved checks and plan limits.",
|
|
16000
|
+
"- For a failing check, inspect `debugbundle health checks results <check-id> --project-id <id> --json` and `debugbundle health checks daily-rollups <check-id> --project-id <id> --json` before changing code.",
|
|
16001
|
+
"- Use `debugbundle health checks test --project-id <id> --url <url> --json` or MCP `test_health_check` before creating or updating a saved check. Tests are side-effect-free: no incidents, retained history rows, or counters.",
|
|
16002
|
+
"- Create, update, delete, enable, or disable checks only when the user explicitly asks to change monitoring.",
|
|
16003
|
+
"- Availability incidents reuse the normal incident lifecycle. If a check opened an incident, fetch the incident context, bundle, and reproduction before proposing a fix, then resolve only after the endpoint recovers or the intentional verification incident has served its purpose.",
|
|
16004
|
+
"- Do not configure private, localhost, metadata-service, credentialed, or state-mutating targets. V1 health-check targets must be external `http`/`https` URLs on safe ports.",
|
|
16005
|
+
"",
|
|
15986
16006
|
"## Incident Hygiene",
|
|
15987
16007
|
"",
|
|
15988
16008
|
"- Treat `open` as actionable work, not historical record.",
|
|
@@ -15999,6 +16019,25 @@ function buildSkill() {
|
|
|
15999
16019
|
"- Scope frontend noise by structured evidence such as service, environment, `browser_event_kind`, `browser_event_opaque`, `client_kind`, `bot_family`, and message fields. Do not broadly demote generic `Unhandled promise rejection` incidents without bot-scoped or otherwise narrow evidence.",
|
|
16000
16020
|
"- For expected or intentionally promoted 4xx responses on known routes, use capture-policy client-error path rules instead of promoting all client errors: `debugbundle capture-policy set --client-error-path-rule <status=/path/*@GET>`.",
|
|
16001
16021
|
"",
|
|
16022
|
+
"## Notification Delivery",
|
|
16023
|
+
"",
|
|
16024
|
+
"When notification or automation delivery is the reported failure, inspect configuration and delivery records before changing incident logic.",
|
|
16025
|
+
"",
|
|
16026
|
+
"- Alerts route incident notifications to configured channels. Start with `debugbundle alert list --project-id <id> --json` and confirm condition, severity, service, cooldown, channel, and enabled state.",
|
|
16027
|
+
"- Webhooks deliver signed lifecycle events to external systems. Start with `debugbundle webhook list --project-id <id> --json`, then inspect `debugbundle webhook deliveries <webhook-id> --project-id <id> --json` before retrying or testing.",
|
|
16028
|
+
"- Webhook tests and retries are side-effecting delivery actions. Use them only when validating a destination or replaying an explicit failed delivery.",
|
|
16029
|
+
"",
|
|
16030
|
+
"## Full Documentation",
|
|
16031
|
+
"",
|
|
16032
|
+
"- CLI: `https://debugbundle.com/docs/cli`",
|
|
16033
|
+
"- MCP tools: `https://debugbundle.com/docs/mcp/tools`",
|
|
16034
|
+
"- Availability checks: `https://debugbundle.com/docs/availability-checks`",
|
|
16035
|
+
"- Probes: `https://debugbundle.com/docs/probes`",
|
|
16036
|
+
"- Capture policy and rules: `https://debugbundle.com/docs/capture-policy`",
|
|
16037
|
+
"- Alerts: `https://debugbundle.com/docs/alerts` and `https://debugbundle.com/docs/cli/alerts`",
|
|
16038
|
+
"- Webhooks: `https://debugbundle.com/docs/webhooks` and `https://debugbundle.com/docs/cli/webhooks`",
|
|
16039
|
+
"- API ingestion: `https://debugbundle.com/docs/api/ingestion`",
|
|
16040
|
+
"",
|
|
16002
16041
|
"## Profile Validation",
|
|
16003
16042
|
"",
|
|
16004
16043
|
"Use this task after setup or whenever architecture changes make the static profile stale.",
|
|
@@ -16076,6 +16115,56 @@ function buildCliReference() {
|
|
|
16076
16115
|
"",
|
|
16077
16116
|
"Use capture-rule suggestions for repeated operational noise after inspecting an incident bundle. Use capture-policy client-error path rules for route-scoped 4xx incidents instead of promoting all client errors.",
|
|
16078
16117
|
"",
|
|
16118
|
+
"## Probes",
|
|
16119
|
+
"",
|
|
16120
|
+
"- `debugbundle probe activate <project-id> --label-pattern <pattern> [--service <name>] [--environment <name>] [--ttl-seconds <n>] [--trigger-ttl-seconds <n>] [--auth-file <path>] [--json]`",
|
|
16121
|
+
"- `debugbundle probe list <project-id> [--auth-file <path>] [--json]`",
|
|
16122
|
+
"- `debugbundle probe deactivate <project-id> <activation-id> [--auth-file <path>] [--json]`",
|
|
16123
|
+
"",
|
|
16124
|
+
"Use probes for targeted evidence gathering when bundle context is insufficient. Prefer narrow label patterns, scoped service/environment values, and explicit TTLs.",
|
|
16125
|
+
"",
|
|
16126
|
+
"## Notifications",
|
|
16127
|
+
"",
|
|
16128
|
+
"- `debugbundle alert list --project-id <id> [--limit <n>] [--auth-file <path>] [--json]`",
|
|
16129
|
+
"- `debugbundle alert create --project-id <id> --channel <channel> --condition <condition> [--service-id <id>] [--severity-min <level>] [--cooldown <seconds>] --config-json <json> [--is-enabled <true|false>] [--auth-file <path>] [--json]`",
|
|
16130
|
+
"- `debugbundle alert update <alert-id> --project-id <id> [--service-id <id|null>] [--channel <channel>] [--condition <condition>] [--severity-min <level|null>] [--cooldown <seconds>] [--config-json <json|null>] [--is-enabled <true|false>] [--auth-file <path>] [--json]`",
|
|
16131
|
+
"- `debugbundle alert delete <alert-id> --project-id <id> [--auth-file <path>] [--json]`",
|
|
16132
|
+
"- `debugbundle webhook list --project-id <id> [--limit <n>] [--auth-file <path>] [--json]`",
|
|
16133
|
+
"- `debugbundle webhook create --project-id <id> --url <url> --event <event[,event]> [--environment <env[,env]>] [--service <svc[,svc]>] [--severity-min <level>] [--bundle-type <type[,type]>] [--verification <true|false>] [--is-enabled <true|false>] [--auth-file <path>] [--json]`",
|
|
16134
|
+
"- `debugbundle webhook update <webhook-id> --project-id <id> [--url <url>] [--event <event[,event]>] [--environment <env[,env]>] [--service <svc[,svc]>] [--severity-min <level>] [--bundle-type <type[,type]>] [--verification <true|false>] [--is-enabled <true|false>] [--auth-file <path>] [--json]`",
|
|
16135
|
+
"- `debugbundle webhook delete <webhook-id> --project-id <id> [--auth-file <path>] [--json]`",
|
|
16136
|
+
"- `debugbundle webhook test <webhook-id> --project-id <id> [--event <verification.passed|verification.failed>] [--auth-file <path>] [--json]`",
|
|
16137
|
+
"- `debugbundle webhook deliveries <webhook-id> --project-id <id> [--limit <n>] [--auth-file <path>] [--json]`",
|
|
16138
|
+
"- `debugbundle webhook retry <webhook-id> <delivery-id> --project-id <id> [--auth-file <path>] [--json]`",
|
|
16139
|
+
"",
|
|
16140
|
+
"Use alert commands for notification routing and webhook commands for signed event delivery, delivery history, synthetic tests, and manual retries.",
|
|
16141
|
+
"",
|
|
16142
|
+
"## Availability Checks",
|
|
16143
|
+
"",
|
|
16144
|
+
"- `debugbundle health checks list --project-id <id> [--limit <n>] [--auth-file <path>] [--json]`",
|
|
16145
|
+
"- `debugbundle health checks get <check-id> --project-id <id> [--auth-file <path>] [--json]`",
|
|
16146
|
+
"- `debugbundle health checks create --project-id <id> --name <name> --url <url> --interval-seconds <n> [--method <GET|HEAD>] [--expected-status-min <code>] [--expected-status-max <code>] [--timeout-ms <n>] [--failure-threshold <n>] [--recovery-threshold <n>] [--environment <name>] [--service <name|null>] [--enabled <true|false>] [--auth-file <path>] [--json]`",
|
|
16147
|
+
"- `debugbundle health checks update <check-id> --project-id <id> [--name <name>] [--url <url>] [--method <GET|HEAD>] [--expected-status-min <code>] [--expected-status-max <code>] [--timeout-ms <n>] [--interval-seconds <n>] [--failure-threshold <n>] [--recovery-threshold <n>] [--environment <name>] [--service <name|null>] [--enabled <true|false>] [--auth-file <path>] [--json]`",
|
|
16148
|
+
"- `debugbundle health checks delete <check-id> --project-id <id> [--auth-file <path>] [--json]`",
|
|
16149
|
+
"- `debugbundle health checks test --project-id <id> --url <url> [--method <GET|HEAD>] [--expected-status-min <code>] [--expected-status-max <code>] [--timeout-ms <n>] [--auth-file <path>] [--json]`",
|
|
16150
|
+
"- `debugbundle health checks results <check-id> --project-id <id> [--limit <n>] [--auth-file <path>] [--json]`",
|
|
16151
|
+
"- `debugbundle health checks daily-rollups <check-id> --project-id <id> [--limit <n>] [--auth-file <path>] [--json]`",
|
|
16152
|
+
"",
|
|
16153
|
+
"Use availability-check commands for hosted endpoint reachability. Prefer `test` before saving a new target. `test` is side-effect-free and does not create incidents or retained history. Saved checks remain visible after downgrade, but checks beyond current count or interval limits pause until the project becomes eligible again.",
|
|
16154
|
+
"",
|
|
16155
|
+
"## Documentation URLs",
|
|
16156
|
+
"",
|
|
16157
|
+
"- CLI overview: `https://debugbundle.com/docs/cli`",
|
|
16158
|
+
"- Cloud workflow: `https://debugbundle.com/docs/cli/cloud-workflow`",
|
|
16159
|
+
"- API overview: `https://debugbundle.com/docs/api`",
|
|
16160
|
+
"- API ingestion: `https://debugbundle.com/docs/api/ingestion`",
|
|
16161
|
+
"- Alerts: `https://debugbundle.com/docs/alerts` and `https://debugbundle.com/docs/cli/alerts`",
|
|
16162
|
+
"- Webhooks: `https://debugbundle.com/docs/webhooks`, `https://debugbundle.com/docs/cli/webhooks`, and `https://debugbundle.com/docs/api/webhooks`",
|
|
16163
|
+
"- Probes: `https://debugbundle.com/docs/probes` and `https://debugbundle.com/docs/api/probes`",
|
|
16164
|
+
"- Capture policy and rules: `https://debugbundle.com/docs/capture-policy`",
|
|
16165
|
+
"- Availability checks: `https://debugbundle.com/docs/availability-checks`",
|
|
16166
|
+
"- MCP tool catalog: `https://debugbundle.com/docs/mcp/tools`",
|
|
16167
|
+
"",
|
|
16079
16168
|
"## Operational Paths",
|
|
16080
16169
|
"",
|
|
16081
16170
|
"- `.debugbundle/profile.json` \u2014 committed project map and agent validation state",
|
|
@@ -16097,7 +16186,7 @@ function buildCliReference() {
|
|
|
16097
16186
|
"",
|
|
16098
16187
|
"```bash",
|
|
16099
16188
|
"debugbundle incidents --status open --json",
|
|
16100
|
-
"debugbundle resolve <incident-id>",
|
|
16189
|
+
"debugbundle resolve <incident-id> [incident-id ...]",
|
|
16101
16190
|
"debugbundle incidents --status open --json",
|
|
16102
16191
|
"```",
|
|
16103
16192
|
"",
|
|
@@ -16142,6 +16231,45 @@ function buildMcpReference() {
|
|
|
16142
16231
|
"",
|
|
16143
16232
|
"Use these tools for repeated low-value operational noise only after inspecting incident evidence. Keep frontend suppression scoped by structured browser and client signals, and use path-scoped capture policy for known 4xx routes.",
|
|
16144
16233
|
"",
|
|
16234
|
+
"## Probe Tools",
|
|
16235
|
+
"",
|
|
16236
|
+
"- `activate_probe` \u2014 activate a remote probe pattern with optional service/environment scope and TTL.",
|
|
16237
|
+
"- `list_active_probes` \u2014 list active probe activations for a project.",
|
|
16238
|
+
"- `deactivate_probe` \u2014 deactivate one active probe.",
|
|
16239
|
+
"",
|
|
16240
|
+
"Use probes for targeted evidence gathering when incident bundles do not contain enough runtime context.",
|
|
16241
|
+
"",
|
|
16242
|
+
"## Notification Tools",
|
|
16243
|
+
"",
|
|
16244
|
+
"- `list_alerts`, `create_alert`, `update_alert`, `delete_alert` \u2014 manage incident alert rules.",
|
|
16245
|
+
"- `list_webhooks`, `create_webhook`, `update_webhook`, `delete_webhook` \u2014 manage signed webhook destinations.",
|
|
16246
|
+
"- `test_webhook`, `list_webhook_deliveries` \u2014 validate webhook delivery and inspect delivery history.",
|
|
16247
|
+
"",
|
|
16248
|
+
"Use these tools when the reported problem is missing, duplicate, delayed, disabled, or failed notification delivery.",
|
|
16249
|
+
"",
|
|
16250
|
+
"## Availability Check Tools",
|
|
16251
|
+
"",
|
|
16252
|
+
"- `list_health_checks` \u2014 list hosted health checks and plan limits for a project.",
|
|
16253
|
+
"- `get_health_check` \u2014 fetch one hosted health check by id.",
|
|
16254
|
+
"- `test_health_check` \u2014 run a side-effect-free target test without opening incidents or writing retained history.",
|
|
16255
|
+
"- `create_health_check`, `update_health_check`, `delete_health_check` \u2014 manage saved hosted health checks when the user explicitly asks to change monitoring.",
|
|
16256
|
+
"- `list_health_check_results` \u2014 inspect recent raw executions for one check.",
|
|
16257
|
+
"- `list_health_check_daily_rollups` \u2014 inspect retained per-day status history for one check.",
|
|
16258
|
+
"",
|
|
16259
|
+
"Use these tools for endpoint downtime, public reachability, and project Health tab issues. Start with list/results/rollups, use `test_health_check` before saving target changes, and inspect the linked normal incident bundle when failures crossed the configured threshold.",
|
|
16260
|
+
"",
|
|
16261
|
+
"## Documentation URLs",
|
|
16262
|
+
"",
|
|
16263
|
+
"- MCP overview: `https://debugbundle.com/docs/mcp`",
|
|
16264
|
+
"- MCP workflows: `https://debugbundle.com/docs/mcp/workflows`",
|
|
16265
|
+
"- MCP tools: `https://debugbundle.com/docs/mcp/tools`",
|
|
16266
|
+
"- Availability checks: `https://debugbundle.com/docs/availability-checks`",
|
|
16267
|
+
"- Probes: `https://debugbundle.com/docs/probes`",
|
|
16268
|
+
"- Capture policy and rules: `https://debugbundle.com/docs/capture-policy`",
|
|
16269
|
+
"- Alerts: `https://debugbundle.com/docs/alerts`",
|
|
16270
|
+
"- Webhooks: `https://debugbundle.com/docs/webhooks`",
|
|
16271
|
+
"- API ingestion: `https://debugbundle.com/docs/api/ingestion`",
|
|
16272
|
+
"",
|
|
16145
16273
|
"## Smoke-Test Cleanup Recipe",
|
|
16146
16274
|
"",
|
|
16147
16275
|
'1. Call `list_incidents` with `status: "open"`.',
|
|
@@ -16276,6 +16404,15 @@ function buildSkillEvals() {
|
|
|
16276
16404
|
"Use capture-policy path rules for known route-scoped 4xx incidents."
|
|
16277
16405
|
]
|
|
16278
16406
|
},
|
|
16407
|
+
{
|
|
16408
|
+
name: "operational_controls_guidance",
|
|
16409
|
+
prompt: "The user reports missing webhook deliveries and asks whether probes or alerts are available. Confirm the skill points the agent to the relevant operational controls and docs.",
|
|
16410
|
+
expected_behavior: [
|
|
16411
|
+
"Inspect alert and webhook configuration plus webhook delivery history before changing application code.",
|
|
16412
|
+
"Use probes for targeted evidence gathering with narrow scope and TTL.",
|
|
16413
|
+
"Point to the full CLI, MCP, alerts, webhooks, probes, capture policy, availability checks, and ingestion documentation URLs."
|
|
16414
|
+
]
|
|
16415
|
+
},
|
|
16279
16416
|
{
|
|
16280
16417
|
name: "artifact_path_discovery",
|
|
16281
16418
|
prompt: "The user reports an unknown local runtime error. Confirm the skill tells the agent which DebugBundle paths and commands to inspect first.",
|
|
@@ -27622,7 +27759,7 @@ function buildManagedAgentsSection() {
|
|
|
27622
27759
|
"- Read `.agents/skills/debugbundle/SKILL.md` for the full debugging workflow.",
|
|
27623
27760
|
"- Use `debugbundle inspect <incident-id>` or MCP `get_bundle` when a user reports an issue.",
|
|
27624
27761
|
"- Run reproduction artifacts from `.debugbundle/bundles/local/reproductions/` before proposing a fix.",
|
|
27625
|
-
"- After a fix is verified, or after an intentional smoke or dogfood incident has served its purpose, resolve it with `debugbundle resolve <incident-id
|
|
27762
|
+
"- After a fix is verified, or after an intentional smoke or dogfood incident has served its purpose, resolve it with `debugbundle resolve <incident-id> [incident-id ...]` or MCP `resolve_incident` / `resolve_incidents` so open incidents remain actionable.",
|
|
27626
27763
|
"- Use `debugbundle doctor` to validate local DebugBundle setup or connectivity issues.",
|
|
27627
27764
|
MANAGED_AGENTS_END
|
|
27628
27765
|
].join("\n");
|
|
@@ -36537,7 +36674,7 @@ async function handleCaptureRuleCommand2(parsedArgv, dependencies) {
|
|
|
36537
36674
|
// package.json
|
|
36538
36675
|
var package_default = {
|
|
36539
36676
|
name: "@debugbundle/cli",
|
|
36540
|
-
version: "1.5.
|
|
36677
|
+
version: "1.5.1",
|
|
36541
36678
|
private: false,
|
|
36542
36679
|
description: "Command-line interface for DebugBundle",
|
|
36543
36680
|
license: "AGPL-3.0-only",
|