mirror of
https://github.com/DingTalk-Real-AI/dingtalk-workspace-cli.git
synced 2026-09-28 13:14:08 +08:00
254 lines
14 KiB
Go
254 lines
14 KiB
Go
// Copyright 2026 Alibaba Group
|
|
// Licensed under the Apache License, Version 2.0
|
|
|
|
// Code generated by cmd_command_path_fallbacks; DO NOT EDIT.
|
|
// Source: internal/cli/command_path_fallbacks.json validated against the live Cobra tree.
|
|
// Regenerate with `make generate-schema` (or `go generate ./internal/cli`).
|
|
|
|
package cli
|
|
|
|
var generatedCommandPathFallbacks = []CommandPathFallback{
|
|
{
|
|
From: "chat +bot-list",
|
|
Mode: "rewrite",
|
|
To: "chat +chat-bots",
|
|
Reviewed: true,
|
|
ReviewReason: "20260804 multi-im badcase requested the robot list for one group. +chat-bots is the unique current read-only shortcut. The fallback must not reinterpret the accompanying group flag.",
|
|
},
|
|
{
|
|
From: "chat +conversation-category-list",
|
|
Mode: "ambiguous",
|
|
Candidates: []string{"chat +category-list", "chat +category-list-conversations"},
|
|
Reviewed: true,
|
|
ReviewReason: "The invented name can mean listing the user's categories or listing conversations inside one category. No candidate may execute before the caller chooses the intended object level.",
|
|
},
|
|
{
|
|
From: "chat +conversation-detail",
|
|
Mode: "rewrite",
|
|
To: "chat +conversation-info",
|
|
Reviewed: true,
|
|
ReviewReason: "20260804 multi-im badcase requested one conversation's details. +conversation-info is the unique current read-only shortcut for that operation. The rewrite changes only the command path and preserves every flag/value for target validation.",
|
|
},
|
|
{
|
|
From: "chat +conversation-group-list",
|
|
Mode: "ambiguous",
|
|
Candidates: []string{"chat +category-list-conversations", "chat +conversation-list"},
|
|
Reviewed: true,
|
|
ReviewReason: "The invented name can mean conversations in a custom category or the general conversation list. The command name alone does not identify the requested collection.",
|
|
},
|
|
{
|
|
From: "chat +group-member-list",
|
|
Mode: "rewrite",
|
|
To: "chat +group-members",
|
|
Reviewed: true,
|
|
ReviewReason: "20260728 evaluation emitted +group-member-list for a group-name member lookup; +group-members is the unique reviewed read-only shortcut and canonical parameter validation remains authoritative.",
|
|
},
|
|
{
|
|
From: "chat +group-search",
|
|
Mode: "rewrite",
|
|
To: "chat +chat-search",
|
|
Reviewed: true,
|
|
ReviewReason: "0803 evaluation badcase: the model emitted +group-search with --query; +chat-search provides the same group-name search operation.",
|
|
},
|
|
{
|
|
From: "chat +group-send-text",
|
|
Mode: "ambiguous",
|
|
Candidates: []string{"chat +send-to-group", "chat +messages-send"},
|
|
Reviewed: true,
|
|
ReviewReason: "20260728 evaluation emitted +group-send-text for a group text operation, but the invented name does not choose between name-resolved group text and the unified identifier-aware workflow; the write operation must not dispatch automatically.",
|
|
},
|
|
{
|
|
From: "chat +list-group-bots",
|
|
Mode: "rewrite",
|
|
To: "chat +chat-bots",
|
|
Reviewed: true,
|
|
ReviewReason: "20260728 evaluation emitted +list-group-bots for listing robots in one group; +chat-bots is the unique reviewed read-only shortcut. The fallback preserves flags and does not reinterpret generic IDs.",
|
|
},
|
|
{
|
|
From: "chat +list-my-groups",
|
|
Mode: "ambiguous",
|
|
Candidates: []string{"chat +my-groups", "chat +chat-list-mine", "chat +chat-list"},
|
|
Reviewed: true,
|
|
ReviewReason: "The invented name does not choose between the established resolver shortcut, the legacy personal-group list and the current Schema-complete chat list. Recovery must stop instead of silently changing pagination or output semantics.",
|
|
},
|
|
{
|
|
From: "chat +list-robot",
|
|
Mode: "rewrite",
|
|
To: "chat +chat-bots",
|
|
Reviewed: true,
|
|
ReviewReason: "20260728 evaluation emitted singular +list-robot for listing robots in one group; +chat-bots is the unique reviewed read-only shortcut. The fallback preserves flags and does not reinterpret generic IDs.",
|
|
},
|
|
{
|
|
From: "chat +list-robots",
|
|
Mode: "rewrite",
|
|
To: "chat +chat-bots",
|
|
Reviewed: true,
|
|
ReviewReason: "20260728 evaluation emitted +list-robots for listing robots in one group; +chat-bots is the unique reviewed read-only shortcut. The fallback preserves flags and does not reinterpret generic IDs.",
|
|
},
|
|
{
|
|
From: "chat +members",
|
|
Mode: "rewrite",
|
|
To: "chat +group-members",
|
|
Reviewed: true,
|
|
ReviewReason: "20260728 evaluation badcases emitted +members three times for listing members of a group selected by name; +group-members is the unique reviewed read-only shortcut for that intent.",
|
|
},
|
|
{
|
|
From: "chat +message-list",
|
|
Mode: "ambiguous",
|
|
Candidates: []string{"chat +chat-messages", "chat +messages-list-direct", "chat +search-msg", "chat +unread-chats"},
|
|
Reviewed: true,
|
|
ReviewReason: "20260728 evaluation emitted +message-list without identifying group versus direct history, conversation history versus cross-chat search, or ordinary versus unread conversations; no candidate may be selected automatically.",
|
|
},
|
|
{
|
|
From: "chat +read-single",
|
|
Mode: "ambiguous",
|
|
Candidates: []string{"chat +messages-list-direct", "chat +chat-messages"},
|
|
Reviewed: true,
|
|
ReviewReason: "20260728 evaluation emitted +read-single six times for direct-message history, but the invented name does not choose between the focused direct-history shortcut and the broader group/direct history workflow; command recovery must stop before parameter validation or dispatch.",
|
|
},
|
|
{
|
|
From: "chat +rename-group",
|
|
Mode: "rewrite",
|
|
To: "chat +chat-update",
|
|
Reviewed: true,
|
|
ReviewReason: "20260728 evaluation emitted +rename-group for the unique group-name update intent; +chat-update is the reviewed shortcut with that exact command-level operation. Parameter compatibility remains the canonical target's responsibility.",
|
|
},
|
|
{
|
|
From: "chat +send",
|
|
Mode: "ambiguous",
|
|
Candidates: []string{"chat +messages-send", "chat +dm", "chat +send-to-group"},
|
|
Reviewed: true,
|
|
ReviewReason: "20260728 evaluation emitted +send without a stable recipient type or sending identity; the write operation must stop until the caller chooses the unified, resolved-direct, or resolved-group workflow.",
|
|
},
|
|
{
|
|
From: "chat +send-by-bot",
|
|
Mode: "ambiguous",
|
|
Candidates: []string{"chat +messages-send", "chat message send-by-bot"},
|
|
Reviewed: true,
|
|
ReviewReason: "20260728 evaluation emitted +send-by-bot three times without a complete sending-identity contract; stop and present the unified identity-aware shortcut and the exact native bot sender instead of selecting a write path.",
|
|
},
|
|
{
|
|
From: "chat +send-dm",
|
|
Mode: "ambiguous",
|
|
Candidates: []string{"chat +dm", "chat +messages-send"},
|
|
Reviewed: true,
|
|
ReviewReason: "20260728 evaluation emitted +send-dm twice, but the invented name does not choose between the resolved-name text shortcut and the unified identifier-aware sending workflow; the write operation must not dispatch automatically.",
|
|
},
|
|
{
|
|
From: "chat +send-file",
|
|
Mode: "ambiguous",
|
|
Candidates: []string{"chat +messages-send", "chat message send"},
|
|
Reviewed: true,
|
|
ReviewReason: "20260728 evaluation emitted +send-file fifteen times with incompatible target and file parameter spellings; stop before dispatch and let the caller choose the unified shortcut or native current-user file workflow.",
|
|
},
|
|
{
|
|
From: "chat +send-image",
|
|
Mode: "ambiguous",
|
|
Candidates: []string{"chat +messages-send", "chat message send"},
|
|
Reviewed: true,
|
|
ReviewReason: "20260728 evaluation emitted +send-image without proving whether the input is an existing mediaId or a local file; stop before dispatch and let the caller choose the reviewed unified or native workflow.",
|
|
},
|
|
{
|
|
From: "chat +send-media",
|
|
Mode: "ambiguous",
|
|
Candidates: []string{"chat +messages-send", "chat message send"},
|
|
Reviewed: true,
|
|
ReviewReason: "20260728 evaluation emitted +send-media without a concrete media type, sending identity, or compatible parameter contract; stop before dispatch and let the caller choose the reviewed unified or native workflow.",
|
|
},
|
|
{
|
|
From: "chat +send-message",
|
|
Mode: "ambiguous",
|
|
Candidates: []string{"chat +messages-send", "chat +dm", "chat +send-to-group"},
|
|
Reviewed: true,
|
|
ReviewReason: "20260728 evaluation emitted +send-message without a stable recipient type or sending identity; the write operation must stop until the caller chooses the unified, resolved-direct, or resolved-group workflow.",
|
|
},
|
|
{
|
|
From: "chat +send-single",
|
|
Mode: "ambiguous",
|
|
Candidates: []string{"chat +dm", "chat +messages-send"},
|
|
Reviewed: true,
|
|
ReviewReason: "20260728 evaluation emitted +send-single for a direct message, but the invented name does not choose between the resolved-name text shortcut and the unified identifier-aware sending workflow; the write operation must not dispatch automatically.",
|
|
},
|
|
{
|
|
From: "chat +send-text",
|
|
Mode: "ambiguous",
|
|
Candidates: []string{"chat +messages-send", "chat +dm", "chat +send-to-group"},
|
|
Reviewed: true,
|
|
ReviewReason: "20260728 evaluation identified text content but not a stable recipient type or sending identity; the write operation must stop until the caller chooses the unified, resolved-direct, or resolved-group workflow.",
|
|
},
|
|
{
|
|
From: "chat +send-to",
|
|
Mode: "ambiguous",
|
|
Candidates: []string{"chat +messages-send", "chat +dm", "chat +send-to-group"},
|
|
Reviewed: true,
|
|
ReviewReason: "20260728 evaluation emitted +send-to without proving whether the recipient denotes a user, group, or low-level identifier; the write operation must not choose a target workflow automatically.",
|
|
},
|
|
{
|
|
From: "doc +create-version",
|
|
Mode: "rewrite",
|
|
To: "doc +history-save",
|
|
Reviewed: true,
|
|
ReviewReason: "202608 supplemental Doc badcase emitted +create-version while explicitly trying to save the current document as a recoverable history snapshot. +history-save is the unique current canonical shortcut for that operation and accepts the same --node value without parameter transformation.",
|
|
},
|
|
{
|
|
From: "doc +list-templates",
|
|
Mode: "rewrite",
|
|
To: "doc +template-list",
|
|
Reviewed: true,
|
|
ReviewReason: "202608 Doc experiments emitted +list-templates while discovering available templates. +template-list is the unique current public read-only shortcut for that operation; the rewrite changes only the command path and preserves flags for target validation.",
|
|
},
|
|
{
|
|
From: "doc +save-version",
|
|
Mode: "rewrite",
|
|
To: "doc +history-save",
|
|
Reviewed: true,
|
|
ReviewReason: "202608 supplemental Doc badcase emitted the verb/object inversion +save-version for a current-version snapshot. +history-save is the unique current canonical shortcut with the same document-node contract; the legacy +version-save path is not selected as the fallback target.",
|
|
},
|
|
{
|
|
From: "doc +search-template",
|
|
Mode: "rewrite",
|
|
To: "doc +template-search",
|
|
Reviewed: true,
|
|
ReviewReason: "202608 Doc experiments emitted the verb/object inversion +search-template. +template-search is the unique current public read-only template-name search shortcut; the rewrite preserves every flag and value.",
|
|
},
|
|
{
|
|
From: "doc +snapshot",
|
|
Mode: "rewrite",
|
|
To: "doc +history-save",
|
|
Reviewed: true,
|
|
ReviewReason: "202608 supplemental Doc badcase emitted +snapshot during an explicit save-current-version workflow. The current +history-save selection contract names this exact recoverable history-snapshot operation, so the reviewed rewrite preserves the --node value and does not infer an update or export workflow.",
|
|
},
|
|
{
|
|
From: "doc +template",
|
|
Mode: "ambiguous",
|
|
Candidates: []string{"doc +template-list", "doc +template-search", "doc +create-from-template"},
|
|
Reviewed: true,
|
|
ReviewReason: "202608 Doc experiments emitted the family-like +template without selecting browse, search, or create-from-template. Command recovery must stop before parameters or execution and present the three public workflows.",
|
|
},
|
|
{
|
|
From: "doc +version",
|
|
Mode: "ambiguous",
|
|
Candidates: []string{"doc +history-list", "doc +history-save", "doc +history-revert"},
|
|
Reviewed: true,
|
|
ReviewReason: "202608 Doc experiments emitted the family-like +version without choosing list, save, or revert. The write and high-risk revert operations cannot be selected from an umbrella name; present the canonical history shortcuts and stop.",
|
|
},
|
|
{
|
|
From: "doc +version-create",
|
|
Mode: "rewrite",
|
|
To: "doc +history-save",
|
|
Reviewed: true,
|
|
ReviewReason: "202608 supplemental Doc badcase emitted +version-create while saving the current document version. +history-save is the unique current canonical snapshot shortcut and the path-only rewrite leaves its real execution and safety contract authoritative.",
|
|
},
|
|
{
|
|
From: "oa +list-processes",
|
|
Mode: "ambiguous",
|
|
Candidates: []string{"oa +search-forms", "oa approval list-submitted", "oa approval list-initiated"},
|
|
Reviewed: true,
|
|
ReviewReason: "20260818 review keeps +list-forms unavailable because its live response lacks trustworthy continuation and removes +my-initiated from discovery because guaranteed-zero responses omit hasMore; process can still mean a searchable approval definition or an instance initiated by the current user, so stop and present the public keyword-search or exact atomic initiated routes.",
|
|
},
|
|
}
|
|
|
|
func loadGeneratedCommandPathFallbacks() []CommandPathFallback {
|
|
return generatedCommandPathFallbacks
|
|
}
|