@agentteams/cli 0.1.45 → 0.1.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,48 +19,6 @@ export interface Config {
19
19
  apiUrl: string;
20
20
  repositoryId?: string;
21
21
  }
22
- /**
23
- * OAuth callback result from web authorization flow
24
- * Extends Config with additional metadata from OAuth callback
25
- */
26
- export interface AuthResult extends Config {
27
- /** Agent config ID from API */
28
- configId: string;
29
- /** Convention file content and metadata */
30
- convention: ConventionFile;
31
- }
32
- /**
33
- * Convention file structure returned from API
34
- * Contains the convention markdown content and filename
35
- */
36
- export interface ConventionFile {
37
- /** Filename of the convention (e.g., "CLAUDE.md", "AGENTS.md") */
38
- fileName: string;
39
- /** Full markdown content of the convention */
40
- content: string;
41
- }
42
- /** Supported agent environments */
43
- export type AgentEnvironment = "CLAUDE_CODE" | "OPENCODE" | "CODEX";
44
- /**
45
- * Agent configuration from API
46
- * Represents a registered agent in the system
47
- */
48
- export interface AgentConfig {
49
- /** Unique identifier */
50
- id: string;
51
- /** Agent name */
52
- name: string;
53
- /** Environment type */
54
- environment: AgentEnvironment;
55
- /** Creation timestamp (ISO 8601) */
56
- createdAt: string;
57
- /** Last update timestamp (ISO 8601) */
58
- updatedAt: string;
59
- /** Soft delete timestamp (ISO 8601 or null) */
60
- deletedAt: string | null;
61
- /** Whether API key has been generated */
62
- hasApiKey?: boolean;
63
- }
64
22
  /**
65
23
  * Plan from API
66
24
  * Represents a work item or assignment
@@ -89,149 +47,8 @@ export interface Plan {
89
47
  /** Soft delete timestamp (ISO 8601 or null) */
90
48
  deletedAt: string | null;
91
49
  }
92
- /**
93
- * Plan dependency relationship
94
- * Represents blocking/dependent relationships between plans
95
- */
96
- export interface PlanDependency {
97
- /** Unique identifier */
98
- id: string;
99
- /** ID of plan that depends on another */
100
- dependentPlanId: string;
101
- /** ID of plan that blocks the dependent */
102
- blockingPlanId: string;
103
- /** Creation timestamp (ISO 8601) */
104
- createdAt: string;
105
- }
106
- /**
107
- * Plan dependencies container
108
- * Groups blocking and dependent plans for a given plan
109
- */
110
- export interface PlanDependencies {
111
- /** Plans that block the current plan */
112
- blocking: Plan[];
113
- /** Plans that depend on the current plan */
114
- dependents: Plan[];
115
- }
116
- /**
117
- * Comment on a plan
118
- * Represents feedback, notes, or status updates
119
- */
120
- export interface Comment {
121
- /** Unique identifier */
122
- id: string;
123
- /** Associated plan ID */
124
- planId: string;
125
- createdByMemberId: string | null;
126
- createdByAgentId: string | null;
127
- createdByType: string | null;
128
- createdByName: string | null;
129
- /** Comment type (e.g., "NOTE", "FEEDBACK", "STATUS_UPDATE") */
130
- type: string;
131
- /** Comment content (markdown supported) */
132
- content: string;
133
- /** List of affected file paths */
134
- affectedFiles: string[];
135
- /** Creation timestamp (ISO 8601) */
136
- createdAt: string;
137
- /** Last update timestamp (ISO 8601) */
138
- updatedAt: string;
139
- /** Soft delete timestamp (ISO 8601 or null) */
140
- deletedAt: string | null;
141
- }
142
- /**
143
- * Completion report for plan or work session
144
- * Captures metrics and details about completed work
145
- */
146
- export interface CompletionReport {
147
- /** Unique identifier */
148
- id: string;
149
- /** Project ID */
150
- projectId: string;
151
- /** Associated plan ID (null if not plan-specific) */
152
- planId: string | null;
153
- /** Report title */
154
- title: string;
155
- /** Report content (markdown supported) */
156
- content: string;
157
- /** Git commit hash (null if not applicable) */
158
- commitHash: string | null;
159
- /** Git commit range start (null if not applicable) */
160
- commitStart: string | null;
161
- /** Git commit range end (null if not applicable) */
162
- commitEnd: string | null;
163
- /** Git branch name (null if not applicable) */
164
- branchName: string | null;
165
- /** Pull request ID (null if not applicable) */
166
- pullRequestId: string | null;
167
- /** Duration in seconds (null if not tracked) */
168
- durationSeconds: number | null;
169
- /** Number of files modified (null if not tracked) */
170
- filesModified: number | null;
171
- /** Number of lines added (null if not tracked) */
172
- linesAdded: number | null;
173
- /** Number of lines deleted (null if not tracked) */
174
- linesDeleted: number | null;
175
- /** Report status (e.g., "COMPLETED", "FAILED", "PARTIAL") */
176
- status: string;
177
- /** Quality score 0-100 (null if not scored) */
178
- qualityScore: number | null;
179
- createdByMemberId?: string | null;
180
- createdByAgentId?: string | null;
181
- createdByType?: string | null;
182
- /** Creation timestamp (ISO 8601) */
183
- createdAt: string;
184
- /** Last update timestamp (ISO 8601) */
185
- updatedAt: string;
186
- /** Soft delete timestamp (ISO 8601 or null) */
187
- deletedAt: string | null;
188
- }
189
- /**
190
- * Generic API response envelope for single resource
191
- */
192
- export interface ApiResponse<T> {
193
- /** Response data */
194
- data: T;
195
- }
196
- /**
197
- * Generic API response envelope for list of resources
198
- */
199
- export interface ApiListResponse<T> {
200
- /** Array of resources */
201
- data: T[];
202
- /** Total count of resources (for pagination) */
203
- total?: number;
204
- /** Current page number (for pagination) */
205
- page?: number;
206
- /** Items per page (for pagination) */
207
- limit?: number;
208
- }
209
- /**
210
- * API error response
211
- */
212
- export interface ApiError {
213
- /** HTTP status code */
214
- statusCode: number;
215
- /** Error type/name */
216
- error: string;
217
- /** Human-readable error message */
218
- message: string;
219
- errorCode?: string;
220
- }
221
50
  /**
222
51
  * Common CLI output format options
223
52
  */
224
53
  export type OutputFormat = "json" | "text";
225
- /**
226
- * CLI command context
227
- * Passed to all command handlers
228
- */
229
- export interface CliContext {
230
- /** Loaded configuration */
231
- config: Config;
232
- /** Output format preference */
233
- format: OutputFormat;
234
- /** Verbose logging enabled */
235
- verbose?: boolean;
236
- }
237
54
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH;;;GAGG;AACH,MAAM,WAAW,MAAM;IACrB,8BAA8B;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,yDAAyD;IACzD,SAAS,EAAE,MAAM,CAAC;IAClB,mDAAmD;IACnD,MAAM,EAAE,MAAM,CAAC;I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EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,2DAA2D;IAC3D,MAAM,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,qDAAqD;IACrD,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,oCAAoC;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,uCAAuC;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,+CAA+C;IAC/C,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAMD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentteams/cli",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
4
4
  "description": "CLI tool for AgentTeams API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",