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

Method PromoteNetworkThreadTask

internal/cli/client.go:2221–2237  ·  view source on GitHub ↗
(
	ctx context.Context,
	workspaceRef string,
	channel string,
	threadID string,
	request PromoteNetworkThreadTaskRequest,
)

Source from the content-addressed store, hash-verified

2219}
2220
2221func (c *unixSocketClient) PromoteNetworkThreadTask(
2222 ctx context.Context,
2223 workspaceRef string,
2224 channel string,
2225 threadID string,
2226 request PromoteNetworkThreadTaskRequest,
2227) (PromoteNetworkThreadTaskRecord, error) {
2228 path, err := networkThreadPath(workspaceRef, channel, threadID)
2229 if err != nil {
2230 return PromoteNetworkThreadTaskRecord{}, err
2231 }
2232 var response contract.PromoteNetworkThreadTaskResponse
2233 if err := c.doJSON(ctx, http.MethodPost, path+"/promote-task", nil, request, &response); err != nil {
2234 return PromoteNetworkThreadTaskRecord{}, err
2235 }
2236 return response, nil
2237}
2238
2239func (c *unixSocketClient) ListExtensions(ctx context.Context) ([]ExtensionRecord, error) {
2240 var response struct {

Callers

nothing calls this directly

Calls 2

doJSONMethod · 0.95
networkThreadPathFunction · 0.85

Tested by

no test coverage detected