Dashboard › cli › Distillation
0bae8d42-39dc-4b6e-a03d-dc4dbfb61263["lore_tm_v1_WfWTj64f91mvT1Wvjw6lWi1VuJQhTsEnismt7A0vYug","lore_tm_v1_6Vd1t52CH1qg934eYfwuwNAjTvXo_2ZEr-IK8qVJqfQ","lore_tm_v1_u76WLz6CUyhBK00qtIr0YbDzTXQ3DuYYa8GoFc_8pC0","lore_tm_v1_tSLfiu1ZmqxBWRwLDYD5vA643Nt6JcfSo-koi0q-QYY","lore_tm_v1_nvio-UEuNPyJviAOfR_ue9KYBygorew4ruZtP3o4yPA","lore_tm_v1_ggPkkxt8AczxkaXFdobvgJP4JT5d4K5ZvgG6tJq0URc"]
@stricli/core’s /home/byk/Code/getsentry/cli-pr-1558/node_modules/.pnpm/@stricli+core@1.2.8_patch_hash=892258f886d48063b409e0ac6141260023c396d1ed4f915231701f6a34edffcc/node_modules/@stricli/core/dist/index.d.ts, BaseArgs = readonly unknown[] ensures positional argument type parameters are always defined as an array or tuple; TypedPositionalParameters<T, CONTEXT> distinguishes variable-length arrays from fixed tuples using number extends T["length"].@stricli/core defines CommandFunction<FLAGS extends BaseFlags, ARGS extends BaseArgs, CONTEXT extends CommandContext> as (this: CONTEXT, flags: FLAGS, ...args: ARGS) => void | Error | Promise<void | Error>; command arguments must be an array/tuple of any length or type.No files found./; [<org>/]<conversation-id> therefore permits at most one slash.packages/cli/src/commands/agent-conversation/view.ts now defines USAGE = "[<org>/]<conversation-id>" and derives USAGE_HINT = \sentry agent-conversation view ${USAGE}``.parseConversationTarget(target) in packages/cli/src/commands/agent-conversation/view.ts trims input and rejects multiple slashes via validationError("Conversation target must contain at most one '/'.", [USAGE_HINT], "conversation-id"); this replaces the earlier behavior that merely split at the first slash.parseConversationTarget(target) rejects an empty organization or conversation ID around / via validationError("Conversation target must include both an organization and conversation ID when using '/'.", [USAGE_HINT], "conversation-id"); malformed slash-delimited targets now produce ValidationError rather than ContextError.packages/cli/src/commands/agent-conversation/view.ts specify customUsage: [USAGE], describe organization auto-detection when omitted, and provide 3 examples in order: 1. sentry agent-conversation view conv-123 for auto-detection, 2. sentry agent-conversation view my-org/conv-123 for an explicit organization, 3. sentry agent-conversation view my-org/conv-123 --json for JSON output.apps/cli-docs/src/content/docs/commands/agent-conversation.md documents list options: -n, --limit <limit> range 1-1000, default "25"; -q, --query <query>; -t, --period <period> with examples "7d", "2026-08-01..2026-09-01", and ">=2026-08-01", default "7d"; -f, --fresh; and -c, --cursor <cursor> accepting "next", "prev", "first", or a raw cursor.sentry agent-conversation list, 2. sentry agent-conversation list my-org, 3. sentry agent-conversation list --limit 50 --period 24h, 4. sentry agent-conversation list -q "has:errors", 5. sentry agent-conversation list my-org -c next.--json for machine-readable output and --fields for selecting JSON fields.packages/cli/test/commands/agent-conversation/list.test.ts and packages/cli/test/commands/agent-conversation/view.test.ts, including list empty-result tests and view tests for slash-separated resolution, organization auto-resolution, conversation-id validation, and empty spans.packages/cli/test/commands/agent-conversation/view.test.ts tests 5 malformed targets: 1. ${ORG}/${CONVERSATION_ID}/extra, 2. ${ORG}//${CONVERSATION_ID}, 3. ${ORG}/${CONVERSATION_ID}/, 4. /${CONVERSATION_ID}, 5. ${ORG}/; each must throw ValidationError with field: "conversation-id" and usage text sentry agent-conversation view [<org>/]<conversation-id> before resolveOrg or getConversationSpans is called.${ORG}/${CONVERSATION_ID} passes the explicit ORG to resolveOrg and calls getConversationSpans(ORG, CONVERSATION_ID), while a bare CONVERSATION_ID passes org: undefined to resolveOrg and uses the returned "auto-org" for getConversationSpans.ContextError mentioning Conversation ID; unresolved organization throws ContextError mentioning organization; JSON output includes conversationId, org, spanCount: 2, and array-valued turns; API truncated values true and false propagate to output; human output warns when truncated; and empty spans: [] produces text containing No spans found.