@locusai/sdk 0.13.0 → 0.13.2
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/worker.d.ts.map +1 -1
- package/dist/agent/worker.js +300 -12
- package/dist/core/config.d.ts +2 -1
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/prompt-builder.d.ts +1 -0
- package/dist/core/prompt-builder.d.ts.map +1 -1
- package/dist/discussion/agents/facilitator-prompt.d.ts +13 -0
- package/dist/discussion/agents/facilitator-prompt.d.ts.map +1 -0
- package/dist/discussion/discussion-facilitator.d.ts +67 -0
- package/dist/discussion/discussion-facilitator.d.ts.map +1 -0
- package/dist/discussion/discussion-manager.d.ts +59 -0
- package/dist/discussion/discussion-manager.d.ts.map +1 -0
- package/dist/discussion/discussion-types.d.ts +89 -0
- package/dist/discussion/discussion-types.d.ts.map +1 -0
- package/dist/discussion/index.d.ts +5 -0
- package/dist/discussion/index.d.ts.map +1 -0
- package/dist/index-node.d.ts +1 -0
- package/dist/index-node.d.ts.map +1 -1
- package/dist/index-node.js +735 -105
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +37 -0
- package/package.json +2 -2
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DiscussionMessageSchema: z.ZodObject<{
|
|
3
|
+
role: z.ZodEnum<{
|
|
4
|
+
user: "user";
|
|
5
|
+
assistant: "assistant";
|
|
6
|
+
}>;
|
|
7
|
+
content: z.ZodString;
|
|
8
|
+
timestamp: z.ZodNumber;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const DiscussionInsightSchema: z.ZodObject<{
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
type: z.ZodEnum<{
|
|
13
|
+
decision: "decision";
|
|
14
|
+
requirement: "requirement";
|
|
15
|
+
idea: "idea";
|
|
16
|
+
concern: "concern";
|
|
17
|
+
learning: "learning";
|
|
18
|
+
}>;
|
|
19
|
+
title: z.ZodString;
|
|
20
|
+
content: z.ZodString;
|
|
21
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
22
|
+
createdAt: z.ZodString;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export declare const DiscussionSchema: z.ZodObject<{
|
|
25
|
+
id: z.ZodString;
|
|
26
|
+
title: z.ZodString;
|
|
27
|
+
topic: z.ZodString;
|
|
28
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
29
|
+
completed: "completed";
|
|
30
|
+
active: "active";
|
|
31
|
+
archived: "archived";
|
|
32
|
+
}>>;
|
|
33
|
+
messages: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
34
|
+
role: z.ZodEnum<{
|
|
35
|
+
user: "user";
|
|
36
|
+
assistant: "assistant";
|
|
37
|
+
}>;
|
|
38
|
+
content: z.ZodString;
|
|
39
|
+
timestamp: z.ZodNumber;
|
|
40
|
+
}, z.core.$strip>>>;
|
|
41
|
+
insights: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
42
|
+
id: z.ZodString;
|
|
43
|
+
type: z.ZodEnum<{
|
|
44
|
+
decision: "decision";
|
|
45
|
+
requirement: "requirement";
|
|
46
|
+
idea: "idea";
|
|
47
|
+
concern: "concern";
|
|
48
|
+
learning: "learning";
|
|
49
|
+
}>;
|
|
50
|
+
title: z.ZodString;
|
|
51
|
+
content: z.ZodString;
|
|
52
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
53
|
+
createdAt: z.ZodString;
|
|
54
|
+
}, z.core.$strip>>>;
|
|
55
|
+
createdAt: z.ZodString;
|
|
56
|
+
updatedAt: z.ZodString;
|
|
57
|
+
metadata: z.ZodObject<{
|
|
58
|
+
model: z.ZodString;
|
|
59
|
+
provider: z.ZodString;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
export interface DiscussionMessage {
|
|
63
|
+
role: "user" | "assistant";
|
|
64
|
+
content: string;
|
|
65
|
+
timestamp: number;
|
|
66
|
+
}
|
|
67
|
+
export interface DiscussionInsight {
|
|
68
|
+
id: string;
|
|
69
|
+
type: "decision" | "requirement" | "idea" | "concern" | "learning";
|
|
70
|
+
title: string;
|
|
71
|
+
content: string;
|
|
72
|
+
tags: string[];
|
|
73
|
+
createdAt: string;
|
|
74
|
+
}
|
|
75
|
+
export interface Discussion {
|
|
76
|
+
id: string;
|
|
77
|
+
title: string;
|
|
78
|
+
topic: string;
|
|
79
|
+
status: "active" | "completed" | "archived";
|
|
80
|
+
messages: DiscussionMessage[];
|
|
81
|
+
insights: DiscussionInsight[];
|
|
82
|
+
createdAt: string;
|
|
83
|
+
updatedAt: string;
|
|
84
|
+
metadata: {
|
|
85
|
+
model: string;
|
|
86
|
+
provider: string;
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=discussion-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discussion-types.d.ts","sourceRoot":"","sources":["../../src/discussion/discussion-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,uBAAuB;;;;;;;iBAIlC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;iBAOlC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAa3B,CAAC;AAMH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,UAAU,GAAG,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC;IACnE,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,QAAQ,GAAG,WAAW,GAAG,UAAU,CAAC;IAC5C,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE;QACR,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { buildFacilitatorPrompt, buildSummaryPrompt, type FacilitatorPromptInput, } from "./agents/facilitator-prompt.js";
|
|
2
|
+
export { type ContinueDiscussionResult, DiscussionFacilitator, type DiscussionFacilitatorConfig, type StartDiscussionResult, } from "./discussion-facilitator.js";
|
|
3
|
+
export { DiscussionManager } from "./discussion-manager.js";
|
|
4
|
+
export { type Discussion, type DiscussionInsight, DiscussionInsightSchema, type DiscussionMessage, DiscussionMessageSchema, DiscussionSchema, } from "./discussion-types.js";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/discussion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,KAAK,sBAAsB,GAC5B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,KAAK,wBAAwB,EAC7B,qBAAqB,EACrB,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,GAC3B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EACL,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,uBAAuB,CAAC"}
|
package/dist/index-node.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from "./agent/index.js";
|
|
|
10
10
|
export * from "./ai/index.js";
|
|
11
11
|
export * from "./core/index.js";
|
|
12
12
|
export { PromptBuilder } from "./core/prompt-builder.js";
|
|
13
|
+
export * from "./discussion/index.js";
|
|
13
14
|
export * from "./exec/index.js";
|
|
14
15
|
export * from "./git/index.js";
|
|
15
16
|
export * from "./index.js";
|
package/dist/index-node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-node.d.ts","sourceRoot":"","sources":["../src/index-node.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,cAAc,kBAAkB,CAAC;AAEjC,cAAc,eAAe,CAAC;AAE9B,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,cAAc,iBAAiB,CAAC;AAEhC,cAAc,gBAAgB,CAAC;AAE/B,cAAc,YAAY,CAAC;AAE3B,OAAO,EACL,iBAAiB,EACjB,KAAK,UAAU,EACf,KAAK,kBAAkB,GACxB,MAAM,yBAAyB,CAAC;AAEjC,cAAc,qBAAqB,CAAC;AAEpC,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index-node.d.ts","sourceRoot":"","sources":["../src/index-node.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,cAAc,kBAAkB,CAAC;AAEjC,cAAc,eAAe,CAAC;AAE9B,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,cAAc,uBAAuB,CAAC;AAEtC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,gBAAgB,CAAC;AAE/B,cAAc,YAAY,CAAC;AAE3B,OAAO,EACL,iBAAiB,EACjB,KAAK,UAAU,EACf,KAAK,kBAAkB,GACxB,MAAM,yBAAyB,CAAC;AAEjC,cAAc,qBAAqB,CAAC;AAEpC,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC"}
|