Dashboard › cli › Distillation
8273c34b-bd37-419d-b2cb-c38e26419f42["lore_tm_v1_dsOPjuaIkUDl98U3AGrN8CT6c933-yhMOCJhAXfSM3s","lore_tm_v1_DnDQneS_dqtu50XQgHDkxE6VLhIFcOs9g8KUZ2CD9K8","lore_tm_v1_NDy2LO8RmSGW84KEQ5zOVjCCmtXMMKcx2J-JSknigt8","lore_tm_v1_gUuE5BX3PyQCakWZ19atWsErfinkH90yTBljMi1QiOs"]
SentryCommandFunction command functions are async generators: non-streaming commands yield one CommandOutput<T> and may return { hint }; streaming commands render each yield immediately; commands supporting --json must yield one aggregate value when callers need one parseable JSON document because individual JSON chunks are pretty-printed rather than JSONL; void commands may return without yielding for early exits such as --web.CommandReturn return value, never on individual yields.SentryCommandFunction<FLAGS, ARGS, CONTEXT> returns AsyncGenerator<unknown, CommandReturn | void, undefined>.CommandExample stores a description and complete command including the sentry executable; CommandDocumentation extends native Stricli docs with optional readonly CommandExample[].CommandDocumentation.customUsage is present, its first line is the canonical signature suffix; subsequent lines may describe equivalent forms.prepareNativeDocs() strips extended examples metadata before passing docs to Stricli and renders examples in fullDescription under Examples: as ${command} # ${description}.attachDocumentationMetadata() stores the first docs.customUsage entry on command metadata as __primaryUsageβusing the string directly or .input for an objectβand stores nonempty docs.examples as __examples.enrichDocsWithSchema() appends formatSchemaForHelp(schemaFields) to docs.fullDescription ?? docs.brief when outputConfig.schema produces at least one field; otherwise it returns the docs unchanged.buildFieldsFlag() returns FIELDS_FLAG unchanged without a schema or extracted fields; otherwise its brief appends . Available: ${fieldNames}, with names comma-separated.GLOBAL_FLAG_DEFAULTS maps [LOG_LEVEL_KEY] to LOG_LEVEL_FLAG, verbose to VERBOSE_FLAG, org to ORG_FLAG, and project to PROJECT_FLAG.extractPositionals() returns [] without positional parameters. Tuple entries preserve one object per parameter with fallback placeholder: arg${i}, fallback brief: "", and fallback optional: false. Array parameters become one optional entry whose placeholder is ${placeholder ?? "args"}... and whose brief defaults to "".extractFlags() returns [] for undefined flags and maps every flag to { name, brief, kind, default, optional, variadic, hidden }; brief defaults to "", optional defaults to whether kind === "boolean", and variadic and hidden default to false.buildCommandInfo(cmd, path, examples = []) uses cmd.__primaryUsage ?? getPositionalString(cmd.parameters.positional) for positional, extractPositionals() for positionals, and cmd.parameters.aliases ?? {} for aliases.buildCommandInfo() prefers command metadata examples from cmd.__examples, formatting each as # ${description}\n${command}; it falls back to its examples argument.buildCommandInfo() extracts JSON fields from cmd.__jsonSchema via extractSchemaFields() and omits jsonFields when the extracted array is empty.fix/agent-conversation-reference-root-cause, tracking deleted upstream origin/pr-1558 [gone]; HEAD was bbaa7b3b722b87f1bccfe84063269cbbcabe2741.