UNPKG

claude-flow

Version:

Enterprise-grade AI agent orchestration with ruv-swarm integration (Alpha Release)

251 lines (250 loc) 17.4 kB
/// <reference types="node" /> import basem = require('./ClientApiBases'); import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces'); import TaskAgentInterfaces = require("./interfaces/TaskAgentInterfaces"); import VSSInterfaces = require("./interfaces/common/VSSInterfaces"); export interface ITaskApi extends basem.ClientApiBase { constructor(scopeIdentifier: string, hubName: string, planId: string, type: string): Promise<TaskAgentInterfaces.TaskAttachment[]>; constructor(customHeaders: any, contentStream: NodeJS.ReadableStream, scopeIdentifier: string, hubName: string, planId: string, timelineId: string, recordId: string, type: string, name: string): Promise<TaskAgentInterfaces.TaskAttachment>; constructor(scopeIdentifier: string, hubName: string, planId: string, timelineId: string, recordId: string, type: string, name: string, artifactHash: string, length: number): Promise<TaskAgentInterfaces.TaskAttachment>; constructor(scopeIdentifier: string, hubName: string, planId: string, timelineId: string, recordId: string, type: string, name: string): Promise<TaskAgentInterfaces.TaskAttachment>; constructor(scopeIdentifier: string, hubName: string, planId: string, timelineId: string, recordId: string, type: string, name: string): Promise<NodeJS.ReadableStream>; constructor(scopeIdentifier: string, hubName: string, planId: string, timelineId: string, recordId: string, type: string): Promise<TaskAgentInterfaces.TaskAttachment[]>; constructor(lines: TaskAgentInterfaces.TimelineRecordFeedLinesWrapper, scopeIdentifier: string, hubName: string, planId: string, timelineId: string, recordId: string): Promise<void>; constructor(scopeIdentifier: string, hubName: string, planId: string, timelineId: string, recordId: string, stepId: string, endLine?: number, takeCount?: number, continuationToken?: string): Promise<TaskAgentInterfaces.TimelineRecordFeedLinesWrapper>; constructor(scopeIdentifier: string, hubName: string, orchestrationId: string): Promise<TaskAgentInterfaces.TaskAgentJob>; constructor(customHeaders: any, contentStream: NodeJS.ReadableStream, scopeIdentifier: string, hubName: string, planId: string, logId: number): Promise<TaskAgentInterfaces.TaskLog>; constructor(scopeIdentifier: string, hubName: string, planId: string, logId: number, serializedBlobId: string, lineCount: number): Promise<TaskAgentInterfaces.TaskLog>; constructor(log: TaskAgentInterfaces.TaskLog, scopeIdentifier: string, hubName: string, planId: string): Promise<TaskAgentInterfaces.TaskLog>; constructor(scopeIdentifier: string, hubName: string, planId: string, logId: number, startLine?: number, endLine?: number): Promise<string[]>; constructor(scopeIdentifier: string, hubName: string, planId: string): Promise<TaskAgentInterfaces.TaskLog[]>; constructor(scopeIdentifier: string, hubName: string): Promise<TaskAgentInterfaces.TaskOrchestrationPlanGroupsQueueMetrics[]>; constructor(claims: { [key: string]: string; }, scopeIdentifier: string, hubName: string, planId: string, jobId: string, serviceConnectionId?: string): Promise<TaskAgentInterfaces.TaskHubOidcToken>; constructor(scopeIdentifier: string, hubName: string, statusFilter?: TaskAgentInterfaces.PlanGroupStatus, count?: number): Promise<TaskAgentInterfaces.TaskOrchestrationQueuedPlanGroup[]>; constructor(scopeIdentifier: string, hubName: string, planGroup: string): Promise<TaskAgentInterfaces.TaskOrchestrationQueuedPlanGroup>; constructor(scopeIdentifier: string, hubName: string, planId: string): Promise<TaskAgentInterfaces.TaskOrchestrationPlan>; constructor(scopeIdentifier: string, hubName: string, planId: string, timelineId: string, changeId?: number): Promise<TaskAgentInterfaces.TimelineRecord[]>; constructor(records: VSSInterfaces.VssJsonCollectionWrapperV<TaskAgentInterfaces.TimelineRecord[]>, scopeIdentifier: string, hubName: string, planId: string, timelineId: string): Promise<TaskAgentInterfaces.TimelineRecord[]>; constructor(timeline: TaskAgentInterfaces.Timeline, scopeIdentifier: string, hubName: string, planId: string): Promise<TaskAgentInterfaces.Timeline>; constructor(scopeIdentifier: string, hubName: string, planId: string, timelineId: string): Promise<void>; constructor(scopeIdentifier: string, hubName: string, planId: string, timelineId: string, changeId?: number, includeRecords?: boolean): Promise<TaskAgentInterfaces.Timeline>; constructor(scopeIdentifier: string, hubName: string, planId: string): Promise<TaskAgentInterfaces.Timeline[]>; } export declare class TaskApi extends basem.ClientApiBase implements ITaskApi { constructor(baseUrl: string, handlers: VsoBaseInterfaces.IRequestHandler[], options?: VsoBaseInterfaces.IRequestOptions); /** * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" * @param {string} planId * @param {string} type */ constructor(scopeIdentifier: string, hubName: string, planId: string, type: string): Promise<TaskAgentInterfaces.TaskAttachment[]>; /** * @param {NodeJS.ReadableStream} contentStream - Content to upload * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" * @param {string} planId * @param {string} timelineId * @param {string} recordId * @param {string} type * @param {string} name */ constructor(customHeaders: any, contentStream: NodeJS.ReadableStream, scopeIdentifier: string, hubName: string, planId: string, timelineId: string, recordId: string, type: string, name: string): Promise<TaskAgentInterfaces.TaskAttachment>; /** * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" * @param {string} planId * @param {string} timelineId * @param {string} recordId * @param {string} type * @param {string} name * @param {string} artifactHash * @param {number} length */ constructor(scopeIdentifier: string, hubName: string, planId: string, timelineId: string, recordId: string, type: string, name: string, artifactHash: string, length: number): Promise<TaskAgentInterfaces.TaskAttachment>; /** * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" * @param {string} planId * @param {string} timelineId * @param {string} recordId * @param {string} type * @param {string} name */ constructor(scopeIdentifier: string, hubName: string, planId: string, timelineId: string, recordId: string, type: string, name: string): Promise<TaskAgentInterfaces.TaskAttachment>; /** * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" * @param {string} planId * @param {string} timelineId * @param {string} recordId * @param {string} type * @param {string} name */ constructor(scopeIdentifier: string, hubName: string, planId: string, timelineId: string, recordId: string, type: string, name: string): Promise<NodeJS.ReadableStream>; /** * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" * @param {string} planId * @param {string} timelineId * @param {string} recordId * @param {string} type */ constructor(scopeIdentifier: string, hubName: string, planId: string, timelineId: string, recordId: string, type: string): Promise<TaskAgentInterfaces.TaskAttachment[]>; /** * Append content to timeline record feed. * * @param {TaskAgentInterfaces.TimelineRecordFeedLinesWrapper} lines - Content to be appended to the timeline record feed. * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" * @param {string} planId - ID of the plan. * @param {string} timelineId - ID of the task's timeline. * @param {string} recordId - ID of the timeline record. */ constructor(lines: TaskAgentInterfaces.TimelineRecordFeedLinesWrapper, scopeIdentifier: string, hubName: string, planId: string, timelineId: string, recordId: string): Promise<void>; /** * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" * @param {string} planId * @param {string} timelineId * @param {string} recordId * @param {string} stepId * @param {number} endLine * @param {number} takeCount * @param {string} continuationToken */ constructor(scopeIdentifier: string, hubName: string, planId: string, timelineId: string, recordId: string, stepId: string, endLine?: number, takeCount?: number, continuationToken?: string): Promise<TaskAgentInterfaces.TimelineRecordFeedLinesWrapper>; /** * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" * @param {string} orchestrationId */ constructor(scopeIdentifier: string, hubName: string, orchestrationId: string): Promise<TaskAgentInterfaces.TaskAgentJob>; /** * Append a log to a task's log. The log should be sent in the body of the request as a TaskLog object stream. * * @param {NodeJS.ReadableStream} contentStream - Content to upload * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" * @param {string} planId - The ID of the plan. * @param {number} logId - The ID of the log. */ constructor(customHeaders: any, contentStream: NodeJS.ReadableStream, scopeIdentifier: string, hubName: string, planId: string, logId: number): Promise<TaskAgentInterfaces.TaskLog>; /** * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" * @param {string} planId * @param {number} logId * @param {string} serializedBlobId * @param {number} lineCount */ constructor(scopeIdentifier: string, hubName: string, planId: string, logId: number, serializedBlobId: string, lineCount: number): Promise<TaskAgentInterfaces.TaskLog>; /** * Create a log and connect it to a pipeline run's execution plan. * * @param {TaskAgentInterfaces.TaskLog} log - An object that contains information about log's path. * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" * @param {string} planId - The ID of the plan. */ constructor(log: TaskAgentInterfaces.TaskLog, scopeIdentifier: string, hubName: string, planId: string): Promise<TaskAgentInterfaces.TaskLog>; /** * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" * @param {string} planId * @param {number} logId * @param {number} startLine * @param {number} endLine */ constructor(scopeIdentifier: string, hubName: string, planId: string, logId: number, startLine?: number, endLine?: number): Promise<string[]>; /** * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" * @param {string} planId */ constructor(scopeIdentifier: string, hubName: string, planId: string): Promise<TaskAgentInterfaces.TaskLog[]>; /** * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" */ constructor(scopeIdentifier: string, hubName: string): Promise<TaskAgentInterfaces.TaskOrchestrationPlanGroupsQueueMetrics[]>; /** * @param {{ [key: string] : string; }} claims * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" * @param {string} planId * @param {string} jobId * @param {string} serviceConnectionId */ constructor(claims: { [key: string]: string; }, scopeIdentifier: string, hubName: string, planId: string, jobId: string, serviceConnectionId?: string): Promise<TaskAgentInterfaces.TaskHubOidcToken>; /** * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" * @param {TaskAgentInterfaces.PlanGroupStatus} statusFilter * @param {number} count */ constructor(scopeIdentifier: string, hubName: string, statusFilter?: TaskAgentInterfaces.PlanGroupStatus, count?: number): Promise<TaskAgentInterfaces.TaskOrchestrationQueuedPlanGroup[]>; /** * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" * @param {string} planGroup */ constructor(scopeIdentifier: string, hubName: string, planGroup: string): Promise<TaskAgentInterfaces.TaskOrchestrationQueuedPlanGroup>; /** * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" * @param {string} planId */ constructor(scopeIdentifier: string, hubName: string, planId: string): Promise<TaskAgentInterfaces.TaskOrchestrationPlan>; /** * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" * @param {string} planId * @param {string} timelineId * @param {number} changeId */ constructor(scopeIdentifier: string, hubName: string, planId: string, timelineId: string, changeId?: number): Promise<TaskAgentInterfaces.TimelineRecord[]>; /** * Update timeline records if they already exist, otherwise create new ones for the same timeline. * * @param {VSSInterfaces.VssJsonCollectionWrapperV<TaskAgentInterfaces.TimelineRecord[]>} records - The array of timeline records to be updated. * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" * @param {string} planId - The ID of the plan. * @param {string} timelineId - The ID of the timeline. */ constructor(records: VSSInterfaces.VssJsonCollectionWrapperV<TaskAgentInterfaces.TimelineRecord[]>, scopeIdentifier: string, hubName: string, planId: string, timelineId: string): Promise<TaskAgentInterfaces.TimelineRecord[]>; /** * @param {TaskAgentInterfaces.Timeline} timeline * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" * @param {string} planId */ constructor(timeline: TaskAgentInterfaces.Timeline, scopeIdentifier: string, hubName: string, planId: string): Promise<TaskAgentInterfaces.Timeline>; /** * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" * @param {string} planId * @param {string} timelineId */ constructor(scopeIdentifier: string, hubName: string, planId: string, timelineId: string): Promise<void>; /** * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" * @param {string} planId * @param {string} timelineId * @param {number} changeId * @param {boolean} includeRecords */ constructor(scopeIdentifier: string, hubName: string, planId: string, timelineId: string, changeId?: number, includeRecords?: boolean): Promise<TaskAgentInterfaces.Timeline>; /** * @param {string} scopeIdentifier - The project GUID to scope the request * @param {string} hubName - The name of the server hub. Common examples: "build", "rm", "checks" * @param {string} planId */ constructor(scopeIdentifier: string, hubName: string, planId: string): Promise<TaskAgentInterfaces.Timeline[]>; }