@little-samo/samo-ai-sdk 0.1.0 → 0.1.1-rv2

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.
Files changed (44) hide show
  1. package/README.md +11 -123
  2. package/dist/dto/entities/agents/agent.d.ts +4 -6
  3. package/dist/dto/entities/agents/agent.preset.d.ts +1 -1
  4. package/dist/dto/entities/agents/agent.requests.d.ts +18 -2
  5. package/dist/dto/entities/agents/agent.requests.js +14 -4
  6. package/dist/dto/entities/agents/agent.requests.js.map +1 -1
  7. package/dist/dto/entities/index.d.ts +0 -1
  8. package/dist/dto/entities/index.js +0 -1
  9. package/dist/dto/entities/index.js.map +1 -1
  10. package/dist/dto/entities/users/index.d.ts +1 -0
  11. package/dist/dto/entities/users/index.js +1 -0
  12. package/dist/dto/entities/users/index.js.map +1 -1
  13. package/dist/dto/entities/users/user.d.ts +0 -4
  14. package/dist/dto/entities/users/user.requests.d.ts +13 -0
  15. package/dist/dto/entities/users/user.requests.js +13 -0
  16. package/dist/dto/entities/users/user.requests.js.map +1 -0
  17. package/dist/dto/items/item.rankings.d.ts +3 -3
  18. package/dist/dto/locations/index.d.ts +1 -1
  19. package/dist/dto/locations/index.js +1 -1
  20. package/dist/dto/locations/index.js.map +1 -1
  21. package/dist/dto/locations/location.d.ts +18 -16
  22. package/dist/dto/locations/location.events.d.ts +17 -10
  23. package/dist/dto/locations/location.events.js +1 -0
  24. package/dist/dto/locations/location.events.js.map +1 -1
  25. package/dist/dto/locations/location.message.d.ts +13 -0
  26. package/dist/dto/locations/location.message.js +3 -0
  27. package/dist/dto/locations/location.message.js.map +1 -0
  28. package/dist/dto/locations/location.messages.d.ts +2 -1
  29. package/dist/dto/locations/location.messages.js +15 -0
  30. package/dist/dto/locations/location.messages.js.map +1 -1
  31. package/dist/dto/locations/location.preset.d.ts +1 -1
  32. package/dist/dto/locations/location.requests.d.ts +191 -21
  33. package/dist/dto/locations/location.requests.js +61 -11
  34. package/dist/dto/locations/location.requests.js.map +1 -1
  35. package/dist/index.d.ts +2 -0
  36. package/dist/index.js +19 -0
  37. package/dist/index.js.map +1 -0
  38. package/dist/models/locations/location.config.d.ts +47 -3
  39. package/dist/models/locations/location.config.js +38 -21
  40. package/dist/models/locations/location.config.js.map +1 -1
  41. package/dist/models/locations/location.constants.d.ts +8 -0
  42. package/dist/models/locations/location.constants.js +8 -1
  43. package/dist/models/locations/location.constants.js.map +1 -1
  44. package/package.json +3 -3
@@ -1,27 +1,145 @@
1
1
  import { z } from 'zod';
2
- import { LocationBasicDto } from './location';
3
- import { LocationMessageDto } from './location.messages';
2
+ import { LocationConfig } from '../../models/locations/location.config';
3
+ import { LocationListItemDto, LocationPrivateDto } from './location';
4
+ import { LocationMessageDto } from './location.message';
4
5
  import { LocationPresetDto } from './location.preset';
5
- export declare const LocationsPaginationQuerySchema: z.ZodObject<{
6
- page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
7
- limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
6
+ export declare const UserLocationsQuerySchema: z.ZodObject<{
7
+ cursor: z.ZodOptional<z.ZodString>;
8
+ limit: z.ZodDefault<z.ZodNumber>;
8
9
  }, "strip", z.ZodTypeAny, {
9
- page: number;
10
10
  limit: number;
11
+ cursor?: string | undefined;
11
12
  }, {
12
- page?: number | undefined;
13
13
  limit?: number | undefined;
14
+ cursor?: string | undefined;
14
15
  }>;
15
- export type LocationsPaginationQueryDto = z.infer<typeof LocationsPaginationQuerySchema>;
16
- export interface LocationsPaginatedResponseDto {
17
- data: LocationBasicDto[];
16
+ export type UserLocationsQueryDto = z.infer<typeof UserLocationsQuerySchema>;
17
+ export interface UserLocationsResponseDto {
18
+ locations: LocationListItemDto[];
18
19
  meta: {
19
20
  total: number;
20
- page: number;
21
- limit: number;
22
- totalPages: number;
21
+ nextCursor?: string;
23
22
  };
24
23
  }
24
+ export declare const GetLocationParamsSchema: z.ZodObject<{
25
+ locationId: z.ZodEffects<z.ZodString, bigint, string>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ locationId: bigint;
28
+ }, {
29
+ locationId: string;
30
+ }>;
31
+ export type GetLocationParamsDto = z.infer<typeof GetLocationParamsSchema>;
32
+ export interface GetLocationResponseDto {
33
+ location: LocationListItemDto;
34
+ }
35
+ export declare const GetLocationPrivateParamsSchema: z.ZodObject<{
36
+ locationId: z.ZodEffects<z.ZodString, bigint, string>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ locationId: bigint;
39
+ }, {
40
+ locationId: string;
41
+ }>;
42
+ export type GetLocationPrivateParamsDto = z.infer<typeof GetLocationPrivateParamsSchema>;
43
+ export interface GetLocationPrivateResponseDto {
44
+ location: LocationPrivateDto;
45
+ }
46
+ export declare const MarkLocationAsReadParamsSchema: z.ZodObject<{
47
+ locationId: z.ZodEffects<z.ZodString, bigint, string>;
48
+ }, "strip", z.ZodTypeAny, {
49
+ locationId: bigint;
50
+ }, {
51
+ locationId: string;
52
+ }>;
53
+ export type MarkLocationAsReadParamsDto = z.infer<typeof MarkLocationAsReadParamsSchema>;
54
+ export declare const LocationUnreadCountParamsSchema: z.ZodObject<{
55
+ locationId: z.ZodEffects<z.ZodString, bigint, string>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ locationId: bigint;
58
+ }, {
59
+ locationId: string;
60
+ }>;
61
+ export type LocationUnreadCountParamsDto = z.infer<typeof LocationUnreadCountParamsSchema>;
62
+ export interface LocationUnreadCountResponseDto {
63
+ unreadCount: number;
64
+ }
65
+ export declare const LocationsUnreadCountQuerySchema: z.ZodObject<{
66
+ locationIds: z.ZodEffects<z.ZodEffects<z.ZodString, bigint[], string>, bigint[], string>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ locationIds: bigint[];
69
+ }, {
70
+ locationIds: string;
71
+ }>;
72
+ export type LocationsUnreadCountQueryDto = z.infer<typeof LocationsUnreadCountQuerySchema>;
73
+ export interface LocationUnreadCountItemDto {
74
+ locationId: bigint;
75
+ unreadCount: number;
76
+ lastMessage: LocationMessageDto | null;
77
+ }
78
+ export interface LocationsUnreadCountResponseDto {
79
+ data: LocationUnreadCountItemDto[];
80
+ }
81
+ export declare const JoinAgentToLocationParamsSchema: z.ZodObject<{
82
+ locationId: z.ZodEffects<z.ZodString, bigint, string>;
83
+ }, "strip", z.ZodTypeAny, {
84
+ locationId: bigint;
85
+ }, {
86
+ locationId: string;
87
+ }>;
88
+ export type JoinAgentToLocationParamsDto = z.infer<typeof JoinAgentToLocationParamsSchema>;
89
+ export declare const JoinAgentToLocationBodySchema: z.ZodObject<{
90
+ agentId: z.ZodBigInt;
91
+ }, "strip", z.ZodTypeAny, {
92
+ agentId: bigint;
93
+ }, {
94
+ agentId: bigint;
95
+ }>;
96
+ export type JoinAgentToLocationBodyDto = z.infer<typeof JoinAgentToLocationBodySchema>;
97
+ export interface JoinAgentToLocationResponseDto {
98
+ agentAdded: boolean;
99
+ message?: string;
100
+ }
101
+ export declare const JoinAgentToLocationToolSchema: z.ZodObject<{
102
+ locationId: z.ZodBigInt;
103
+ agentId: z.ZodBigInt;
104
+ }, "strip", z.ZodTypeAny, {
105
+ agentId: bigint;
106
+ locationId: bigint;
107
+ }, {
108
+ agentId: bigint;
109
+ locationId: bigint;
110
+ }>;
111
+ export type JoinAgentToLocationToolDto = z.infer<typeof JoinAgentToLocationToolSchema>;
112
+ export declare const RemoveAgentFromLocationParamsSchema: z.ZodObject<{
113
+ locationId: z.ZodEffects<z.ZodString, bigint, string>;
114
+ }, "strip", z.ZodTypeAny, {
115
+ locationId: bigint;
116
+ }, {
117
+ locationId: string;
118
+ }>;
119
+ export type RemoveAgentFromLocationParamsDto = z.infer<typeof RemoveAgentFromLocationParamsSchema>;
120
+ export declare const RemoveAgentFromLocationBodySchema: z.ZodObject<{
121
+ agentId: z.ZodBigInt;
122
+ }, "strip", z.ZodTypeAny, {
123
+ agentId: bigint;
124
+ }, {
125
+ agentId: bigint;
126
+ }>;
127
+ export type RemoveAgentFromLocationBodyDto = z.infer<typeof RemoveAgentFromLocationBodySchema>;
128
+ export interface RemoveAgentFromLocationResponseDto {
129
+ agentRemoved: boolean;
130
+ message?: string;
131
+ }
132
+ export declare const RemoveAgentFromLocationToolSchema: z.ZodObject<{
133
+ locationId: z.ZodBigInt;
134
+ agentId: z.ZodBigInt;
135
+ }, "strip", z.ZodTypeAny, {
136
+ agentId: bigint;
137
+ locationId: bigint;
138
+ }, {
139
+ agentId: bigint;
140
+ locationId: bigint;
141
+ }>;
142
+ export type RemoveAgentFromLocationToolDto = z.infer<typeof RemoveAgentFromLocationToolSchema>;
25
143
  export interface LocationMessagesResponseDto {
26
144
  messages: LocationMessageDto[];
27
145
  cursor?: string;
@@ -55,7 +173,7 @@ export declare const CreateLocationFromPresetSchema: z.ZodObject<{
55
173
  }>;
56
174
  export type CreateLocationFromPresetDto = z.infer<typeof CreateLocationFromPresetSchema>;
57
175
  export interface CreateLocationFromPresetResponseDto {
58
- location: LocationBasicDto;
176
+ location: LocationPrivateDto;
59
177
  }
60
178
  export declare const LocationUpdateConfigSchema: z.ZodObject<{
61
179
  locationId: z.ZodBigInt;
@@ -101,7 +219,23 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
101
219
  description: string;
102
220
  maxLength: number;
103
221
  }>, "many">>;
104
- }, "strip", z.ZodTypeAny, {
222
+ gimmicks: z.ZodOptional<z.ZodArray<z.ZodObject<{
223
+ core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">]>;
224
+ name: z.ZodString;
225
+ description: z.ZodString;
226
+ appearance: z.ZodString;
227
+ }, "strip", z.ZodTypeAny, {
228
+ name: string;
229
+ description: string;
230
+ appearance: string;
231
+ core: "web_search" | "x_twitter";
232
+ }, {
233
+ name: string;
234
+ description: string;
235
+ appearance: string;
236
+ core: "web_search" | "x_twitter";
237
+ }>, "many">>;
238
+ }, "strict", z.ZodTypeAny, {
105
239
  name?: string | undefined;
106
240
  description?: string | undefined;
107
241
  core?: {
@@ -121,6 +255,12 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
121
255
  description: string;
122
256
  maxLength: number;
123
257
  }[] | undefined;
258
+ gimmicks?: {
259
+ name: string;
260
+ description: string;
261
+ appearance: string;
262
+ core: "web_search" | "x_twitter";
263
+ }[] | undefined;
124
264
  }, {
125
265
  name?: string | undefined;
126
266
  description?: string | undefined;
@@ -141,6 +281,12 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
141
281
  description: string;
142
282
  maxLength: number;
143
283
  }[] | undefined;
284
+ gimmicks?: {
285
+ name: string;
286
+ description: string;
287
+ appearance: string;
288
+ core: "web_search" | "x_twitter";
289
+ }[] | undefined;
144
290
  }>;
145
291
  }, "strip", z.ZodTypeAny, {
146
292
  config: {
@@ -163,6 +309,12 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
163
309
  description: string;
164
310
  maxLength: number;
165
311
  }[] | undefined;
312
+ gimmicks?: {
313
+ name: string;
314
+ description: string;
315
+ appearance: string;
316
+ core: "web_search" | "x_twitter";
317
+ }[] | undefined;
166
318
  };
167
319
  locationId: bigint;
168
320
  }, {
@@ -186,29 +338,47 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
186
338
  description: string;
187
339
  maxLength: number;
188
340
  }[] | undefined;
341
+ gimmicks?: {
342
+ name: string;
343
+ description: string;
344
+ appearance: string;
345
+ core: "web_search" | "x_twitter";
346
+ }[] | undefined;
189
347
  };
190
348
  locationId: bigint;
191
349
  }>;
192
350
  export type LocationUpdateConfigDto = z.infer<typeof LocationUpdateConfigSchema>;
193
- export declare const GetAgentHelperLocationSchema: z.ZodObject<{
351
+ export type LocationUpdateConfigResponseDto = Partial<LocationConfig>;
352
+ export declare const GetAgentHelperLocationQuerySchema: z.ZodObject<{
194
353
  agentId: z.ZodBigInt;
195
354
  }, "strip", z.ZodTypeAny, {
196
355
  agentId: bigint;
197
356
  }, {
198
357
  agentId: bigint;
199
358
  }>;
200
- export type GetAgentHelperLocationDto = z.infer<typeof GetAgentHelperLocationSchema>;
359
+ export type GetAgentHelperLocationDto = z.infer<typeof GetAgentHelperLocationQuerySchema>;
201
360
  export interface GetAgentHelperLocationResponseDto {
202
- location: LocationBasicDto;
361
+ location: LocationPrivateDto;
203
362
  }
204
- export declare const GetLocationHelperLocationSchema: z.ZodObject<{
363
+ export declare const GetLocationHelperLocationQuerySchema: z.ZodObject<{
205
364
  locationId: z.ZodBigInt;
206
365
  }, "strip", z.ZodTypeAny, {
207
366
  locationId: bigint;
208
367
  }, {
209
368
  locationId: bigint;
210
369
  }>;
211
- export type GetLocationHelperLocationDto = z.infer<typeof GetLocationHelperLocationSchema>;
370
+ export type GetLocationHelperLocationDto = z.infer<typeof GetLocationHelperLocationQuerySchema>;
212
371
  export interface GetLocationHelperLocationResponseDto {
213
- location: LocationBasicDto;
372
+ location: LocationPrivateDto;
373
+ }
374
+ export declare const GetAgentDmLocationQuerySchema: z.ZodObject<{
375
+ agentId: z.ZodBigInt;
376
+ }, "strip", z.ZodTypeAny, {
377
+ agentId: bigint;
378
+ }, {
379
+ agentId: bigint;
380
+ }>;
381
+ export type GetAgentDmLocationDto = z.infer<typeof GetAgentDmLocationQuerySchema>;
382
+ export interface GetAgentDmLocationResponseDto {
383
+ location: LocationPrivateDto;
214
384
  }
@@ -1,27 +1,77 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetLocationHelperLocationSchema = exports.GetAgentHelperLocationSchema = exports.LocationUpdateConfigSchema = exports.CreateLocationFromPresetSchema = exports.LocationPresetsPaginationQuerySchema = exports.LocationsPaginationQuerySchema = void 0;
3
+ exports.GetAgentDmLocationQuerySchema = exports.GetLocationHelperLocationQuerySchema = exports.GetAgentHelperLocationQuerySchema = exports.LocationUpdateConfigSchema = exports.CreateLocationFromPresetSchema = exports.LocationPresetsPaginationQuerySchema = exports.RemoveAgentFromLocationToolSchema = exports.RemoveAgentFromLocationBodySchema = exports.RemoveAgentFromLocationParamsSchema = exports.JoinAgentToLocationToolSchema = exports.JoinAgentToLocationBodySchema = exports.JoinAgentToLocationParamsSchema = exports.LocationsUnreadCountQuerySchema = exports.LocationUnreadCountParamsSchema = exports.MarkLocationAsReadParamsSchema = exports.GetLocationPrivateParamsSchema = exports.GetLocationParamsSchema = exports.UserLocationsQuerySchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const location_config_1 = require("../../models/locations/location.config");
6
- exports.LocationsPaginationQuerySchema = zod_1.z.object({
7
- page: zod_1.z.coerce.number().int().min(1).optional().default(1),
8
- limit: zod_1.z.coerce.number().int().min(1).max(100).optional().default(10),
6
+ exports.UserLocationsQuerySchema = zod_1.z.object({
7
+ cursor: zod_1.z.string().optional().describe('Pagination cursor for next page'),
8
+ limit: zod_1.z.coerce
9
+ .number()
10
+ .min(1)
11
+ .max(10)
12
+ .default(10)
13
+ .describe('Number of locations to return'),
14
+ });
15
+ exports.GetLocationParamsSchema = zod_1.z.object({
16
+ locationId: zod_1.z.string().transform((val) => BigInt(val)),
17
+ });
18
+ exports.GetLocationPrivateParamsSchema = zod_1.z.object({
19
+ locationId: zod_1.z.string().transform((val) => BigInt(val)),
20
+ });
21
+ exports.MarkLocationAsReadParamsSchema = zod_1.z.object({
22
+ locationId: zod_1.z.string().transform((val) => BigInt(val)),
23
+ });
24
+ exports.LocationUnreadCountParamsSchema = zod_1.z.object({
25
+ locationId: zod_1.z.string().transform((val) => BigInt(val)),
26
+ });
27
+ exports.LocationsUnreadCountQuerySchema = zod_1.z.object({
28
+ locationIds: zod_1.z
29
+ .string()
30
+ .transform((val) => val.split(',').map((id) => BigInt(id.trim())))
31
+ .refine((arr) => arr.length > 0 && arr.length <= 10, {
32
+ message: 'locationIds must contain 1-10 location IDs',
33
+ }),
34
+ });
35
+ exports.JoinAgentToLocationParamsSchema = zod_1.z.object({
36
+ locationId: zod_1.z.string().transform((val) => BigInt(val)),
37
+ });
38
+ exports.JoinAgentToLocationBodySchema = zod_1.z.object({
39
+ agentId: zod_1.z.coerce.bigint(),
40
+ });
41
+ exports.JoinAgentToLocationToolSchema = zod_1.z.object({
42
+ locationId: zod_1.z.coerce.bigint(),
43
+ agentId: zod_1.z.coerce.bigint(),
44
+ });
45
+ exports.RemoveAgentFromLocationParamsSchema = zod_1.z.object({
46
+ locationId: zod_1.z.string().transform((val) => BigInt(val)),
47
+ });
48
+ exports.RemoveAgentFromLocationBodySchema = zod_1.z.object({
49
+ agentId: zod_1.z.coerce.bigint(),
50
+ });
51
+ exports.RemoveAgentFromLocationToolSchema = zod_1.z.object({
52
+ locationId: zod_1.z.coerce.bigint(),
53
+ agentId: zod_1.z.coerce.bigint(),
9
54
  });
10
55
  exports.LocationPresetsPaginationQuerySchema = zod_1.z.object({
11
56
  page: zod_1.z.coerce.number().int().min(1).optional().default(1),
12
57
  limit: zod_1.z.coerce.number().int().min(1).max(100).optional().default(20),
13
58
  });
14
59
  exports.CreateLocationFromPresetSchema = zod_1.z.object({
15
- presetId: zod_1.z.bigint(),
60
+ presetId: zod_1.z.coerce.bigint(),
16
61
  });
17
62
  exports.LocationUpdateConfigSchema = zod_1.z.object({
18
- locationId: zod_1.z.bigint(),
19
- config: location_config_1.LocationConfigSchema.partial(),
63
+ locationId: zod_1.z.coerce.bigint().describe('ID of the location to update'),
64
+ config: location_config_1.LocationConfigSchema.partial()
65
+ .strict()
66
+ .describe('Only the specific configuration fields that need to be updated (name, environment, core, description, etc.)'),
67
+ });
68
+ exports.GetAgentHelperLocationQuerySchema = zod_1.z.object({
69
+ agentId: zod_1.z.coerce.bigint(),
20
70
  });
21
- exports.GetAgentHelperLocationSchema = zod_1.z.object({
22
- agentId: zod_1.z.bigint(),
71
+ exports.GetLocationHelperLocationQuerySchema = zod_1.z.object({
72
+ locationId: zod_1.z.coerce.bigint(),
23
73
  });
24
- exports.GetLocationHelperLocationSchema = zod_1.z.object({
25
- locationId: zod_1.z.bigint(),
74
+ exports.GetAgentDmLocationQuerySchema = zod_1.z.object({
75
+ agentId: zod_1.z.coerce.bigint(),
26
76
  });
27
77
  //# sourceMappingURL=location.requests.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"location.requests.js","sourceRoot":"","sources":["../../../src/dto/locations/location.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,4EAA8E;AAMjE,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1D,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;CACtE,CAAC,CAAC;AAqBU,QAAA,oCAAoC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3D,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1D,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;CACtE,CAAC,CAAC;AAgBU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAC;AAUU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,MAAM,EAAE,sCAAoB,CAAC,OAAO,EAAE;CACvC,CAAC,CAAC;AAMU,QAAA,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AAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AAUU,QAAA,oCAAoC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3D,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC9B,CAAC,CAAC;AAUU,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './dto';
2
+ export * from './models';
package/dist/index.js ADDED
@@ -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("./dto"), exports);
18
+ __exportStar(require("./models"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,2CAAyB"}
@@ -24,6 +24,23 @@ export declare const LocationConfigCanvasSchema: z.ZodObject<{
24
24
  description: string;
25
25
  maxLength: number;
26
26
  }>;
27
+ export declare const LocationConfigGimmickSchema: z.ZodObject<{
28
+ core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">]>;
29
+ name: z.ZodString;
30
+ description: z.ZodString;
31
+ appearance: z.ZodString;
32
+ }, "strip", z.ZodTypeAny, {
33
+ name: string;
34
+ description: string;
35
+ core: "web_search" | "x_twitter";
36
+ appearance: string;
37
+ }, {
38
+ name: string;
39
+ description: string;
40
+ core: "web_search" | "x_twitter";
41
+ appearance: string;
42
+ }>;
43
+ export type LocationConfigGimmick = z.infer<typeof LocationConfigGimmickSchema>;
27
44
  export declare const LocationConfigSchema: z.ZodObject<{
28
45
  name: z.ZodString;
29
46
  thumbnail: z.ZodOptional<z.ZodString>;
@@ -66,6 +83,22 @@ export declare const LocationConfigSchema: z.ZodObject<{
66
83
  description: string;
67
84
  maxLength: number;
68
85
  }>, "many">;
86
+ gimmicks: z.ZodArray<z.ZodObject<{
87
+ core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">]>;
88
+ name: z.ZodString;
89
+ description: z.ZodString;
90
+ appearance: z.ZodString;
91
+ }, "strip", z.ZodTypeAny, {
92
+ name: string;
93
+ description: string;
94
+ core: "web_search" | "x_twitter";
95
+ appearance: string;
96
+ }, {
97
+ name: string;
98
+ description: string;
99
+ core: "web_search" | "x_twitter";
100
+ appearance: string;
101
+ }>, "many">;
69
102
  }, "strip", z.ZodTypeAny, {
70
103
  name: string;
71
104
  description: string;
@@ -73,8 +106,8 @@ export declare const LocationConfigSchema: z.ZodObject<{
73
106
  name: "round_robin" | "update_forever" | "update_once";
74
107
  sequential?: boolean | undefined;
75
108
  };
76
- rules: string[];
77
109
  environment: "CHAT" | "WEB_BROWSER";
110
+ rules: string[];
78
111
  canvases: {
79
112
  name: string;
80
113
  description: string;
@@ -85,6 +118,12 @@ export declare const LocationConfigSchema: z.ZodObject<{
85
118
  description: string;
86
119
  maxLength: number;
87
120
  }[];
121
+ gimmicks: {
122
+ name: string;
123
+ description: string;
124
+ core: "web_search" | "x_twitter";
125
+ appearance: string;
126
+ }[];
88
127
  thumbnail?: string | undefined;
89
128
  }, {
90
129
  name: string;
@@ -93,8 +132,8 @@ export declare const LocationConfigSchema: z.ZodObject<{
93
132
  name: "round_robin" | "update_forever" | "update_once";
94
133
  sequential?: boolean | undefined;
95
134
  };
96
- rules: string[];
97
135
  environment: "CHAT" | "WEB_BROWSER";
136
+ rules: string[];
98
137
  canvases: {
99
138
  name: string;
100
139
  description: string;
@@ -105,7 +144,12 @@ export declare const LocationConfigSchema: z.ZodObject<{
105
144
  description: string;
106
145
  maxLength: number;
107
146
  }[];
147
+ gimmicks: {
148
+ name: string;
149
+ description: string;
150
+ core: "web_search" | "x_twitter";
151
+ appearance: string;
152
+ }[];
108
153
  thumbnail?: string | undefined;
109
154
  }>;
110
155
  export type LocationConfig = z.infer<typeof LocationConfigSchema>;
111
- export declare const DEFAULT_LOCATION_CONFIG: LocationConfig;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DEFAULT_LOCATION_CONFIG = exports.LocationConfigSchema = exports.LocationConfigCanvasSchema = exports.LocationConfigCoreSchema = exports.LocationEnvironmentSchema = void 0;
3
+ exports.LocationConfigSchema = exports.LocationConfigGimmickSchema = exports.LocationConfigCanvasSchema = exports.LocationConfigCoreSchema = exports.LocationEnvironmentSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const location_constants_1 = require("./location.constants");
6
6
  exports.LocationEnvironmentSchema = zod_1.z.union([
@@ -25,9 +25,39 @@ exports.LocationConfigCanvasSchema = zod_1.z.object({
25
25
  name: zod_1.z
26
26
  .string()
27
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),
28
+ .regex(/^[a-zA-Z_]+$/, 'Name must contain only letters and underscores')
29
+ .describe('Unique identifier for the canvas that agents use to reference it'),
30
+ description: zod_1.z
31
+ .string()
32
+ .max(500)
33
+ .describe('Clear explanation of the canvas purpose and intended use for agents'),
34
+ maxLength: zod_1.z
35
+ .number()
36
+ .min(100)
37
+ .max(1000)
38
+ .describe('Maximum character limit for canvas content'),
39
+ });
40
+ exports.LocationConfigGimmickSchema = zod_1.z.object({
41
+ core: zod_1.z.union([
42
+ zod_1.z
43
+ .literal('web_search')
44
+ .describe('Searches the web for up-to-date or missing information using an LLM, providing both a summary and detailed results. Execution takes approximately 30 seconds'),
45
+ zod_1.z
46
+ .literal('x_twitter')
47
+ .describe('Interacts with X (Twitter) platform for social media operations and content management'),
48
+ ]),
49
+ name: zod_1.z
50
+ .string()
51
+ .max(64)
52
+ .describe('Name of the gimmick that agents can reference'),
53
+ description: zod_1.z
54
+ .string()
55
+ .max(500)
56
+ .describe('Clear description of what the gimmick does, its purpose, and expected execution time for agents to understand'),
57
+ appearance: zod_1.z
58
+ .string()
59
+ .max(500)
60
+ .describe('How the gimmick appears to agents and users in the location context'),
31
61
  });
32
62
  exports.LocationConfigSchema = zod_1.z.object({
33
63
  name: zod_1.z.string().max(64).describe('Location name'),
@@ -54,22 +84,9 @@ exports.LocationConfigSchema = zod_1.z.object({
54
84
  .array(exports.LocationConfigCanvasSchema)
55
85
  .max(4)
56
86
  .describe('Private agent canvases for individual agent use, separate per location context'),
87
+ gimmicks: zod_1.z
88
+ .array(exports.LocationConfigGimmickSchema)
89
+ .max(4)
90
+ .describe('Interactive tools that agents can execute to perform specific tasks (e.g., web search, social media).'),
57
91
  });
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
92
  //# sourceMappingURL=location.config.js.map
@@ -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,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,CAAC,GAAG,CAAC;IAChC,SAAS,EAAE,OAAC,CAA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E;QACb;YACE,IAAI,EAAE,MAAM;YACZ,WAAW,EACT,yhBAAyhB;YAC3hB,SAAS,EAAE,IAAI;SAChB;KACF;CACF,CAAC"}
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;SACvE,QAAQ,CACP,kEAAkE,CACnE;IACH,WAAW,EAAE,OAAC;SACX,MAAM,EAAE;SACR,GAAG,CAAC,GAAG,CAAC;SACR,QAAQ,CACP,qEAAqE,CACtE;IACH,SAAS,EAAE,OAAC;SACT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C,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SAC1B,GAAG,CAAC,EAAE,CAAC;SACP,QAAQ,CACP,iFAAiF,CAClF;IAEH,QAAQ,EAAE,OAAC;SACR,KAAK,CAAC,kCAA0B,CAAC;SACjC,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,iFAAiF,CAClF;IACH,aAAa,EAAE,OAAC;SACb,KAAK,CAAC,kCAA0B,CAAC;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"}
@@ -1,7 +1,15 @@
1
+ export declare const LocationType: {
2
+ readonly PRIVATE: "PRIVATE";
3
+ readonly GROUP: "GROUP";
4
+ readonly PUBLIC: "PUBLIC";
5
+ readonly SYSTEM: "SYSTEM";
6
+ };
7
+ export type LocationType = (typeof LocationType)[keyof typeof LocationType];
1
8
  export declare const LocationEnvironment: {
2
9
  readonly CHAT: "CHAT";
3
10
  readonly AGENT_HELPER: "AGENT_HELPER";
4
11
  readonly LOCATION_HELPER: "LOCATION_HELPER";
12
+ readonly AGENT_DM: "AGENT_DM";
5
13
  readonly WEB_BROWSER: "WEB_BROWSER";
6
14
  readonly VIDEO_GAME: "VIDEO_GAME";
7
15
  };
@@ -1,10 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LocationEnvironment = void 0;
3
+ exports.LocationEnvironment = exports.LocationType = void 0;
4
+ exports.LocationType = {
5
+ PRIVATE: 'PRIVATE',
6
+ GROUP: 'GROUP',
7
+ PUBLIC: 'PUBLIC',
8
+ SYSTEM: 'SYSTEM',
9
+ };
4
10
  exports.LocationEnvironment = {
5
11
  CHAT: 'CHAT',
6
12
  AGENT_HELPER: 'AGENT_HELPER',
7
13
  LOCATION_HELPER: 'LOCATION_HELPER',
14
+ AGENT_DM: 'AGENT_DM',
8
15
  WEB_BROWSER: 'WEB_BROWSER',
9
16
  VIDEO_GAME: 'VIDEO_GAME',
10
17
  };
@@ -1 +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"}
1
+ {"version":3,"file":"location.constants.js","sourceRoot":"","sources":["../../../src/models/locations/location.constants.ts"],"names":[],"mappings":";;;AAAa,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,YAAY,EAAE,cAAc;IAC5B,eAAe,EAAE,iBAAiB;IAClC,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,YAAY;CAChB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@little-samo/samo-ai-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1-rv2",
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.0",
65
+ "@little-samo/samo-ai": "^0.1.1-rv2",
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.0",
87
+ "@little-samo/samo-ai": "^0.1.1-rv2",
88
88
  "class-transformer": "^0.5.1",
89
89
  "class-validator": "^0.14.2",
90
90
  "zod": "^3.24.1"