@locusai/sdk 0.5.1 → 0.7.0
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.
- package/dist/agent/artifact-syncer.d.ts.map +1 -1
- package/dist/agent/index.d.ts +0 -1
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/agent/task-executor.d.ts +1 -3
- package/dist/agent/task-executor.d.ts.map +1 -1
- package/dist/agent/worker.d.ts +0 -2
- package/dist/agent/worker.d.ts.map +1 -1
- package/dist/agent/worker.js +340 -121
- package/dist/ai/claude-runner.d.ts +1 -0
- package/dist/ai/claude-runner.d.ts.map +1 -1
- package/dist/ai/codex-runner.d.ts.map +1 -1
- package/dist/core/config.d.ts +2 -0
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/prompt-builder.d.ts +9 -1
- package/dist/core/prompt-builder.d.ts.map +1 -1
- package/dist/index-node.d.ts +1 -0
- package/dist/index-node.d.ts.map +1 -1
- package/dist/index-node.js +346 -127
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +65 -3
- package/dist/modules/ai.d.ts +47 -0
- package/dist/modules/ai.d.ts.map +1 -0
- package/dist/modules/auth.d.ts +7 -1
- package/dist/modules/auth.d.ts.map +1 -1
- package/dist/modules/organizations.d.ts +3 -3
- package/dist/modules/organizations.d.ts.map +1 -1
- package/dist/modules/sprints.d.ts +1 -0
- package/dist/modules/sprints.d.ts.map +1 -1
- package/dist/modules/tasks.d.ts +6 -0
- package/dist/modules/tasks.d.ts.map +1 -1
- package/dist/modules/workspaces.d.ts +18 -0
- package/dist/modules/workspaces.d.ts.map +1 -1
- package/dist/orchestrator.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/agent/sprint-planner.d.ts +0 -16
- package/dist/agent/sprint-planner.d.ts.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LocusConfig, LocusEmitter } from "./events.js";
|
|
2
|
+
import { AIModule } from "./modules/ai.js";
|
|
2
3
|
import { AuthModule } from "./modules/auth.js";
|
|
3
4
|
import { CiModule } from "./modules/ci.js";
|
|
4
5
|
import { DocsModule } from "./modules/docs.js";
|
|
@@ -8,6 +9,7 @@ import { SprintsModule } from "./modules/sprints.js";
|
|
|
8
9
|
import { TasksModule } from "./modules/tasks.js";
|
|
9
10
|
import { WorkspacesModule } from "./modules/workspaces.js";
|
|
10
11
|
export * from "./events.js";
|
|
12
|
+
export * from "./modules/ai.js";
|
|
11
13
|
export * from "./modules/auth.js";
|
|
12
14
|
export * from "./modules/ci.js";
|
|
13
15
|
export * from "./modules/docs.js";
|
|
@@ -20,6 +22,7 @@ export declare class LocusClient {
|
|
|
20
22
|
private readonly api;
|
|
21
23
|
readonly emitter: LocusEmitter;
|
|
22
24
|
readonly auth: AuthModule;
|
|
25
|
+
readonly ai: AIModule;
|
|
23
26
|
readonly tasks: TasksModule;
|
|
24
27
|
readonly sprints: SprintsModule;
|
|
25
28
|
readonly workspaces: WorkspacesModule;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAc,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAA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jD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAI3D,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AAExC,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAgB;IACpC,SAAgB,OAAO,EAAE,YAAY,CAAC;IAEtC,SAAgB,IAAI,EAAE,UAAU,CAAC;IACjC,SAAgB,EAAE,EAAE,QAAQ,CAAC;IAC7B,SAAgB,KAAK,EAAE,WAAW,CAAC;IACnC,SAAgB,OAAO,EAAE,aAAa,CAAC;IACvC,SAAgB,UAAU,EAAE,gBAAgB,CAAC;IAC7C,SAAgB,aAAa,EAAE,mBAAmB,CAAC;IACnD,SAAgB,WAAW,EAAE,iBAAiB,CAAC;IAC/C,SAAgB,IAAI,EAAE,UAAU,CAAC;IACjC,SAAgB,EAAE,EAAE,QAAQ,CAAC;gBAEjB,MAAM,EAAE,WAAW;IA8B/B,OAAO,CAAC,qBAAqB;IAmC7B,OAAO,CAAC,iBAAiB;IAmDlB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;CAOrC"}
|
package/dist/index.js
CHANGED
|
@@ -52,7 +52,8 @@ __export(exports_src, {
|
|
|
52
52
|
InvitationsModule: () => InvitationsModule,
|
|
53
53
|
DocsModule: () => DocsModule,
|
|
54
54
|
CiModule: () => CiModule,
|
|
55
|
-
AuthModule: () => AuthModule
|
|
55
|
+
AuthModule: () => AuthModule,
|
|
56
|
+
AIModule: () => AIModule
|
|
56
57
|
});
|
|
57
58
|
module.exports = __toCommonJS(exports_src);
|
|
58
59
|
var import_axios = __toESM(require("axios"));
|
|
@@ -85,12 +86,46 @@ class BaseModule {
|
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
88
|
|
|
89
|
+
// src/modules/ai.ts
|
|
90
|
+
class AIModule extends BaseModule {
|
|
91
|
+
async chat(workspaceId, body) {
|
|
92
|
+
const { data } = await this.api.post(`/ai/${workspaceId}/chat`, body, { timeout: 300000 });
|
|
93
|
+
return data;
|
|
94
|
+
}
|
|
95
|
+
async detectIntent(workspaceId, body) {
|
|
96
|
+
const { data } = await this.api.post(`/ai/${workspaceId}/chat/intent`, body, { timeout: 300000 });
|
|
97
|
+
return data;
|
|
98
|
+
}
|
|
99
|
+
async executeIntent(workspaceId, body) {
|
|
100
|
+
const { data } = await this.api.post(`/ai/${workspaceId}/chat/execute`, body, { timeout: 300000 });
|
|
101
|
+
return data;
|
|
102
|
+
}
|
|
103
|
+
async listSessions(workspaceId) {
|
|
104
|
+
const { data } = await this.api.get(`/ai/${workspaceId}/sessions`);
|
|
105
|
+
return data;
|
|
106
|
+
}
|
|
107
|
+
async getSession(workspaceId, sessionId) {
|
|
108
|
+
const { data } = await this.api.get(`/ai/${workspaceId}/session/${sessionId}`);
|
|
109
|
+
return data;
|
|
110
|
+
}
|
|
111
|
+
getChatStreamUrl(workspaceId, sessionId) {
|
|
112
|
+
return `${this.api.defaults.baseURL}/ai/${workspaceId}/chat/stream?sessionId=${sessionId}`;
|
|
113
|
+
}
|
|
114
|
+
async deleteSession(workspaceId, sessionId) {
|
|
115
|
+
await this.api.delete(`/ai/${workspaceId}/session/${sessionId}`);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
88
119
|
// src/modules/auth.ts
|
|
89
120
|
class AuthModule extends BaseModule {
|
|
90
|
-
async
|
|
121
|
+
async getProfile() {
|
|
91
122
|
const { data } = await this.api.get("/auth/me");
|
|
92
123
|
return data;
|
|
93
124
|
}
|
|
125
|
+
async getApiKeyInfo() {
|
|
126
|
+
const { data } = await this.api.get("/auth/api-key");
|
|
127
|
+
return data;
|
|
128
|
+
}
|
|
94
129
|
async requestRegisterOtp(email) {
|
|
95
130
|
const { data } = await this.api.post("/auth/register-otp", { email });
|
|
96
131
|
return data;
|
|
@@ -248,6 +283,10 @@ class SprintsModule extends BaseModule {
|
|
|
248
283
|
const { data } = await this.api.post(`/workspaces/${workspaceId}/sprints/${id}/complete`);
|
|
249
284
|
return data.sprint;
|
|
250
285
|
}
|
|
286
|
+
async triggerAIPlanning(id, workspaceId) {
|
|
287
|
+
const { data } = await this.api.post(`/workspaces/${workspaceId}/sprints/${id}/trigger-ai-planning`);
|
|
288
|
+
return data.sprint;
|
|
289
|
+
}
|
|
251
290
|
}
|
|
252
291
|
|
|
253
292
|
// src/modules/tasks.ts
|
|
@@ -294,6 +333,16 @@ class TasksModule extends BaseModule {
|
|
|
294
333
|
const { data } = await this.api.post(`/workspaces/${workspaceId}/tasks/${id}/comment`, body);
|
|
295
334
|
return data.comment;
|
|
296
335
|
}
|
|
336
|
+
async batchUpdate(ids, workspaceId, updates) {
|
|
337
|
+
await this.api.patch(`/workspaces/${workspaceId}/tasks/batch`, {
|
|
338
|
+
ids,
|
|
339
|
+
updates
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
async getContext(id, workspaceId) {
|
|
343
|
+
const { data } = await this.api.get(`/workspaces/${workspaceId}/tasks/${id}/context`);
|
|
344
|
+
return data;
|
|
345
|
+
}
|
|
297
346
|
}
|
|
298
347
|
|
|
299
348
|
// src/modules/workspaces.ts
|
|
@@ -340,6 +389,17 @@ class WorkspacesModule extends BaseModule {
|
|
|
340
389
|
const { data } = await this.api.post(`/workspaces/${id}/dispatch`, { workerId, sprintId });
|
|
341
390
|
return data.task;
|
|
342
391
|
}
|
|
392
|
+
async listApiKeys(workspaceId) {
|
|
393
|
+
const { data } = await this.api.get(`/workspaces/${workspaceId}/api-keys`);
|
|
394
|
+
return data.apiKeys;
|
|
395
|
+
}
|
|
396
|
+
async createApiKey(workspaceId, name) {
|
|
397
|
+
const { data } = await this.api.post(`/workspaces/${workspaceId}/api-keys`, { name });
|
|
398
|
+
return data.apiKey;
|
|
399
|
+
}
|
|
400
|
+
async deleteApiKey(workspaceId, keyId) {
|
|
401
|
+
await this.api.delete(`/workspaces/${workspaceId}/api-keys/${keyId}`);
|
|
402
|
+
}
|
|
343
403
|
}
|
|
344
404
|
|
|
345
405
|
// src/index.ts
|
|
@@ -347,6 +407,7 @@ class LocusClient {
|
|
|
347
407
|
api;
|
|
348
408
|
emitter;
|
|
349
409
|
auth;
|
|
410
|
+
ai;
|
|
350
411
|
tasks;
|
|
351
412
|
sprints;
|
|
352
413
|
workspaces;
|
|
@@ -358,7 +419,7 @@ class LocusClient {
|
|
|
358
419
|
this.emitter = new LocusEmitter;
|
|
359
420
|
this.api = import_axios.default.create({
|
|
360
421
|
baseURL: config.baseUrl,
|
|
361
|
-
timeout: config.timeout ||
|
|
422
|
+
timeout: config.timeout || 60000,
|
|
362
423
|
headers: {
|
|
363
424
|
"Content-Type": "application/json",
|
|
364
425
|
...config.token ? { Authorization: `Bearer ${config.token}` } : {}
|
|
@@ -366,6 +427,7 @@ class LocusClient {
|
|
|
366
427
|
});
|
|
367
428
|
this.setupInterceptors();
|
|
368
429
|
this.auth = new AuthModule(this.api, this.emitter);
|
|
430
|
+
this.ai = new AIModule(this.api, this.emitter);
|
|
369
431
|
this.tasks = new TasksModule(this.api, this.emitter);
|
|
370
432
|
this.sprints = new SprintsModule(this.api, this.emitter);
|
|
371
433
|
this.workspaces = new WorkspacesModule(this.api, this.emitter);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ChatRequest, ChatResponse } from "@locusai/shared";
|
|
2
|
+
import { BaseModule } from "./base.js";
|
|
3
|
+
export declare class AIModule extends BaseModule {
|
|
4
|
+
/**
|
|
5
|
+
* Send a message to the Locus AI Agent and get a response.
|
|
6
|
+
*/
|
|
7
|
+
chat(workspaceId: string, body: ChatRequest): Promise<ChatResponse>;
|
|
8
|
+
/**
|
|
9
|
+
* Detect intent of the message.
|
|
10
|
+
*/
|
|
11
|
+
detectIntent(workspaceId: string, body: ChatRequest): Promise<{
|
|
12
|
+
intent: string;
|
|
13
|
+
executionId: string;
|
|
14
|
+
sessionId: string;
|
|
15
|
+
}>;
|
|
16
|
+
/**
|
|
17
|
+
* Execute a pending intent.
|
|
18
|
+
*/
|
|
19
|
+
executeIntent(workspaceId: string, body: {
|
|
20
|
+
sessionId: string;
|
|
21
|
+
executionId: string;
|
|
22
|
+
}): Promise<ChatResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* List all chat sessions for the current user in a workspace.
|
|
25
|
+
*/
|
|
26
|
+
listSessions(workspaceId: string): Promise<{
|
|
27
|
+
sessions: {
|
|
28
|
+
id: string;
|
|
29
|
+
title: string;
|
|
30
|
+
updatedAt: string;
|
|
31
|
+
}[];
|
|
32
|
+
}>;
|
|
33
|
+
/**
|
|
34
|
+
* Get an existing chat session with its history.
|
|
35
|
+
*/
|
|
36
|
+
getSession(workspaceId: string, sessionId: string): Promise<ChatResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* Get a streaming chat response.
|
|
39
|
+
* Note: This is a placeholder for actual SSE implementation in the SDK.
|
|
40
|
+
*/
|
|
41
|
+
getChatStreamUrl(workspaceId: string, sessionId: string): string;
|
|
42
|
+
/**
|
|
43
|
+
* Delete a chat session.
|
|
44
|
+
*/
|
|
45
|
+
deleteSession(workspaceId: string, sessionId: string): Promise<void>;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=ai.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../src/modules/ai.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,qBAAa,QAAS,SAAQ,UAAU;IACtC;;OAEG;IACG,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC;IASzE;;OAEG;IACG,YAAY,CAChB,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,WAAW,GAChB,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAStE;;OAEG;IACG,aAAa,CACjB,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,GAC/C,OAAO,CAAC,YAAY,CAAC;IASxB;;OAEG;IACG,YAAY,CAChB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC;QAAE,QAAQ,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,MAAM,CAAA;SAAE,EAAE,CAAA;KAAE,CAAC;IAO5E;;OAEG;IACG,UAAU,CACd,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,YAAY,CAAC;IAOxB;;;OAGG;IACH,gBAAgB,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM;IAGhE;;OAEG;IACG,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAG3E"}
|
package/dist/modules/auth.d.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { CompleteRegistration, LoginResponse, User, VerifyOtp } from "@locusai/shared";
|
|
2
2
|
import { BaseModule } from "./base.js";
|
|
3
3
|
export declare class AuthModule extends BaseModule {
|
|
4
|
-
|
|
4
|
+
getProfile(): Promise<User>;
|
|
5
|
+
getApiKeyInfo(): Promise<{
|
|
6
|
+
authType: string;
|
|
7
|
+
workspaceId?: string;
|
|
8
|
+
orgId?: string;
|
|
9
|
+
apiKeyName: string;
|
|
10
|
+
}>;
|
|
5
11
|
requestRegisterOtp(email: string): Promise<{
|
|
6
12
|
success: boolean;
|
|
7
13
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/modules/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,IAAI,EACJ,SAAS,EACV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,qBAAa,UAAW,SAAQ,UAAU;IAClC,
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/modules/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,IAAI,EACJ,SAAS,EACV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,qBAAa,UAAW,SAAQ,UAAU;IAClC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAK3B,aAAa,IAAI,OAAO,CAAC;QAC7B,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IAKI,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAQhE,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAQ7D,WAAW,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC;IAQpD,oBAAoB,CACxB,IAAI,EAAE,oBAAoB,GACzB,OAAO,CAAC,aAAa,CAAC;CAO1B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AddMember, MembershipWithUser, Organization } from "@locusai/shared";
|
|
2
2
|
import { BaseModule } from "./base.js";
|
|
3
|
-
export interface
|
|
3
|
+
export interface OrganizationApiKey {
|
|
4
4
|
id: string;
|
|
5
5
|
organizationId: string;
|
|
6
6
|
name: string;
|
|
@@ -17,8 +17,8 @@ export declare class OrganizationsModule extends BaseModule {
|
|
|
17
17
|
addMember(id: string, body: AddMember): Promise<MembershipWithUser>;
|
|
18
18
|
removeMember(orgId: string, userId: string): Promise<void>;
|
|
19
19
|
delete(orgId: string): Promise<void>;
|
|
20
|
-
listApiKeys(orgId: string): Promise<
|
|
21
|
-
createApiKey(orgId: string, name: string): Promise<
|
|
20
|
+
listApiKeys(orgId: string): Promise<OrganizationApiKey[]>;
|
|
21
|
+
createApiKey(orgId: string, name: string): Promise<OrganizationApiKey>;
|
|
22
22
|
deleteApiKey(orgId: string, keyId: string): Promise<void>;
|
|
23
23
|
}
|
|
24
24
|
//# sourceMappingURL=organizations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../src/modules/organizations.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,kBAAkB,EAElB,YAAY,EAGb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../src/modules/organizations.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,kBAAkB,EAElB,YAAY,EAGb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAUD,qBAAa,mBAAoB,SAAQ,UAAU;IAC3C,IAAI,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;IAM/B,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAO1C,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAOtD,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAQnE,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI1D,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIpC,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;IAOzD,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAQtE,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGhE"}
|
|
@@ -9,5 +9,6 @@ export declare class SprintsModule extends BaseModule {
|
|
|
9
9
|
delete(id: string, workspaceId: string): Promise<void>;
|
|
10
10
|
start(id: string, workspaceId: string): Promise<Sprint>;
|
|
11
11
|
complete(id: string, workspaceId: string): Promise<Sprint>;
|
|
12
|
+
triggerAIPlanning(id: string, workspaceId: string): Promise<Sprint>;
|
|
12
13
|
}
|
|
13
14
|
//# sourceMappingURL=sprints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sprints.d.ts","sourceRoot":"","sources":["../../src/modules/sprints.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,MAAM,EAGN,YAAY,EACb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,qBAAa,aAAc,SAAQ,UAAU;IACrC,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAO5C,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAO/C,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAOzD,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC;IAQhE,MAAM,CACV,EAAE,EAAE,MAAM,EACV,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,YAAY,GACjB,OAAO,CAAC,MAAM,CAAC;IAQZ,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAItD,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAOvD,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"sprints.d.ts","sourceRoot":"","sources":["../../src/modules/sprints.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,MAAM,EAGN,YAAY,EACb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,qBAAa,aAAc,SAAQ,UAAU;IACrC,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAO5C,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAO/C,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAOzD,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC;IAQhE,MAAM,CACV,EAAE,EAAE,MAAM,EACV,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,YAAY,GACjB,OAAO,CAAC,MAAM,CAAC;IAQZ,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAItD,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAOvD,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAO1D,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAM1E"}
|
package/dist/modules/tasks.d.ts
CHANGED
|
@@ -20,5 +20,11 @@ export declare class TasksModule extends BaseModule {
|
|
|
20
20
|
delete(id: string, workspaceId: string): Promise<void>;
|
|
21
21
|
getBacklog(workspaceId: string): Promise<Task[]>;
|
|
22
22
|
addComment(id: string, workspaceId: string, body: AddComment): Promise<Comment>;
|
|
23
|
+
batchUpdate(ids: string[], workspaceId: string, updates: UpdateTask): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Fetch the formatted context for a task (Project Manifest + Task Details).
|
|
26
|
+
* This is used by the local AI agent to align with the project.
|
|
27
|
+
*/
|
|
28
|
+
getContext(id: string, workspaceId: string): Promise<string>;
|
|
23
29
|
}
|
|
24
30
|
//# sourceMappingURL=tasks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file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,OAAO,CAAC,IAAI,CAAC;IAOhB;;;OAGG;IACG,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAMnE"}
|
|
@@ -12,10 +12,28 @@ export declare class WorkspacesModule extends BaseModule {
|
|
|
12
12
|
delete(id: string): Promise<void>;
|
|
13
13
|
getStats(id: string): Promise<WorkspaceStats>;
|
|
14
14
|
getActivity(id: string, limit?: number): Promise<Event[]>;
|
|
15
|
+
/**
|
|
16
|
+
* Dispatch a task from the workspace backlog to an agent.
|
|
17
|
+
* Atomically moves a task from BACKLOG to IN_PROGRESS and assigns it.
|
|
18
|
+
*/
|
|
15
19
|
/**
|
|
16
20
|
* Dispatch a task from the workspace backlog to an agent.
|
|
17
21
|
* Atomically moves a task from BACKLOG to IN_PROGRESS and assigns it.
|
|
18
22
|
*/
|
|
19
23
|
dispatch(id: string, workerId: string, sprintId?: string): Promise<Task>;
|
|
24
|
+
listApiKeys(workspaceId: string): Promise<WorkspaceApiKey[]>;
|
|
25
|
+
createApiKey(workspaceId: string, name: string): Promise<WorkspaceApiKey>;
|
|
26
|
+
deleteApiKey(workspaceId: string, keyId: string): Promise<void>;
|
|
27
|
+
}
|
|
28
|
+
export interface WorkspaceApiKey {
|
|
29
|
+
id: string;
|
|
30
|
+
organizationId?: string | null;
|
|
31
|
+
workspaceId?: string | null;
|
|
32
|
+
name: string;
|
|
33
|
+
key: string;
|
|
34
|
+
active: boolean;
|
|
35
|
+
lastUsedAt: string | null;
|
|
36
|
+
createdAt: string;
|
|
37
|
+
updatedAt: string;
|
|
20
38
|
}
|
|
21
39
|
//# sourceMappingURL=workspaces.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../src/modules/workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EACf,KAAK,EACL,IAAI,EAEJ,eAAe,EACf,SAAS,EAET,c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AE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrator.d.ts","sourceRoot":"","sources":["../src/orchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAS,MAAM,oBAAoB,CAAC;AAIzD,OAAO,EAAE,IAAI,EAA4B,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"orchestrator.d.ts","sourceRoot":"","sources":["../src/orchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAS,MAAM,oBAAoB,CAAC;AAIzD,OAAO,EAAE,IAAI,EAA4B,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAIjD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;IACpD,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,QA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 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@locusai/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"clean": "rm -rf node_modules"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@locusai/shared": "^0.
|
|
33
|
+
"@locusai/shared": "^0.7.0",
|
|
34
34
|
"axios": "^1.13.2",
|
|
35
35
|
"events": "^3.3.0",
|
|
36
36
|
"globby": "^14.0.2"
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Sprint, Task } from "@locusai/shared";
|
|
2
|
-
import type { LogFn } from "../ai/factory.js";
|
|
3
|
-
import type { AiRunner } from "../ai/runner.js";
|
|
4
|
-
export interface SprintPlannerDeps {
|
|
5
|
-
aiRunner: AiRunner;
|
|
6
|
-
log: LogFn;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Handles sprint planning and mindmap generation
|
|
10
|
-
*/
|
|
11
|
-
export declare class SprintPlanner {
|
|
12
|
-
private deps;
|
|
13
|
-
constructor(deps: SprintPlannerDeps);
|
|
14
|
-
planSprint(sprint: Sprint, tasks: Task[]): Promise<string>;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=sprint-planner.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sprint-planner.d.ts","sourceRoot":"","sources":["../../src/agent/sprint-planner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,QAAQ,CAAC;IACnB,GAAG,EAAE,KAAK,CAAC;CACZ;AAED;;GAEG;AACH,qBAAa,aAAa;IACZ,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,iBAAiB;IAErC,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;CAwCjE"}
|