@little-samo/samo-ai-sdk 0.1.4 → 0.1.5-rv1
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/dto/entities/agents/agent.d.ts +1 -0
- package/dist/dto/entities/agents/agent.requests.d.ts +458 -62
- package/dist/dto/entities/agents/agent.requests.js +9 -12
- package/dist/dto/entities/agents/agent.requests.js.map +1 -1
- package/dist/dto/entities/gimmicks/gimmick.config.d.ts +8 -0
- package/dist/dto/entities/gimmicks/gimmick.config.js +11 -0
- package/dist/dto/entities/gimmicks/gimmick.config.js.map +1 -0
- package/dist/dto/entities/gimmicks/gimmick.d.ts +10 -2
- package/dist/dto/entities/gimmicks/index.d.ts +1 -0
- package/dist/dto/entities/gimmicks/index.js +1 -0
- package/dist/dto/entities/gimmicks/index.js.map +1 -1
- package/dist/dto/entities/users/user.requests.d.ts +5 -0
- package/dist/dto/entities/users/user.requests.js +2 -1
- package/dist/dto/entities/users/user.requests.js.map +1 -1
- package/dist/dto/items/item.d.ts +5 -1
- package/dist/dto/locations/location.d.ts +17 -3
- package/dist/dto/locations/location.events.d.ts +7 -1
- package/dist/dto/locations/location.events.js +1 -0
- package/dist/dto/locations/location.events.js.map +1 -1
- package/dist/dto/locations/location.requests.d.ts +471 -76
- package/dist/dto/locations/location.requests.js +77 -9
- package/dist/dto/locations/location.requests.js.map +1 -1
- package/dist/models/entities/agents/agent.config.d.ts +221 -8
- package/dist/models/entities/agents/agent.config.js +112 -30
- package/dist/models/entities/agents/agent.config.js.map +1 -1
- package/dist/models/locations/location.config.d.ts +85 -24
- package/dist/models/locations/location.config.js +45 -21
- package/dist/models/locations/location.config.js.map +1 -1
- package/dist/models/locations/location.constants.d.ts +1 -2
- package/dist/models/locations/location.constants.js +1 -2
- package/dist/models/locations/location.constants.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AgentConfigSchema = exports.AgentConfigCoreSchema = exports.PREDEFINED_AVATARS = void 0;
|
|
3
|
+
exports.AgentConfigSchema = exports.CharacterSchema = exports.AgentConfigCoreSchema = exports.PREDEFINED_AVATARS = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.PREDEFINED_AVATARS = {
|
|
6
6
|
Mimo: `A confident, square-shaped, coral-pink Minimo with bright green horns. Her sharp eyes and poised stance radiate intelligence and leadership.`,
|
|
@@ -22,32 +22,112 @@ exports.AgentConfigCoreSchema = zod_1.z.object({
|
|
|
22
22
|
.describe('Responds to every new message in the location. Best for conversational agents that should actively participate in all discussions.'),
|
|
23
23
|
]),
|
|
24
24
|
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
25
|
+
exports.CharacterSchema = zod_1.z
|
|
26
|
+
.object({
|
|
27
|
+
background: zod_1.z
|
|
28
|
+
.object({
|
|
29
|
+
role: zod_1.z
|
|
30
|
+
.string()
|
|
31
|
+
.max(500)
|
|
32
|
+
.describe("**CRITICAL**. The agent's primary function and purpose (e.g., 'A helper agent for crafting new agents and discovering treasures)")
|
|
33
|
+
.optional(),
|
|
34
|
+
gender: zod_1.z
|
|
35
|
+
.string()
|
|
36
|
+
.max(30)
|
|
37
|
+
.describe("The agent's gender identity")
|
|
38
|
+
.optional(),
|
|
39
|
+
expertise: zod_1.z
|
|
40
|
+
.string()
|
|
41
|
+
.max(500)
|
|
42
|
+
.describe('Specialized knowledge areas')
|
|
43
|
+
.optional(),
|
|
44
|
+
backstory: zod_1.z
|
|
45
|
+
.string()
|
|
46
|
+
.max(1000)
|
|
47
|
+
.describe("A brief history of the agent's experiences")
|
|
48
|
+
.optional(),
|
|
49
|
+
})
|
|
50
|
+
.describe("Defines the agent's core identity and backstory")
|
|
51
|
+
.optional(),
|
|
52
|
+
speech: zod_1.z
|
|
53
|
+
.object({
|
|
54
|
+
tone: zod_1.z
|
|
55
|
+
.string()
|
|
56
|
+
.max(500)
|
|
57
|
+
.describe("The emotional quality of the agent's voice")
|
|
58
|
+
.optional(),
|
|
59
|
+
style: zod_1.z
|
|
60
|
+
.string()
|
|
61
|
+
.max(500)
|
|
62
|
+
.describe("The agent's manner of expression")
|
|
63
|
+
.optional(),
|
|
64
|
+
formality: zod_1.z
|
|
65
|
+
.string()
|
|
66
|
+
.max(500)
|
|
67
|
+
.describe('The level of conventionality in language')
|
|
68
|
+
.optional(),
|
|
69
|
+
})
|
|
70
|
+
.describe("Controls the agent's communication style")
|
|
71
|
+
.optional(),
|
|
72
|
+
personality: zod_1.z
|
|
73
|
+
.object({
|
|
74
|
+
traits: zod_1.z.string().max(500).describe('Key characteristics').optional(),
|
|
75
|
+
interests: zod_1.z
|
|
76
|
+
.string()
|
|
77
|
+
.max(500)
|
|
78
|
+
.describe('Hobbies and topics the agent enjoys')
|
|
79
|
+
.optional(),
|
|
80
|
+
values: zod_1.z
|
|
81
|
+
.string()
|
|
82
|
+
.max(500)
|
|
83
|
+
.describe("Core principles that guide the agent's actions")
|
|
84
|
+
.optional(),
|
|
85
|
+
quirks: zod_1.z
|
|
86
|
+
.string()
|
|
87
|
+
.max(500)
|
|
88
|
+
.describe('Peculiar habits or eccentricities')
|
|
89
|
+
.optional(),
|
|
90
|
+
mbti: zod_1.z
|
|
91
|
+
.union([
|
|
92
|
+
zod_1.z.literal('INTJ'),
|
|
93
|
+
zod_1.z.literal('INTP'),
|
|
94
|
+
zod_1.z.literal('ENTJ'),
|
|
95
|
+
zod_1.z.literal('ENTP'),
|
|
96
|
+
zod_1.z.literal('INFJ'),
|
|
97
|
+
zod_1.z.literal('INFP'),
|
|
98
|
+
zod_1.z.literal('ENFJ'),
|
|
99
|
+
zod_1.z.literal('ENFP'),
|
|
100
|
+
zod_1.z.literal('ISTJ'),
|
|
101
|
+
zod_1.z.literal('ISFJ'),
|
|
102
|
+
zod_1.z.literal('ESTJ'),
|
|
103
|
+
zod_1.z.literal('ESFJ'),
|
|
104
|
+
zod_1.z.literal('ISTP'),
|
|
105
|
+
zod_1.z.literal('ISFP'),
|
|
106
|
+
zod_1.z.literal('ESTP'),
|
|
107
|
+
zod_1.z.literal('ESFP'),
|
|
108
|
+
])
|
|
109
|
+
.optional(),
|
|
110
|
+
})
|
|
111
|
+
.describe("Describes the agent's distinctive traits and behaviors")
|
|
112
|
+
.optional(),
|
|
113
|
+
})
|
|
114
|
+
.describe("Defines the agent's character using a structured format with predefined categories and properties");
|
|
46
115
|
const LlmPresetSchema = zod_1.z.union([
|
|
47
|
-
zod_1.z
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
zod_1.z
|
|
116
|
+
zod_1.z
|
|
117
|
+
.literal('gemini-low')
|
|
118
|
+
.describe('Gemini - Economical model optimized for straightforward tasks and basic interactions. Cost-effective choice for simple operations.'),
|
|
119
|
+
zod_1.z
|
|
120
|
+
.literal('gemini-medium')
|
|
121
|
+
.describe('Gemini - Well-balanced model ideal for general-purpose applications. Recommended for most use cases requiring reliable performance.'),
|
|
122
|
+
zod_1.z
|
|
123
|
+
.literal('gemini-high')
|
|
124
|
+
.describe('Gemini - Premium model with highest performance capabilities. Offers superior reasoning and complex task handling but comes with higher costs and slower processing times.'),
|
|
125
|
+
zod_1.z
|
|
126
|
+
.literal('openai-low')
|
|
127
|
+
.describe('OpenAI GPT - Budget-friendly model designed for elementary tasks and routine operations. Efficient for basic conversational needs.'),
|
|
128
|
+
zod_1.z
|
|
129
|
+
.literal('openai-medium')
|
|
130
|
+
.describe('OpenAI GPT - Versatile model delivering solid performance across diverse scenarios. Optimal balance of capability and cost-effectiveness.'),
|
|
51
131
|
]);
|
|
52
132
|
exports.AgentConfigSchema = zod_1.z.object({
|
|
53
133
|
name: zod_1.z.string().max(64).describe('Agent name'),
|
|
@@ -57,13 +137,15 @@ exports.AgentConfigSchema = zod_1.z.object({
|
|
|
57
137
|
zod_1.z
|
|
58
138
|
.string()
|
|
59
139
|
.max(2048)
|
|
60
|
-
.
|
|
140
|
+
.regex(/^https?:\/\/.+\.(png|jpe?g)$/i)
|
|
141
|
+
.describe('Custom avatar URL (http/https URL pointing to png, jpeg, jpg, webp files under 3MB). This will be replaced by the URL of the file uploaded to a CDN, not the original address.'),
|
|
142
|
+
zod_1.z.string().max(32).describe('Location message image key for API usage'),
|
|
61
143
|
])
|
|
62
|
-
.describe('Visual representation identifier for the agent. Supports predefined avatar options
|
|
144
|
+
.describe('Visual representation identifier for the agent. Supports predefined avatar options, custom URLs, and location message image keys for API usage. When a predefined avatar is selected, the appearance field will automatically update to match the avatar description. Image keys and custom URLs will be replaced by CDN URLs when processed.'),
|
|
63
145
|
appearance: zod_1.z
|
|
64
146
|
.string()
|
|
65
147
|
.max(500)
|
|
66
|
-
.describe("Internal character description used by the agent for role-playing and behavioral consistency. This field is automatically updated when avatar changes to a predefined option, but
|
|
148
|
+
.describe("Internal character description used by the agent for role-playing and behavioral consistency. This field is automatically updated when avatar changes to a predefined option, but should also be updated when using custom images to maintain character consistency. Can be manually edited independently. Helps the agent understand and embody its character during interactions, influencing communication style, decision-making patterns, and personality expression. Primarily for agent's internal reference rather than user display."),
|
|
67
149
|
core: exports.AgentConfigCoreSchema.describe('Fundamental behavior pattern that determines how the agent decides when to take actions'),
|
|
68
150
|
llmPreset: LlmPresetSchema.describe('AI model selection that balances cost, performance, and capabilities. Higher tiers provide better reasoning but cost more per interaction.'),
|
|
69
151
|
languages: zod_1.z
|
|
@@ -89,7 +171,7 @@ exports.AgentConfigSchema = zod_1.z.object({
|
|
|
89
171
|
]))
|
|
90
172
|
.max(4)
|
|
91
173
|
.describe("Additional capabilities the agent can perform beyond basic conversation. Each action expands the agent's toolkit for specific use cases."),
|
|
92
|
-
character: CharacterSchema,
|
|
174
|
+
character: exports.CharacterSchema,
|
|
93
175
|
rules: zod_1.z
|
|
94
176
|
.array(zod_1.z.string().max(200))
|
|
95
177
|
.max(20)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.config.js","sourceRoot":"","sources":["../../../../src/models/entities/agents/agent.config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,kBAAkB,GAA2B;IACxD,IAAI,EAAE,8IAA8I;IACpJ,IAAI,EAAE,6KAA6K;IACnL,MAAM,EAAE,0LAA0L;IAClM,IAAI,EAAE,+LAA+L;IACrM,MAAM,EAAE,8KAA8K;CACvL,CAAC;AAEW,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC;QACZ,OAAC;aACE,OAAO,CAAC,sBAAsB,CAAC;aAC/B,QAAQ,CACP,4JAA4J,CAC7J;QACH,OAAC;aACE,OAAO,CAAC,iBAAiB,CAAC;aAC1B,QAAQ,CACP,+IAA+I,CAChJ;QACH,OAAC;aACE,OAAO,CAAC,wBAAwB,CAAC;aACjC,QAAQ,CACP,oIAAoI,CACrI;KACJ,CAAC;CACH,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"agent.config.js","sourceRoot":"","sources":["../../../../src/models/entities/agents/agent.config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,kBAAkB,GAA2B;IACxD,IAAI,EAAE,8IAA8I;IACpJ,IAAI,EAAE,6KAA6K;IACnL,MAAM,EAAE,0LAA0L;IAClM,IAAI,EAAE,+LAA+L;IACrM,MAAM,EAAE,8KAA8K;CACvL,CAAC;AAEW,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC;QACZ,OAAC;aACE,OAAO,CAAC,sBAAsB,CAAC;aAC/B,QAA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teral<"CHAT">, z.ZodLiteral<"
|
|
2
|
+
export declare const LocationEnvironmentSchema: z.ZodUnion<[z.ZodLiteral<"CHAT">, z.ZodLiteral<"NOVEL">]>;
|
|
3
3
|
export declare const LocationConfigCoreSchema: z.ZodObject<{
|
|
4
|
-
name: z.ZodUnion<[z.ZodLiteral<"round_robin">, z.ZodLiteral<"update_forever">, z.ZodLiteral<"update_once">]>;
|
|
4
|
+
name: z.ZodUnion<[z.ZodLiteral<"round_robin">, z.ZodLiteral<"update_forever">, z.ZodLiteral<"update_once">, z.ZodLiteral<"update_until_idle">]>;
|
|
5
5
|
sequential: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
interval: z.ZodOptional<z.ZodNumber>;
|
|
6
7
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
name: "round_robin" | "update_forever" | "update_once";
|
|
8
|
+
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
8
9
|
sequential?: boolean | undefined;
|
|
10
|
+
interval?: number | undefined;
|
|
9
11
|
}, {
|
|
10
|
-
name: "round_robin" | "update_forever" | "update_once";
|
|
12
|
+
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
11
13
|
sequential?: boolean | undefined;
|
|
14
|
+
interval?: number | undefined;
|
|
12
15
|
}>;
|
|
13
16
|
export type LocationConfigCore = z.infer<typeof LocationConfigCoreSchema>;
|
|
14
17
|
export declare const LocationConfigCanvasSchema: z.ZodObject<{
|
|
@@ -24,35 +27,66 @@ export declare const LocationConfigCanvasSchema: z.ZodObject<{
|
|
|
24
27
|
description: string;
|
|
25
28
|
maxLength: number;
|
|
26
29
|
}>;
|
|
27
|
-
|
|
28
|
-
export
|
|
30
|
+
export type LocationConfigCanvas = z.infer<typeof LocationConfigCanvasSchema>;
|
|
31
|
+
export declare const LocationConfigGimmickImageSchema: z.ZodObject<{
|
|
32
|
+
url: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
33
|
+
description: z.ZodString;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
description: string;
|
|
36
|
+
url: string;
|
|
37
|
+
}, {
|
|
38
|
+
description: string;
|
|
39
|
+
url: string;
|
|
40
|
+
}>;
|
|
41
|
+
export type LocationConfigGimmickImage = z.infer<typeof LocationConfigGimmickImageSchema>;
|
|
29
42
|
export declare const LocationConfigGimmickSchema: z.ZodObject<{
|
|
30
|
-
core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"
|
|
43
|
+
core: z.ZodUnion<[z.ZodLiteral<"web_search" | "image_generator" | "notion">, z.ZodLiteral<"web_search" | "image_generator" | "notion">, ...z.ZodLiteral<"web_search" | "image_generator" | "notion">[]]>;
|
|
31
44
|
name: z.ZodString;
|
|
32
45
|
appearance: z.ZodString;
|
|
46
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
47
|
+
url: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
48
|
+
description: z.ZodString;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
description: string;
|
|
51
|
+
url: string;
|
|
52
|
+
}, {
|
|
53
|
+
description: string;
|
|
54
|
+
url: string;
|
|
55
|
+
}>, "many">>;
|
|
33
56
|
}, "strip", z.ZodTypeAny, {
|
|
34
57
|
name: string;
|
|
35
|
-
core: "web_search" | "
|
|
58
|
+
core: "web_search" | "image_generator" | "notion";
|
|
36
59
|
appearance: string;
|
|
60
|
+
images?: {
|
|
61
|
+
description: string;
|
|
62
|
+
url: string;
|
|
63
|
+
}[] | undefined;
|
|
37
64
|
}, {
|
|
38
65
|
name: string;
|
|
39
|
-
core: "web_search" | "
|
|
66
|
+
core: "web_search" | "image_generator" | "notion";
|
|
40
67
|
appearance: string;
|
|
68
|
+
images?: {
|
|
69
|
+
description: string;
|
|
70
|
+
url: string;
|
|
71
|
+
}[] | undefined;
|
|
41
72
|
}>;
|
|
42
73
|
export type LocationConfigGimmick = z.infer<typeof LocationConfigGimmickSchema>;
|
|
43
74
|
export declare const LocationConfigSchema: z.ZodObject<{
|
|
44
75
|
name: z.ZodString;
|
|
45
|
-
thumbnail: z.ZodNullable<z.ZodString
|
|
46
|
-
environment: z.ZodUnion<[z.ZodLiteral<"CHAT">, z.ZodLiteral<"
|
|
76
|
+
thumbnail: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
|
|
77
|
+
environment: z.ZodUnion<[z.ZodLiteral<"CHAT">, z.ZodLiteral<"NOVEL">]>;
|
|
47
78
|
core: z.ZodObject<{
|
|
48
|
-
name: z.ZodUnion<[z.ZodLiteral<"round_robin">, z.ZodLiteral<"update_forever">, z.ZodLiteral<"update_once">]>;
|
|
79
|
+
name: z.ZodUnion<[z.ZodLiteral<"round_robin">, z.ZodLiteral<"update_forever">, z.ZodLiteral<"update_once">, z.ZodLiteral<"update_until_idle">]>;
|
|
49
80
|
sequential: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
+
interval: z.ZodOptional<z.ZodNumber>;
|
|
50
82
|
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
name: "round_robin" | "update_forever" | "update_once";
|
|
83
|
+
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
52
84
|
sequential?: boolean | undefined;
|
|
85
|
+
interval?: number | undefined;
|
|
53
86
|
}, {
|
|
54
|
-
name: "round_robin" | "update_forever" | "update_once";
|
|
87
|
+
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
55
88
|
sequential?: boolean | undefined;
|
|
89
|
+
interval?: number | undefined;
|
|
56
90
|
}>;
|
|
57
91
|
description: z.ZodString;
|
|
58
92
|
rules: z.ZodArray<z.ZodString, "many">;
|
|
@@ -83,27 +117,46 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
83
117
|
maxLength: number;
|
|
84
118
|
}>, "many">;
|
|
85
119
|
gimmicks: z.ZodArray<z.ZodObject<{
|
|
86
|
-
core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"
|
|
120
|
+
core: z.ZodUnion<[z.ZodLiteral<"web_search" | "image_generator" | "notion">, z.ZodLiteral<"web_search" | "image_generator" | "notion">, ...z.ZodLiteral<"web_search" | "image_generator" | "notion">[]]>;
|
|
87
121
|
name: z.ZodString;
|
|
88
122
|
appearance: z.ZodString;
|
|
123
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
124
|
+
url: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
125
|
+
description: z.ZodString;
|
|
126
|
+
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
description: string;
|
|
128
|
+
url: string;
|
|
129
|
+
}, {
|
|
130
|
+
description: string;
|
|
131
|
+
url: string;
|
|
132
|
+
}>, "many">>;
|
|
89
133
|
}, "strip", z.ZodTypeAny, {
|
|
90
134
|
name: string;
|
|
91
|
-
core: "web_search" | "
|
|
135
|
+
core: "web_search" | "image_generator" | "notion";
|
|
92
136
|
appearance: string;
|
|
137
|
+
images?: {
|
|
138
|
+
description: string;
|
|
139
|
+
url: string;
|
|
140
|
+
}[] | undefined;
|
|
93
141
|
}, {
|
|
94
142
|
name: string;
|
|
95
|
-
core: "web_search" | "
|
|
143
|
+
core: "web_search" | "image_generator" | "notion";
|
|
96
144
|
appearance: string;
|
|
145
|
+
images?: {
|
|
146
|
+
description: string;
|
|
147
|
+
url: string;
|
|
148
|
+
}[] | undefined;
|
|
97
149
|
}>, "many">;
|
|
98
150
|
}, "strip", z.ZodTypeAny, {
|
|
99
151
|
name: string;
|
|
100
152
|
description: string;
|
|
101
153
|
core: {
|
|
102
|
-
name: "round_robin" | "update_forever" | "update_once";
|
|
154
|
+
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
103
155
|
sequential?: boolean | undefined;
|
|
156
|
+
interval?: number | undefined;
|
|
104
157
|
};
|
|
105
158
|
thumbnail: string | null;
|
|
106
|
-
environment: "CHAT";
|
|
159
|
+
environment: "CHAT" | "NOVEL";
|
|
107
160
|
rules: string[];
|
|
108
161
|
canvases: {
|
|
109
162
|
name: string;
|
|
@@ -117,18 +170,23 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
117
170
|
}[];
|
|
118
171
|
gimmicks: {
|
|
119
172
|
name: string;
|
|
120
|
-
core: "web_search" | "
|
|
173
|
+
core: "web_search" | "image_generator" | "notion";
|
|
121
174
|
appearance: string;
|
|
175
|
+
images?: {
|
|
176
|
+
description: string;
|
|
177
|
+
url: string;
|
|
178
|
+
}[] | undefined;
|
|
122
179
|
}[];
|
|
123
180
|
}, {
|
|
124
181
|
name: string;
|
|
125
182
|
description: string;
|
|
126
183
|
core: {
|
|
127
|
-
name: "round_robin" | "update_forever" | "update_once";
|
|
184
|
+
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
128
185
|
sequential?: boolean | undefined;
|
|
186
|
+
interval?: number | undefined;
|
|
129
187
|
};
|
|
130
188
|
thumbnail: string | null;
|
|
131
|
-
environment: "CHAT";
|
|
189
|
+
environment: "CHAT" | "NOVEL";
|
|
132
190
|
rules: string[];
|
|
133
191
|
canvases: {
|
|
134
192
|
name: string;
|
|
@@ -142,9 +200,12 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
142
200
|
}[];
|
|
143
201
|
gimmicks: {
|
|
144
202
|
name: string;
|
|
145
|
-
core: "web_search" | "
|
|
203
|
+
core: "web_search" | "image_generator" | "notion";
|
|
146
204
|
appearance: string;
|
|
205
|
+
images?: {
|
|
206
|
+
description: string;
|
|
207
|
+
url: string;
|
|
208
|
+
}[] | undefined;
|
|
147
209
|
}[];
|
|
148
210
|
}>;
|
|
149
211
|
export type LocationConfig = z.infer<typeof LocationConfigSchema>;
|
|
150
|
-
export {};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LocationConfigSchema = exports.LocationConfigGimmickSchema = exports.LocationConfigCanvasSchema = exports.LocationConfigCoreSchema = exports.LocationEnvironmentSchema = void 0;
|
|
3
|
+
exports.LocationConfigSchema = exports.LocationConfigGimmickSchema = exports.LocationConfigGimmickImageSchema = exports.LocationConfigCanvasSchema = exports.LocationConfigCoreSchema = exports.LocationEnvironmentSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const gimmicks_1 = require("../../dto/entities/gimmicks");
|
|
5
6
|
const location_constants_1 = require("./location.constants");
|
|
6
7
|
exports.LocationEnvironmentSchema = zod_1.z.union([
|
|
7
8
|
zod_1.z
|
|
8
9
|
.literal(location_constants_1.LocationEnvironment.CHAT)
|
|
9
10
|
.describe('Standard conversational environment for general agent interactions'),
|
|
10
11
|
zod_1.z
|
|
11
|
-
.literal(location_constants_1.LocationEnvironment.
|
|
12
|
-
.describe('
|
|
12
|
+
.literal(location_constants_1.LocationEnvironment.NOVEL)
|
|
13
|
+
.describe('Novel environment with UI designed for novel writing'),
|
|
13
14
|
]);
|
|
14
15
|
exports.LocationConfigCoreSchema = zod_1.z.object({
|
|
15
16
|
name: zod_1.z.union([
|
|
@@ -18,13 +19,22 @@ exports.LocationConfigCoreSchema = zod_1.z.object({
|
|
|
18
19
|
.literal('update_forever')
|
|
19
20
|
.describe('Continuously update agents without stopping'),
|
|
20
21
|
zod_1.z.literal('update_once').describe('Execute agents only once per cycle'),
|
|
22
|
+
zod_1.z
|
|
23
|
+
.literal('update_until_idle')
|
|
24
|
+
.describe('Update agents continuously until no actions are available'),
|
|
21
25
|
]),
|
|
22
26
|
sequential: zod_1.z.boolean().optional().describe('Execute agents in fixed order'),
|
|
27
|
+
interval: zod_1.z
|
|
28
|
+
.number()
|
|
29
|
+
.min(0)
|
|
30
|
+
.max(60 * 60 * 1000)
|
|
31
|
+
.optional()
|
|
32
|
+
.describe('Interval in milliseconds between agent executions. Use default value if not specified'),
|
|
23
33
|
});
|
|
24
34
|
exports.LocationConfigCanvasSchema = zod_1.z.object({
|
|
25
35
|
name: zod_1.z
|
|
26
36
|
.string()
|
|
27
|
-
.max(
|
|
37
|
+
.max(32)
|
|
28
38
|
.regex(/^[a-zA-Z_]+$/, 'Name must contain only letters and underscores')
|
|
29
39
|
.describe('Unique identifier for the canvas that agents use to reference it'),
|
|
30
40
|
description: zod_1.z
|
|
@@ -34,22 +44,25 @@ exports.LocationConfigCanvasSchema = zod_1.z.object({
|
|
|
34
44
|
maxLength: zod_1.z
|
|
35
45
|
.number()
|
|
36
46
|
.min(100)
|
|
37
|
-
.max(
|
|
47
|
+
.max(5000)
|
|
38
48
|
.describe('Maximum character limit for canvas content'),
|
|
39
49
|
});
|
|
40
|
-
|
|
41
|
-
zod_1.z
|
|
42
|
-
.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
exports.LocationConfigGimmickImageSchema = zod_1.z.object({
|
|
51
|
+
url: zod_1.z.union([
|
|
52
|
+
zod_1.z
|
|
53
|
+
.string()
|
|
54
|
+
.max(2048)
|
|
55
|
+
.regex(/^https?:\/\/.+\.(png|jpe?g|webp)$/i)
|
|
56
|
+
.describe('Reference image URL (http/https URL pointing to png, jpeg, jpg, webp files under 3MB). This will be replaced by the URL of the file uploaded to a CDN, not the original address.'),
|
|
57
|
+
zod_1.z.string().max(32).describe('Reference message image key for API usage'),
|
|
58
|
+
]),
|
|
59
|
+
description: zod_1.z
|
|
60
|
+
.string()
|
|
61
|
+
.max(500)
|
|
62
|
+
.describe('Description of the image used by the gimmick for AI image generation.'),
|
|
63
|
+
});
|
|
51
64
|
exports.LocationConfigGimmickSchema = zod_1.z.object({
|
|
52
|
-
core: GimmickCoreSchema.describe('Core gimmick behavior that determines how the gimmick is executed'),
|
|
65
|
+
core: gimmicks_1.GimmickCoreSchema.describe('Core gimmick behavior that determines how the gimmick is executed'),
|
|
53
66
|
name: zod_1.z
|
|
54
67
|
.string()
|
|
55
68
|
.max(64)
|
|
@@ -58,16 +71,27 @@ exports.LocationConfigGimmickSchema = zod_1.z.object({
|
|
|
58
71
|
.string()
|
|
59
72
|
.max(500)
|
|
60
73
|
.describe('How the gimmick appears to agents and users in the location context'),
|
|
74
|
+
images: zod_1.z
|
|
75
|
+
.array(exports.LocationConfigGimmickImageSchema)
|
|
76
|
+
.max(4)
|
|
77
|
+
.optional()
|
|
78
|
+
.describe('Optional reference images used by image_generator gimmick for AI image generation. Supports HTTP/HTTPS URLs for png, jpeg, jpg, webp images and message image keys for API usage. When provided, images will be replaced by CDN URLs when processed.'),
|
|
61
79
|
});
|
|
62
80
|
exports.LocationConfigSchema = zod_1.z.object({
|
|
63
81
|
name: zod_1.z.string().max(64).describe('Location name'),
|
|
64
82
|
thumbnail: zod_1.z
|
|
65
|
-
.
|
|
66
|
-
.
|
|
83
|
+
.union([
|
|
84
|
+
zod_1.z
|
|
85
|
+
.string()
|
|
86
|
+
.max(2048)
|
|
87
|
+
.regex(/^https?:\/\/.+\.(png|jpe?g)$/i)
|
|
88
|
+
.describe('Location thumbnail URL (http/https URL pointing to png, jpeg, jpg, webp files under 3MB). This will be replaced by the URL of the file uploaded to a CDN, not the original address.'),
|
|
89
|
+
zod_1.z.string().max(32).describe('Location message image key for API usage'),
|
|
90
|
+
])
|
|
67
91
|
.nullable()
|
|
68
|
-
.describe('Location thumbnail
|
|
92
|
+
.describe('Location thumbnail image. Supports HTTP/HTTPS URLs for png, jpeg, jpg, webp images and location message image keys for API usage. When provided, images will be replaced by CDN URLs when processed.'),
|
|
69
93
|
environment: exports.LocationEnvironmentSchema.describe('Location environment that determines the context and behavior'),
|
|
70
|
-
core: exports.LocationConfigCoreSchema.describe('Core behavior configuration that determines how agents are executed in this location'),
|
|
94
|
+
core: exports.LocationConfigCoreSchema.describe('Core behavior configuration that determines how agents are executed in this location. Use default values unless specifically needed.'),
|
|
71
95
|
description: zod_1.z
|
|
72
96
|
.string()
|
|
73
97
|
.max(500)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.config.js","sourceRoot":"","sources":["../../../src/models/locations/location.config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,6DAA2D;AAE9C,QAAA,yBAAyB,GAAG,OAAC,CAAC,KAAK,CAAC;IAC/C,OAAC;SACE,OAAO,CAAC,wCAAmB,CAAC,IAAI,CAAC;SACjC,QAAQ,CACP,oEAAoE,CACrE;IACH,OAAC;SACE,OAAO,CAAC,wCAAmB,CAAC,
|
|
1
|
+
{"version":3,"file":"location.config.js","sourceRoot":"","sources":["../../../src/models/locations/location.config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,0DAAgE;AAEhE,6DAA2D;AAE9C,QAAA,yBAAyB,GAAG,OAAC,CAAC,KAAK,CAAC;IAC/C,OAAC;SACE,OAAO,CAAC,wCAAmB,CAAC,IAAI,CAAC;SACjC,QAAQ,CACP,oEAAoE,CACrE;IACH,OAAC;SACE,OAAO,CAAC,wCAAmB,CAAC,KAAK,CAAC;SAClC,QAAQ,CAAC,sDAAsD,CAAC;CACpE,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC;QACZ,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,kCAAkC,CAAC;QACrE,OAAC;aACE,OAAO,CAAC,gBAAgB,CAAC;aACzB,QAAQ,CAAC,6CAA6C,CAAC;QAC1D,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,oCAAoC,CAAC;QACvE,OAAC;aACE,OAAO,CAAC,mBAAmB,CAAC;aAC5B,QAAQ,CAAC,2DAA2D,CAAC;KACzE,CAAC;IACF,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;IAC5E,QAAQ,EAAE,OAAC;SACR,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,EAAE,GAAG,EAAE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;SACjC,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,gFAAgF,CACjF;IAEH,QAAQ,EAAE,OAAC;SACR,KAAK,CAAC,mCAA2B,CAAC;SAClC,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,uGAAuG,CACxG;CACJ,CAAC,CAAC"}
|
|
@@ -16,7 +16,6 @@ export declare const LocationEnvironment: {
|
|
|
16
16
|
readonly AGENT_HELPER: "AGENT_HELPER";
|
|
17
17
|
readonly LOCATION_HELPER: "LOCATION_HELPER";
|
|
18
18
|
readonly AGENT_DM: "AGENT_DM";
|
|
19
|
-
readonly
|
|
20
|
-
readonly VIDEO_GAME: "VIDEO_GAME";
|
|
19
|
+
readonly NOVEL: "NOVEL";
|
|
21
20
|
};
|
|
22
21
|
export type LocationEnvironment = (typeof LocationEnvironment)[keyof typeof LocationEnvironment];
|
|
@@ -17,7 +17,6 @@ exports.LocationEnvironment = {
|
|
|
17
17
|
AGENT_HELPER: 'AGENT_HELPER',
|
|
18
18
|
LOCATION_HELPER: 'LOCATION_HELPER',
|
|
19
19
|
AGENT_DM: 'AGENT_DM',
|
|
20
|
-
|
|
21
|
-
VIDEO_GAME: 'VIDEO_GAME',
|
|
20
|
+
NOVEL: 'NOVEL',
|
|
22
21
|
};
|
|
23
22
|
//# sourceMappingURL=location.constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.constants.js","sourceRoot":"","sources":["../../../src/models/locations/location.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;CACR,CAAC;AAIE,QAAA,YAAY,GAAG;IAC1B,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACR,CAAC;AAIE,QAAA,mBAAmB,GAAG;IACjC,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;IAC5B,eAAe,EAAE,iBAAiB;IAClC,QAAQ,EAAE,UAAU;IACpB,
|
|
1
|
+
{"version":3,"file":"location.constants.js","sourceRoot":"","sources":["../../../src/models/locations/location.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;CACR,CAAC;AAIE,QAAA,YAAY,GAAG;IAC1B,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACR,CAAC;AAIE,QAAA,mBAAmB,GAAG;IACjC,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;IAC5B,eAAe,EAAE,iBAAiB;IAClC,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;CACN,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@little-samo/samo-ai-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5-rv1",
|
|
4
4
|
"description": "SamoAI SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@eslint/eslintrc": "^3.1.0",
|
|
64
64
|
"@eslint/js": "^9.13.0",
|
|
65
|
-
"@little-samo/samo-ai": "^0.1.
|
|
65
|
+
"@little-samo/samo-ai": "^0.1.5",
|
|
66
66
|
"@types/lodash": "^4",
|
|
67
67
|
"@types/node": "^20.3.1",
|
|
68
68
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"zod": "^3.24.1"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"@little-samo/samo-ai": "^0.1.
|
|
87
|
+
"@little-samo/samo-ai": "^0.1.5",
|
|
88
88
|
"class-transformer": "^0.5.1",
|
|
89
89
|
"class-validator": "^0.14.2",
|
|
90
90
|
"zod": "^3.24.1"
|