live

package
v1.0.63 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package live defines strict task-oriented Shortcut candidates for DingTalk live broadcasts. The current list capability remains fail-closed because the downstream response can contradict its own completion and total fields.

Index

Constants

This section is empty.

Variables

View Source
var ListMyLives = shortcut.Shortcut{
	OutputRollout: output.RolloutLegacyOnly,
	Service:       "live", Command: "+list-my-lives", Product: "live",
	Description: "查看当前用户发起的直播列表与基础统计",
	Intent:      "需要查看本人发起的直播、状态或观看统计时使用;当前因下游列表数量与完成状态矛盾保持不可用。",
	Risk:        shortcut.RiskRead,
	Safety: contract.SafetySpec{
		Effect: "read", Risk: "low", Confirmation: "not_required", Idempotency: "idempotent",
	},
	Contract: corecmd.ContractDecl{
		Description: "查看当前用户发起的直播列表与基础统计",
		Identity: contract.ToolIdentitySpec{
			ProductID: "live", Name: "shortcut_list_my_lives", CanonicalPath: "live.shortcut_list_my_lives",
			CLIPath: "live +list-my-lives", PrimaryCLIPath: "live +list-my-lives",
		},
		Interface: &contract.InterfaceSpec{
			Mode: contract.InterfaceModeComposite, Availability: contract.InterfaceUnavailable, Reason: liveListGapReason,
		},
		Selection: contract.SelectionSpec{
			AgentSummary: "查看当前用户发起的直播列表与基础统计",
			UseWhen:      []string{"需要查看本人发起的直播、状态或观看统计时使用;当前因下游列表数量与完成状态矛盾保持不可用。"},
			AvoidWhen: []string{
				"需要创建、开播、结束、观看或控制直播时不要使用;当前 DWS 原子面没有这些能力",
				"下游列表总数、完成状态和项目数组未自洽前不要把空数组当作没有直播",
			},
			Examples: []string{"dws live +list-my-lives --format json"},
		},
	},
	Execute: func(*shortcut.RuntimeContext) error {
		return responsecheck.Error("live/get_my_lives", "capability_unavailable", liveListGapReason)
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL