definition property

  1. @override
Tool get definition
override

Implementation

@override
Tool get definition => Tool(
      name: 'report_issue',
      description: 'File a glint bug / ux / feature note in the PUBLIC glint GitHub '
          'repo. Only with the user\'s go-ahead: call with dryRun:true '
          'first, show the user the composed issue, and file only after '
          'they approve. A root-cause-ready report has expected, actual, '
          'timeline, failureSeqs (seq numbers from `logs`, rendered as a '
          'table with the whole error detail), suspectedCause (file or '
          'symbol), suggestedFix, workaround, impact and repro; all '
          'optional, `body` keeps anything else, and dryRun lists what is '
          'missing. An environment block (glint version, host, device, '
          'input setup, mode, other glint process on the device) is always '
          'added. includeContext:true also attaches the last ~30 action-log '
          'entries; typed text is never logged. Uses `gh issue create` when '
          'available, else a pre-filled GitHub URL. Describe the app '
          'generically (e.g. "a banking app\'s PIN screen"); never name the '
          'app, company, bundle id, host or device. Known names, paths and '
          'secrets are redacted.',
      inputSchema: ObjectSchema(
        properties: {
          'type': Schema.string(
            description: 'bug | ux | feature',
          ),
          'title': Schema.string(
            description: 'One-line summary, naming no app, company, host or device. Redacted before submission.',
          ),
          'body': Schema.string(
            description: 'Anything the fields below do not cover; name no app, company, host or device. '
                'Redacted before submission.',
          ),
          'expected': Schema.string(description: 'What should have happened.'),
          'actual': Schema.string(description: 'What happened instead: exact reply text, errorKind, numbers.'),
          'timeline': Schema.list(
            items: Schema.string(),
            description: 'Ordered steps with timings, e.g. "t+0 attach ok (2.1s)", "t+4s tap save: notHittable".',
          ),
          'failureSeqs': Schema.list(
            items: Schema.int(),
            description: 'Action-log seq numbers of the failing calls (see `logs`). Rendered as a table of call, '
                'elapsed time, errorKind and the whole detail.',
          ),
          'suspectedCause': Schema.string(description: 'Where you think it breaks: file, symbol or layer.'),
          'suggestedFix': Schema.string(description: 'What you would change.'),
          'workaround': Schema.string(description: 'What got you unblocked, if anything.'),
          'impact': Schema.string(description: 'Who or what this blocks, and how often.'),
          'repro': Schema.string(description: 'Shortest sequence of calls that shows it.'),
          'includeContext': Schema.bool(
            description: 'Attach the recent action log (tools, targets, outcomes). Default false.',
          ),
          'dryRun': Schema.bool(
            description: 'Compose and return the redacted issue without filing, plus the sections still empty. '
                'Use it to show the user exactly what would be posted.',
          ),
        },
        required: ['type', 'title'],
      ),
    );