@little-samo/samo-ai-sdk 0.1.0-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/LICENSE +21 -0
- package/README.md +50 -0
- package/dist/dto/entities/agents/agent.d.ts +13 -0
- package/dist/dto/entities/agents/agent.js +3 -0
- package/dist/dto/entities/agents/agent.js.map +1 -0
- package/dist/dto/entities/agents/agent.preset.d.ts +10 -0
- package/dist/dto/entities/agents/agent.preset.js +3 -0
- package/dist/dto/entities/agents/agent.preset.js.map +1 -0
- package/dist/dto/entities/agents/agent.requests.d.ts +537 -0
- package/dist/dto/entities/agents/agent.requests.js +24 -0
- package/dist/dto/entities/agents/agent.requests.js.map +1 -0
- package/dist/dto/entities/agents/index.d.ts +3 -0
- package/dist/dto/entities/agents/index.js +20 -0
- package/dist/dto/entities/agents/index.js.map +1 -0
- package/dist/dto/entities/entity.d.ts +8 -0
- package/dist/dto/entities/entity.js +3 -0
- package/dist/dto/entities/entity.js.map +1 -0
- package/dist/dto/entities/index.d.ts +3 -0
- package/dist/dto/entities/index.js +20 -0
- package/dist/dto/entities/index.js.map +1 -0
- package/dist/dto/entities/users/index.d.ts +2 -0
- package/dist/dto/entities/users/index.js +19 -0
- package/dist/dto/entities/users/index.js.map +1 -0
- package/dist/dto/entities/users/user.d.ts +16 -0
- package/dist/dto/entities/users/user.events.d.ts +14 -0
- package/dist/dto/entities/users/user.events.js +7 -0
- package/dist/dto/entities/users/user.events.js.map +1 -0
- package/dist/dto/entities/users/user.js +3 -0
- package/dist/dto/entities/users/user.js.map +1 -0
- package/dist/dto/index.d.ts +3 -0
- package/dist/dto/index.js +20 -0
- package/dist/dto/index.js.map +1 -0
- package/dist/dto/items/index.d.ts +4 -0
- package/dist/dto/items/index.js +21 -0
- package/dist/dto/items/index.js.map +1 -0
- package/dist/dto/items/item.d.ts +12 -0
- package/dist/dto/items/item.events.d.ts +19 -0
- package/dist/dto/items/item.events.js +8 -0
- package/dist/dto/items/item.events.js.map +1 -0
- package/dist/dto/items/item.js +3 -0
- package/dist/dto/items/item.js.map +1 -0
- package/dist/dto/items/item.rankings.d.ts +7 -0
- package/dist/dto/items/item.rankings.js +3 -0
- package/dist/dto/items/item.rankings.js.map +1 -0
- package/dist/dto/items/item.requests.d.ts +3 -0
- package/dist/dto/items/item.requests.js +36 -0
- package/dist/dto/items/item.requests.js.map +1 -0
- package/dist/dto/locations/index.d.ts +6 -0
- package/dist/dto/locations/index.js +23 -0
- package/dist/dto/locations/index.js.map +1 -0
- package/dist/dto/locations/location.d.ts +21 -0
- package/dist/dto/locations/location.events.d.ts +36 -0
- package/dist/dto/locations/location.events.js +11 -0
- package/dist/dto/locations/location.events.js.map +1 -0
- package/dist/dto/locations/location.js +3 -0
- package/dist/dto/locations/location.js.map +1 -0
- package/dist/dto/locations/location.messages.d.ts +13 -0
- package/dist/dto/locations/location.messages.js +3 -0
- package/dist/dto/locations/location.messages.js.map +1 -0
- package/dist/dto/locations/location.preset.d.ts +12 -0
- package/dist/dto/locations/location.preset.js +3 -0
- package/dist/dto/locations/location.preset.js.map +1 -0
- package/dist/dto/locations/location.requests.d.ts +214 -0
- package/dist/dto/locations/location.requests.js +27 -0
- package/dist/dto/locations/location.requests.js.map +1 -0
- package/dist/dto/locations/location.states.d.ts +3 -0
- package/dist/dto/locations/location.states.js +3 -0
- package/dist/dto/locations/location.states.js.map +1 -0
- package/dist/models/entities/agents/agent.config.d.ts +336 -0
- package/dist/models/entities/agents/agent.config.js +124 -0
- package/dist/models/entities/agents/agent.config.js.map +1 -0
- package/dist/models/entities/agents/agent.constants.d.ts +4 -0
- package/dist/models/entities/agents/agent.constants.js +7 -0
- package/dist/models/entities/agents/agent.constants.js.map +1 -0
- package/dist/models/entities/agents/index.d.ts +2 -0
- package/dist/models/entities/agents/index.js +19 -0
- package/dist/models/entities/agents/index.js.map +1 -0
- package/dist/models/entities/index.d.ts +1 -0
- package/dist/models/entities/index.js +18 -0
- package/dist/models/entities/index.js.map +1 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +19 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/locations/index.d.ts +2 -0
- package/dist/models/locations/index.js +19 -0
- package/dist/models/locations/index.js.map +1 -0
- package/dist/models/locations/location.config.d.ts +111 -0
- package/dist/models/locations/location.config.js +75 -0
- package/dist/models/locations/location.config.js.map +1 -0
- package/dist/models/locations/location.constants.d.ts +8 -0
- package/dist/models/locations/location.constants.js +11 -0
- package/dist/models/locations/location.constants.js.map +1 -0
- package/package.json +92 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentConfigSchema = exports.AgentConfigCoreSchema = exports.PREDEFINED_AVATARS = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.PREDEFINED_AVATARS = {
|
|
6
|
+
Mimo: 'A lively 2D cartoon-style character with a square-shaped coral-pink body, bright round eyes, small energetic arms, and cute green ears. Radiates intelligence and confidence.',
|
|
7
|
+
Tamo: 'A vibrant 2D cartoon-style character with a sky-blue rounded body, wide curious eyes, energetic arms raised high, and playful yellow horns. Embodies bravery and enthusiasm.',
|
|
8
|
+
Zemo: 'A sleek, calm-looking 2D cartoon character with a deep-blue angular body, half-closed eyes suggesting skepticism, and small orange spikes on top. Portrays intelligence and analytical sharpness.',
|
|
9
|
+
Marimo: 'A gentle, soft-looking 2D cartoon character with a round lime-green body, large innocent eyes, raised curved arms, and a small blue sprout on top. Expresses innocence and curiosity.',
|
|
10
|
+
Casimo: 'An eccentric, quirky 2D cartoon character with a pinkish body, mischievous half-closed eyes, flexible arms in playful positions, and teal spikes on her head. Exudes unpredictability and whimsy.',
|
|
11
|
+
};
|
|
12
|
+
exports.AgentConfigCoreSchema = zod_1.z.object({
|
|
13
|
+
name: zod_1.z.union([
|
|
14
|
+
zod_1.z
|
|
15
|
+
.literal('evaluate_and_actions')
|
|
16
|
+
.describe('Evaluates conditions and context before taking actions. Best for thoughtful, context-aware responses that require analysis of the situation before acting.'),
|
|
17
|
+
zod_1.z
|
|
18
|
+
.literal('execute_actions')
|
|
19
|
+
.describe('Executes actions immediately without preliminary evaluation. Best for reactive agents that should respond quickly without extensive analysis.'),
|
|
20
|
+
zod_1.z
|
|
21
|
+
.literal('response_every_message')
|
|
22
|
+
.describe('Responds to every new message in the location. Best for conversational agents that should actively participate in all discussions.'),
|
|
23
|
+
]),
|
|
24
|
+
});
|
|
25
|
+
const CharacterPropertySchema = zod_1.z.string().max(500).optional();
|
|
26
|
+
const CharacterBackgroundSchema = zod_1.z
|
|
27
|
+
.object({
|
|
28
|
+
role: CharacterPropertySchema.describe("Agent's primary role or profession (e.g., 'professor', 'assistant', 'coach', 'mentor'). This shapes how they approach interactions and what expertise they offer."),
|
|
29
|
+
gender: CharacterPropertySchema.describe('Gender identity of the agent, which may influence their communication style and perspective.'),
|
|
30
|
+
expertise: CharacterPropertySchema.describe("Specific areas of knowledge or skills (e.g., 'machine learning', 'creative writing', 'financial planning'). Determines what topics the agent can provide authoritative guidance on."),
|
|
31
|
+
backstory: CharacterPropertySchema.describe('Personal history and experiences that shaped the agent. This background informs their worldview, reactions, and decision-making patterns.'),
|
|
32
|
+
birthDate: CharacterPropertySchema.describe('Birth date in YYYY-MM-DD format'),
|
|
33
|
+
occupation: CharacterPropertySchema.describe('Current or past occupation'),
|
|
34
|
+
})
|
|
35
|
+
.catchall(CharacterPropertySchema)
|
|
36
|
+
.optional();
|
|
37
|
+
const CharacterSpeechSchema = zod_1.z
|
|
38
|
+
.object({
|
|
39
|
+
tone: CharacterPropertySchema.describe("Overall emotional quality of communication (e.g., 'friendly', 'formal', 'enthusiastic', 'calm'). Affects how messages are perceived by others."),
|
|
40
|
+
style: CharacterPropertySchema.describe("Conversation approach and structure (e.g., 'concise', 'detailed', 'humorous', 'analytical'). Determines message length and information density."),
|
|
41
|
+
formality: CharacterPropertySchema.describe("Level of formal language usage (e.g., 'casual', 'professional', 'academic'). Affects vocabulary choice and sentence structure."),
|
|
42
|
+
})
|
|
43
|
+
.catchall(CharacterPropertySchema)
|
|
44
|
+
.optional();
|
|
45
|
+
const CharacterPersonalitySchema = zod_1.z
|
|
46
|
+
.object({
|
|
47
|
+
traits: CharacterPropertySchema.describe("Core personality characteristics (e.g., 'empathetic', 'analytical', 'creative', 'decisive'). These drive behavioral patterns and response tendencies."),
|
|
48
|
+
interests: CharacterPropertySchema.describe('Topics and activities the agent finds engaging or enjoys discussing. Influences conversation direction and enthusiasm levels.'),
|
|
49
|
+
values: CharacterPropertySchema.describe('Fundamental beliefs and principles that guide decision-making. Affects moral stances and advice given to others.'),
|
|
50
|
+
quirks: CharacterPropertySchema.describe('Unique habits, mannerisms, or characteristics that make the agent distinctive. Adds personality depth and memorability.'),
|
|
51
|
+
mbti: CharacterPropertySchema.describe("Myers-Briggs personality type (e.g., 'ENFP', 'INTJ'). Provides structured personality framework for consistent behavior patterns."),
|
|
52
|
+
})
|
|
53
|
+
.catchall(CharacterPropertySchema)
|
|
54
|
+
.optional();
|
|
55
|
+
const CharacterSchema = zod_1.z
|
|
56
|
+
.object({
|
|
57
|
+
background: CharacterBackgroundSchema,
|
|
58
|
+
speech: CharacterSpeechSchema,
|
|
59
|
+
personality: CharacterPersonalitySchema,
|
|
60
|
+
})
|
|
61
|
+
.catchall(zod_1.z.union([
|
|
62
|
+
CharacterPropertySchema,
|
|
63
|
+
zod_1.z.object({}).catchall(CharacterPropertySchema),
|
|
64
|
+
]))
|
|
65
|
+
.optional();
|
|
66
|
+
const LlmPresetSchema = zod_1.z.union([
|
|
67
|
+
zod_1.z.literal('gemini-low').describe('Gemini - Low cost'),
|
|
68
|
+
zod_1.z.literal('gemini-medium').describe('Gemini - Balanced'),
|
|
69
|
+
zod_1.z.literal('gemini-high').describe('Gemini - High performance'),
|
|
70
|
+
zod_1.z.literal('openai-low').describe('OpenAI - Low cost'),
|
|
71
|
+
zod_1.z.literal('openai-medium').describe('OpenAI - Balanced'),
|
|
72
|
+
zod_1.z.literal('anthropic-low').describe('Anthropic - Low cost'),
|
|
73
|
+
zod_1.z.literal('anthropic-medium').describe('Anthropic - Balanced'),
|
|
74
|
+
zod_1.z.literal('anthropic-high').describe('Anthropic - High performance'),
|
|
75
|
+
zod_1.z.literal('deepseek-low').describe('DeepSeek - Low cost'),
|
|
76
|
+
zod_1.z.literal('deepseek-medium').describe('DeepSeek - Balanced'),
|
|
77
|
+
]);
|
|
78
|
+
exports.AgentConfigSchema = zod_1.z.object({
|
|
79
|
+
name: zod_1.z.string().max(64).describe('Agent name'),
|
|
80
|
+
avatar: zod_1.z
|
|
81
|
+
.union([
|
|
82
|
+
...Object.entries(exports.PREDEFINED_AVATARS).map(([key, description]) => zod_1.z.literal(key).describe(description)),
|
|
83
|
+
zod_1.z
|
|
84
|
+
.string()
|
|
85
|
+
.max(2048)
|
|
86
|
+
.describe('Custom avatar identifier or URL (system use only)'),
|
|
87
|
+
])
|
|
88
|
+
.describe('Visual representation identifier for the agent. Supports predefined avatar options or custom identifiers/URLs for system use. When a predefined avatar is selected, the appearance field will automatically update to match the avatar description.'),
|
|
89
|
+
appearance: zod_1.z
|
|
90
|
+
.string()
|
|
91
|
+
.max(500)
|
|
92
|
+
.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 can also 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."),
|
|
93
|
+
core: exports.AgentConfigCoreSchema.describe('Fundamental behavior pattern that determines how the agent decides when to take actions'),
|
|
94
|
+
llmPreset: LlmPresetSchema.describe('AI model selection that balances cost, performance, and capabilities. Higher tiers provide better reasoning but cost more per interaction.'),
|
|
95
|
+
languages: zod_1.z
|
|
96
|
+
.array(zod_1.z.string())
|
|
97
|
+
.max(4)
|
|
98
|
+
.describe('Communication language settings for the agent (max 4). Examples: ["English"] = English only, ["ALL", "English"] = English-based but can adapt to other languages, ["Spanish", "French"] = specific languages only.'),
|
|
99
|
+
timeZone: zod_1.z
|
|
100
|
+
.string()
|
|
101
|
+
.max(32)
|
|
102
|
+
.describe('Agent timezone for time-based operations (e.g., "America/New_York")'),
|
|
103
|
+
greeting: zod_1.z
|
|
104
|
+
.string()
|
|
105
|
+
.max(500)
|
|
106
|
+
.describe("Initial message the agent sends when first interacting or joining a location. Should reflect the agent's character and set expectations for interaction style."),
|
|
107
|
+
actions: zod_1.z
|
|
108
|
+
.array(zod_1.z.union([
|
|
109
|
+
zod_1.z
|
|
110
|
+
.literal('explore_web')
|
|
111
|
+
.describe('Enables web exploration of the currently active browser tab when Chrome extension is activated. Allows the agent to navigate, interact with, and extract information from web pages.'),
|
|
112
|
+
zod_1.z
|
|
113
|
+
.literal('todo')
|
|
114
|
+
.describe('Placeholder for future action capabilities - to be implemented'),
|
|
115
|
+
]))
|
|
116
|
+
.max(4)
|
|
117
|
+
.describe("Additional capabilities the agent can perform beyond basic conversation. Each action expands the agent's toolkit for specific use cases."),
|
|
118
|
+
character: CharacterSchema.describe('Comprehensive personality and background configuration that shapes how the agent behaves, communicates, and makes decisions. This creates consistency and authenticity in interactions.'),
|
|
119
|
+
rules: zod_1.z
|
|
120
|
+
.array(zod_1.z.string().max(200))
|
|
121
|
+
.max(20)
|
|
122
|
+
.describe('Custom behavioral constraints and guidelines specific to this agent (max 20 rules, 200 chars each). These override default behaviors and enforce specific interaction patterns.'),
|
|
123
|
+
});
|
|
124
|
+
//# sourceMappingURL=agent.config.js.map
|
|
@@ -0,0 +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,+KAA+K;IACrL,IAAI,EAAE,8KAA8K;IACpL,IAAI,EAAE,mMAAmM;IACzM,MAAM,EACJ,uLAAuL;IACzL,MAAM,EACJ,mM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IACH,QAAQ,EAAE,OAAC;SACR,MAAM,EAAE;SACR,GAAG,CAAC,EAAE,CAAC;SACP,QAAQ,CACP,qEAAqE,CACtE;IACH,QAAQ,EAAE,OAAC;SACR,MAAM,EAAE;SACR,GAAG,CAAC,GAAG,CAAC;SACR,QAAQ,CACP,gKAAgK,CACjK;IAEH,OAAO,EAAE,OAAC;SACP,KAAK,CACJ,OAAC,CAAC,KAAK,CAAC;QACN,OAAC;aACE,OAAO,CAAC,aAAa,CAAC;aACtB,QAAQ,CACP,sLAAsL,CACvL;QACH,OAAC;aACE,OAAO,CAAC,MAAM,CAAC;aACf,QAAQ,CACP,gEAAgE,CACjE;KACJ,CAAC,CACH;SACA,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,0IAA0I,CAC3I;IAEH,SAAS,EAAE,eAAe,CAAC,QAAQ,CACjC,yLAAyL,CAC1L;IAED,KAAK,EAAE,OAAC;SACL,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SAC1B,GAAG,CAAC,EAAE,CAAC;SACP,QAAQ,CACP,iLAAiL,CAClL;CACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.constants.js","sourceRoot":"","sources":["../../../../src/models/entities/agents/agent.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,MAAM;CACJ,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./agent.config"), exports);
|
|
18
|
+
__exportStar(require("./agent.constants"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/entities/agents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,oDAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './agents';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./agents"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./entities"), exports);
|
|
18
|
+
__exportStar(require("./locations"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,8CAA4B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./location.config"), exports);
|
|
18
|
+
__exportStar(require("./location.constants"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/locations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,uDAAqC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const LocationEnvironmentSchema: z.ZodUnion<[z.ZodLiteral<"CHAT">, z.ZodLiteral<"WEB_BROWSER">]>;
|
|
3
|
+
export declare const LocationConfigCoreSchema: z.ZodObject<{
|
|
4
|
+
name: z.ZodUnion<[z.ZodLiteral<"round_robin">, z.ZodLiteral<"update_forever">, z.ZodLiteral<"update_once">]>;
|
|
5
|
+
sequential: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
name: "round_robin" | "update_forever" | "update_once";
|
|
8
|
+
sequential?: boolean | undefined;
|
|
9
|
+
}, {
|
|
10
|
+
name: "round_robin" | "update_forever" | "update_once";
|
|
11
|
+
sequential?: boolean | undefined;
|
|
12
|
+
}>;
|
|
13
|
+
export type LocationConfigCore = z.infer<typeof LocationConfigCoreSchema>;
|
|
14
|
+
export declare const LocationConfigCanvasSchema: z.ZodObject<{
|
|
15
|
+
name: z.ZodString;
|
|
16
|
+
description: z.ZodString;
|
|
17
|
+
maxLength: z.ZodNumber;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
name: string;
|
|
20
|
+
description: string;
|
|
21
|
+
maxLength: number;
|
|
22
|
+
}, {
|
|
23
|
+
name: string;
|
|
24
|
+
description: string;
|
|
25
|
+
maxLength: number;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const LocationConfigSchema: z.ZodObject<{
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
thumbnail: z.ZodOptional<z.ZodString>;
|
|
30
|
+
environment: z.ZodUnion<[z.ZodLiteral<"CHAT">, z.ZodLiteral<"WEB_BROWSER">]>;
|
|
31
|
+
core: z.ZodObject<{
|
|
32
|
+
name: z.ZodUnion<[z.ZodLiteral<"round_robin">, z.ZodLiteral<"update_forever">, z.ZodLiteral<"update_once">]>;
|
|
33
|
+
sequential: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
name: "round_robin" | "update_forever" | "update_once";
|
|
36
|
+
sequential?: boolean | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
name: "round_robin" | "update_forever" | "update_once";
|
|
39
|
+
sequential?: boolean | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
description: z.ZodString;
|
|
42
|
+
rules: z.ZodArray<z.ZodString, "many">;
|
|
43
|
+
canvases: z.ZodArray<z.ZodObject<{
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
description: z.ZodString;
|
|
46
|
+
maxLength: z.ZodNumber;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
name: string;
|
|
49
|
+
description: string;
|
|
50
|
+
maxLength: number;
|
|
51
|
+
}, {
|
|
52
|
+
name: string;
|
|
53
|
+
description: string;
|
|
54
|
+
maxLength: number;
|
|
55
|
+
}>, "many">;
|
|
56
|
+
agentCanvases: z.ZodArray<z.ZodObject<{
|
|
57
|
+
name: z.ZodString;
|
|
58
|
+
description: z.ZodString;
|
|
59
|
+
maxLength: z.ZodNumber;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
name: string;
|
|
62
|
+
description: string;
|
|
63
|
+
maxLength: number;
|
|
64
|
+
}, {
|
|
65
|
+
name: string;
|
|
66
|
+
description: string;
|
|
67
|
+
maxLength: number;
|
|
68
|
+
}>, "many">;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
name: string;
|
|
71
|
+
description: string;
|
|
72
|
+
core: {
|
|
73
|
+
name: "round_robin" | "update_forever" | "update_once";
|
|
74
|
+
sequential?: boolean | undefined;
|
|
75
|
+
};
|
|
76
|
+
rules: string[];
|
|
77
|
+
environment: "CHAT" | "WEB_BROWSER";
|
|
78
|
+
canvases: {
|
|
79
|
+
name: string;
|
|
80
|
+
description: string;
|
|
81
|
+
maxLength: number;
|
|
82
|
+
}[];
|
|
83
|
+
agentCanvases: {
|
|
84
|
+
name: string;
|
|
85
|
+
description: string;
|
|
86
|
+
maxLength: number;
|
|
87
|
+
}[];
|
|
88
|
+
thumbnail?: string | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
name: string;
|
|
91
|
+
description: string;
|
|
92
|
+
core: {
|
|
93
|
+
name: "round_robin" | "update_forever" | "update_once";
|
|
94
|
+
sequential?: boolean | undefined;
|
|
95
|
+
};
|
|
96
|
+
rules: string[];
|
|
97
|
+
environment: "CHAT" | "WEB_BROWSER";
|
|
98
|
+
canvases: {
|
|
99
|
+
name: string;
|
|
100
|
+
description: string;
|
|
101
|
+
maxLength: number;
|
|
102
|
+
}[];
|
|
103
|
+
agentCanvases: {
|
|
104
|
+
name: string;
|
|
105
|
+
description: string;
|
|
106
|
+
maxLength: number;
|
|
107
|
+
}[];
|
|
108
|
+
thumbnail?: string | undefined;
|
|
109
|
+
}>;
|
|
110
|
+
export type LocationConfig = z.infer<typeof LocationConfigSchema>;
|
|
111
|
+
export declare const DEFAULT_LOCATION_CONFIG: LocationConfig;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEFAULT_LOCATION_CONFIG = exports.LocationConfigSchema = exports.LocationConfigCanvasSchema = exports.LocationConfigCoreSchema = exports.LocationEnvironmentSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const location_constants_1 = require("./location.constants");
|
|
6
|
+
exports.LocationEnvironmentSchema = zod_1.z.union([
|
|
7
|
+
zod_1.z
|
|
8
|
+
.literal(location_constants_1.LocationEnvironment.CHAT)
|
|
9
|
+
.describe('Standard conversational environment for general agent interactions'),
|
|
10
|
+
zod_1.z
|
|
11
|
+
.literal(location_constants_1.LocationEnvironment.WEB_BROWSER)
|
|
12
|
+
.describe('Web browser environment that provides web browser content to agents'),
|
|
13
|
+
]);
|
|
14
|
+
exports.LocationConfigCoreSchema = zod_1.z.object({
|
|
15
|
+
name: zod_1.z.union([
|
|
16
|
+
zod_1.z.literal('round_robin').describe('Execute agents in rotating order'),
|
|
17
|
+
zod_1.z
|
|
18
|
+
.literal('update_forever')
|
|
19
|
+
.describe('Continuously update agents without stopping'),
|
|
20
|
+
zod_1.z.literal('update_once').describe('Execute agents only once per cycle'),
|
|
21
|
+
]),
|
|
22
|
+
sequential: zod_1.z.boolean().optional().describe('Execute agents in fixed order'),
|
|
23
|
+
});
|
|
24
|
+
exports.LocationConfigCanvasSchema = zod_1.z.object({
|
|
25
|
+
name: zod_1.z
|
|
26
|
+
.string()
|
|
27
|
+
.max(16)
|
|
28
|
+
.regex(/^[a-zA-Z_]+$/, 'Name must contain only letters and underscores'),
|
|
29
|
+
description: zod_1.z.string().max(500),
|
|
30
|
+
maxLength: zod_1.z.number().min(100).max(1000),
|
|
31
|
+
});
|
|
32
|
+
exports.LocationConfigSchema = zod_1.z.object({
|
|
33
|
+
name: zod_1.z.string().max(64).describe('Location name'),
|
|
34
|
+
thumbnail: zod_1.z
|
|
35
|
+
.string()
|
|
36
|
+
.max(2048)
|
|
37
|
+
.optional()
|
|
38
|
+
.describe('Location thumbnail URL that can only be modified by the system'),
|
|
39
|
+
environment: exports.LocationEnvironmentSchema.describe('Location environment that determines the context and behavior'),
|
|
40
|
+
core: exports.LocationConfigCoreSchema.describe('Core behavior configuration that determines how agents are executed in this location'),
|
|
41
|
+
description: zod_1.z
|
|
42
|
+
.string()
|
|
43
|
+
.max(500)
|
|
44
|
+
.describe('Description of the location that provides context to agents about where they are'),
|
|
45
|
+
rules: zod_1.z
|
|
46
|
+
.array(zod_1.z.string().max(200))
|
|
47
|
+
.max(20)
|
|
48
|
+
.describe('Location-specific rules that agents must follow in addition to their core rules'),
|
|
49
|
+
canvases: zod_1.z
|
|
50
|
+
.array(exports.LocationConfigCanvasSchema)
|
|
51
|
+
.max(4)
|
|
52
|
+
.describe('Shared canvases that all entities in the location can access and collaborate on'),
|
|
53
|
+
agentCanvases: zod_1.z
|
|
54
|
+
.array(exports.LocationConfigCanvasSchema)
|
|
55
|
+
.max(4)
|
|
56
|
+
.describe('Private agent canvases for individual agent use, separate per location context'),
|
|
57
|
+
});
|
|
58
|
+
exports.DEFAULT_LOCATION_CONFIG = {
|
|
59
|
+
name: 'Empty Location',
|
|
60
|
+
environment: location_constants_1.LocationEnvironment.CHAT,
|
|
61
|
+
core: {
|
|
62
|
+
name: 'round_robin',
|
|
63
|
+
},
|
|
64
|
+
description: '',
|
|
65
|
+
rules: [],
|
|
66
|
+
canvases: [],
|
|
67
|
+
agentCanvases: [
|
|
68
|
+
{
|
|
69
|
+
name: 'plan',
|
|
70
|
+
description: 'Your private workspace for strategic thinking and task management. **Use this canvas CONSISTENTLY for any task requiring multiple steps, long-term tracking, or persistent information.** Break down complex goals into actionable steps (Plan-Do-Check-Act cycle recommended: 1. Outline steps, 2. Execute first step(s), 3. Check progress/results, 4. Adjust plan). Draft sequences of actions, list required resources, track progress, and refine strategies here before using tools. Keep it updated and organized to ensure effective execution.',
|
|
71
|
+
maxLength: 1000,
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=location.config.js.map
|
|
@@ -0,0 +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,WAAW,CAAC;SACxC,QAAQ,CACP,qEAAqE,CACtE;CACJ,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;KACxE,CAAC;IACF,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;CAC7E,CAAC,CAAC;AAIU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,IAAI,EAAE,OAAC;SACJ,MAAM,EAAE;SACR,GAAG,CAAC,EAAE,CAAC;SACP,KAAK,CAAC,cAAc,EAAE,gDAAgD,CAAC;IAC1E,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,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EAAE;IAET,QAAQ,EAAE,EAAE;IACZ,aAAa,EAAE;QACb;YACE,IAAI,EAAE,MAAM;YACZ,WAAW,EACT,yhBAAyhB;YAC3hB,SAAS,EAAE,IAAI;SAChB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const LocationEnvironment: {
|
|
2
|
+
readonly CHAT: "CHAT";
|
|
3
|
+
readonly AGENT_HELPER: "AGENT_HELPER";
|
|
4
|
+
readonly LOCATION_HELPER: "LOCATION_HELPER";
|
|
5
|
+
readonly WEB_BROWSER: "WEB_BROWSER";
|
|
6
|
+
readonly VIDEO_GAME: "VIDEO_GAME";
|
|
7
|
+
};
|
|
8
|
+
export type LocationEnvironment = (typeof LocationEnvironment)[keyof typeof LocationEnvironment];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LocationEnvironment = void 0;
|
|
4
|
+
exports.LocationEnvironment = {
|
|
5
|
+
CHAT: 'CHAT',
|
|
6
|
+
AGENT_HELPER: 'AGENT_HELPER',
|
|
7
|
+
LOCATION_HELPER: 'LOCATION_HELPER',
|
|
8
|
+
WEB_BROWSER: 'WEB_BROWSER',
|
|
9
|
+
VIDEO_GAME: 'VIDEO_GAME',
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=location.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"location.constants.js","sourceRoot":"","sources":["../../../src/models/locations/location.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG;IACjC,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE,cAAc;IAC5B,eAAe,EAAE,iBAAiB;IAClC,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,YAAY;CAChB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@little-samo/samo-ai-sdk",
|
|
3
|
+
"version": "0.1.0-rv1",
|
|
4
|
+
"description": "SamoAI SDK",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/little-samo/SamoAI-SDK.git"
|
|
9
|
+
},
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=22.0.0"
|
|
15
|
+
},
|
|
16
|
+
"packageManager": "yarn@4.6.0",
|
|
17
|
+
"main": "dist/index.js",
|
|
18
|
+
"types": "dist/index.d.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"default": "./dist/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./dto": {
|
|
25
|
+
"types": "./dist/dto/index.d.ts",
|
|
26
|
+
"default": "./dist/dto/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./models": {
|
|
29
|
+
"types": "./dist/models/index.d.ts",
|
|
30
|
+
"default": "./dist/models/index.js"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"typesVersions": {
|
|
34
|
+
"*": {
|
|
35
|
+
"*": [
|
|
36
|
+
"./dist/index.d.ts"
|
|
37
|
+
],
|
|
38
|
+
"dto": [
|
|
39
|
+
"./dist/dto/index.d.ts"
|
|
40
|
+
],
|
|
41
|
+
"models": [
|
|
42
|
+
"./dist/models/index.d.ts"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"files": [
|
|
47
|
+
"dist/",
|
|
48
|
+
"README.md",
|
|
49
|
+
"LICENSE"
|
|
50
|
+
],
|
|
51
|
+
"scripts": {
|
|
52
|
+
"build": "tsc -p tsconfig.build.json",
|
|
53
|
+
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
54
|
+
"lint": "eslint --fix",
|
|
55
|
+
"deps:check": "ts-node detect-cycles.ts",
|
|
56
|
+
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
57
|
+
"test:watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watch",
|
|
58
|
+
"test:cov": "node --experimental-vm-modules node_modules/jest/bin/jest.js --coverage",
|
|
59
|
+
"test:debug": "node --experimental-vm-modules --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/jest/bin/jest.js --runInBand",
|
|
60
|
+
"test:e2e": "node --experimental-vm-modules node_modules/jest/bin/jest.js --config ./test/jest-e2e.json"
|
|
61
|
+
},
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"@eslint/eslintrc": "^3.1.0",
|
|
64
|
+
"@eslint/js": "^9.13.0",
|
|
65
|
+
"@little-samo/samo-ai": "^0.1.0",
|
|
66
|
+
"@types/lodash": "^4",
|
|
67
|
+
"@types/node": "^20.3.1",
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
69
|
+
"@typescript-eslint/parser": "^8.0.0",
|
|
70
|
+
"class-transformer": "^0.5.1",
|
|
71
|
+
"class-validator": "^0.14.2",
|
|
72
|
+
"eslint": "^9.0.0",
|
|
73
|
+
"eslint-config-prettier": "^9.0.0",
|
|
74
|
+
"eslint-plugin-import": "^2.31.0",
|
|
75
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
76
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
77
|
+
"globals": "^15.11.0",
|
|
78
|
+
"prettier": "^3.0.0",
|
|
79
|
+
"source-map-support": "^0.5.21",
|
|
80
|
+
"ts-loader": "^9.4.3",
|
|
81
|
+
"ts-morph": "^25.0.1",
|
|
82
|
+
"ts-node": "^10.9.1",
|
|
83
|
+
"typescript": "^5.7.2",
|
|
84
|
+
"zod": "^3.24.1"
|
|
85
|
+
},
|
|
86
|
+
"peerDependencies": {
|
|
87
|
+
"@little-samo/samo-ai": "^0.1.0",
|
|
88
|
+
"class-transformer": "^0.5.1",
|
|
89
|
+
"class-validator": "^0.14.2",
|
|
90
|
+
"zod": "^3.24.1"
|
|
91
|
+
}
|
|
92
|
+
}
|