MCPcopy Create free account
hub / github.com/compozy/agh / taskInspectUnknownIDRecord

Function taskInspectUnknownIDRecord

internal/cli/task.go:211–229  ·  view source on GitHub ↗
(id string, asOf time.Time)

Source from the content-addressed store, hash-verified

209}
210
211func taskInspectUnknownIDRecord(id string, asOf time.Time) TaskInspectRecord {
212 return TaskInspectRecord{
213 Target: providerModelAvailabilityUnknown,
214 NextAction: providerModelAvailabilityUnknown,
215 AsOf: asOf,
216 Diagnostics: []contract.DiagnosticItem{
217 diagnosticitems.NewItem(
218 "task.inspect.id_format_unknown",
219 diagnosticcontract.CodeIDFormatUnknown,
220 diagnosticcontract.CategoryTask,
221 "Task inspect id format is unknown",
222 "Task inspect accepts ids with task_ / task- or run_ / run- prefixes.",
223 diagnosticcontract.SeverityError,
224 diagnosticcontract.FreshnessLive,
225 diagnosticitems.WithEvidence(map[string]any{"id": id}),
226 ),
227 },
228 }
229}
230
231func newTaskCommand(deps commandDeps) *cobra.Command {
232 cmd := &cobra.Command{

Callers 1

newTaskInspectCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected