@debugbundle/cli 1.6.2 → 1.6.3

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 (2) hide show
  1. package/dist/main.cjs +38 -17
  2. package/package.json +1 -1
package/dist/main.cjs CHANGED
@@ -15977,9 +15977,12 @@ function buildSkill() {
15977
15977
  "description: >-",
15978
15978
  " Investigate runtime incidents, inspect debug bundles, generate reproductions,",
15979
15979
  " run improvement analysis, and inspect operational controls using the DebugBundle",
15980
- " CLI and local project scaffold. Use when the user reports a bug, runtime",
15981
- " failure, production incident, endpoint downtime, health-check issue, missing",
15982
- " notification, webhook delivery failure, probe request, or noisy incident.",
15980
+ " CLI and local project scaffold. Use when runtime errors/failures or captured",
15981
+ " operational evidence are relevant: production/customer-facing incidents,",
15982
+ " endpoint downtime, health-check failures, notification or webhook failures,",
15983
+ " probes, noisy captured incidents, or explicit DebugBundle artifact requests. Do not use for",
15984
+ " deterministic local source, UI, layout, copy, calculation, refactor, or",
15985
+ " test-only issues unless runtime evidence is needed.",
15983
15986
  "metadata:",
15984
15987
  " author: debugbundle",
15985
15988
  ' version: "1.0"',
@@ -15987,11 +15990,22 @@ function buildSkill() {
15987
15990
  "",
15988
15991
  "# DebugBundle",
15989
15992
  "",
15990
- "Use DebugBundle before starting a fresh bug investigation.",
15993
+ "Use DebugBundle when runtime evidence is relevant to the task.",
15994
+ "",
15995
+ "## When To Use DebugBundle",
15996
+ "",
15997
+ "Use the incident/artifact workflow when the user reports:",
15998
+ "",
15999
+ "- production or customer-facing incidents, runtime failures, regressions, broken deploys, or unknown errors likely to have generated captured events",
16000
+ "- endpoint downtime or a failing hosted health check",
16001
+ "- missing, duplicate, or failed alerts, webhooks, GitHub dispatches, probes, or other operational delivery",
16002
+ "- a specific DebugBundle incident id, bundle, reproduction, report, or noisy captured incident",
16003
+ "",
16004
+ "For deterministic local source-code, UI, layout, copy, calculation, refactor, or test-only issues, inspect source and tests first. Do not check DebugBundle incidents unless the user asks, the issue involves live runtime behavior, or captured evidence is needed.",
15991
16005
  "",
15992
16006
  "## Investigation Quickstart",
15993
16007
  "",
15994
- "When the user reports a bug, runtime failure, production incident, regression, broken deploy, or unknown error, start here before reading arbitrary source files.",
16008
+ "When the issue matches the runtime/incident criteria above, start here before reading arbitrary source files.",
15995
16009
  "",
15996
16010
  "1. Run `debugbundle doctor --json` to learn whether the project is local-only or connected and whether the local scaffold is healthy.",
15997
16011
  "2. If `debugbundle doctor --json` reports `mode=local-only`, start with `debugbundle incidents --source local --status active --json`.",
@@ -16011,7 +16025,7 @@ function buildSkill() {
16011
16025
  "",
16012
16026
  "## Core Workflow",
16013
16027
  "",
16014
- "1. Check DebugBundle incidents first to avoid re-investigating a known failure.",
16028
+ "1. For qualifying runtime/incident work, check DebugBundle incidents first to avoid re-investigating a known failure.",
16015
16029
  "2. Inspect the incident bundle and reproduction artifact before proposing a fix.",
16016
16030
  "3. Run `debugbundle analyze --type improvement --local` after local processing when you need a deterministic change plan.",
16017
16031
  "4. Apply the narrowest fix, then validate it with the repository test workflow from `.debugbundle/profile.json`.",
@@ -16238,7 +16252,7 @@ function buildMcpReference() {
16238
16252
  return [
16239
16253
  "# DebugBundle MCP Reference",
16240
16254
  "",
16241
- "Use the same incident-first workflow through MCP when an agent is operating in connected mode.",
16255
+ "Use the same runtime-evidence-gated workflow through MCP when an agent is operating in connected mode.",
16242
16256
  "",
16243
16257
  "## Investigation Tools",
16244
16258
  "",
@@ -16252,8 +16266,9 @@ function buildMcpReference() {
16252
16266
  "- `analyze` \u2014 run local agent-oriented analysis from local bundles and skill schemas.",
16253
16267
  "",
16254
16268
  "- Prefer bundle retrieval tools before reading raw repository files.",
16255
- "- Use MCP bundle access when the current issue originated in production.",
16256
- "- Resolve fixed or intentionally generated incidents with `resolve_incident` or `resolve_incidents` so open incidents stay actionable.",
16269
+ "- Use MCP bundle access when the current issue originated in production or otherwise needs captured runtime evidence.",
16270
+ "- For deterministic local source, UI, layout, copy, calculation, refactor, or test-only issues, inspect source and tests first unless the user asks for DebugBundle evidence.",
16271
+ "- Resolve fixed or intentionally generated incidents with `resolve_incident` or `resolve_incidents` so active incidents stay actionable.",
16257
16272
  "- Fall back to local CLI processing when the project is local-only.",
16258
16273
  "",
16259
16274
  "## Noise and Capture Policy Tools",
@@ -16406,13 +16421,21 @@ function buildSkillEvals() {
16406
16421
  skill: "debugbundle",
16407
16422
  evaluations: [
16408
16423
  {
16409
- name: "incident_first_workflow",
16424
+ name: "runtime_incident_workflow",
16410
16425
  prompt: "The user reports a production checkout failure. Confirm the skill tells the agent to inspect DebugBundle artifacts first.",
16411
16426
  expected_behavior: [
16412
- "Check incidents before reading arbitrary source files.",
16427
+ "Check incidents before reading arbitrary source files for qualifying runtime or production incidents.",
16413
16428
  "Read the skill workflow before proposing a fix."
16414
16429
  ]
16415
16430
  },
16431
+ {
16432
+ name: "local_source_issue_gate",
16433
+ prompt: "The user reports a deterministic UI calculation glitch in local code with no runtime incident or report. Confirm the skill avoids checking DebugBundle incidents by default.",
16434
+ expected_behavior: [
16435
+ "Inspect source and tests first for deterministic local UI, layout, copy, calculation, refactor, or test-only issues.",
16436
+ "Do not check DebugBundle incidents unless the user asks, live runtime behavior is involved, or captured evidence is needed."
16437
+ ]
16438
+ },
16416
16439
  {
16417
16440
  name: "profile_validation_task",
16418
16441
  prompt: "The generated profile is shallow. Confirm the skill teaches the agent how to validate and enrich it.",
@@ -28181,11 +28204,9 @@ function buildManagedAgentsSection() {
28181
28204
  return [
28182
28205
  MANAGED_AGENTS_START,
28183
28206
  "## DebugBundle",
28184
- "- Read `.agents/skills/debugbundle/SKILL.md` for the full debugging workflow.",
28185
- "- Use `debugbundle inspect <incident-id>` or MCP `get_bundle` when a user reports an issue.",
28186
- "- Run reproduction artifacts from `.debugbundle/bundles/local/reproductions/` before proposing a fix.",
28187
- "- 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.",
28188
- "- Use `debugbundle doctor` to validate local DebugBundle setup or connectivity issues.",
28207
+ "- Use DebugBundle for runtime failures, production/customer-facing incidents, endpoint downtime, notification/webhook delivery failures, health-check failures, specific incident reports, or symptoms likely to have generated captured events.",
28208
+ "- For deterministic local code, UI, layout, copy, calculation, refactor, or test-only issues, inspect source and tests first; do not check DebugBundle incidents unless runtime evidence is needed or the user asks.",
28209
+ "- Read `.agents/skills/debugbundle/SKILL.md` for the full DebugBundle workflow.",
28189
28210
  MANAGED_AGENTS_END
28190
28211
  ].join("\n");
28191
28212
  }
@@ -37166,7 +37187,7 @@ async function handleCaptureRuleCommand2(parsedArgv, dependencies) {
37166
37187
  // package.json
37167
37188
  var package_default = {
37168
37189
  name: "@debugbundle/cli",
37169
- version: "1.6.2",
37190
+ version: "1.6.3",
37170
37191
  private: false,
37171
37192
  description: "Command-line interface for DebugBundle",
37172
37193
  license: "AGPL-3.0-only",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@debugbundle/cli",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "private": false,
5
5
  "description": "Command-line interface for DebugBundle",
6
6
  "license": "AGPL-3.0-only",