MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / commitmentBase

Function commitmentBase

internal/cli/client_schedule.go:14–16  ·  view source on GitHub ↗

--- Item schedules and the agenda --- Each method returns the server's body as raw JSON so a field the server adds later is not dropped on the way to --format json.

(wsSlug, ref string)

Source from the content-addressed store, hash-verified

12// later is not dropped on the way to --format json.
13
14func commitmentBase(wsSlug, ref string) string {
15 return "/workspaces/" + url.PathEscape(wsSlug) + "/items/" + url.PathEscape(ref) + "/commitment"
16}
17
18// IsCommitmentRoute identifies commitment API paths for the CLI and MCP error
19// contracts. The escaped path may include /api/v1, a mount prefix before it

Callers 15

GetItemCommitmentMethod · 0.85
CreateItemCommitmentMethod · 0.85
UpdateItemCommitmentMethod · 0.85
DeleteItemCommitmentMethod · 0.85
ResolveItemCommitmentMethod · 0.85
ListCommitmentLinksMethod · 0.85
AddCommitmentLinkMethod · 0.85
MoveLinkedCommitmentMethod · 0.85
ListCommitmentGatesMethod · 0.85
AddCommitmentGateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected