@okrlinkhub/agent-factory 0.2.12 → 0.2.14

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.
@@ -6,9 +6,9 @@ export default defineSchema({
6
6
  agentKey: v.string(),
7
7
  providerUserId: v.optional(v.string()),
8
8
  version: v.string(),
9
- soulMd: v.string(),
9
+ soulMd: v.optional(v.string()),
10
10
  clientMd: v.optional(v.string()),
11
- skills: v.array(v.string()),
11
+ skills: v.optional(v.array(v.string())),
12
12
  secretsRef: v.array(v.string()),
13
13
  bridgeConfig: v.optional(
14
14
  v.object({
@@ -134,16 +134,23 @@ export default defineSchema({
134
134
 
135
135
  runtimeConfig: defineTable({
136
136
  key: v.string(),
137
- providerConfig: v.object({
138
- kind: v.union(v.literal("fly"), v.literal("runpod"), v.literal("ecs")),
139
- appName: v.string(),
140
- organizationSlug: v.string(),
141
- image: v.string(),
142
- region: v.string(),
143
- volumeName: v.string(),
144
- volumePath: v.string(),
145
- volumeSizeGb: v.number(),
146
- }),
137
+ providerConfig: v.optional(
138
+ v.object({
139
+ kind: v.union(v.literal("fly"), v.literal("runpod"), v.literal("ecs")),
140
+ appName: v.string(),
141
+ organizationSlug: v.string(),
142
+ image: v.string(),
143
+ region: v.string(),
144
+ volumeName: v.string(),
145
+ volumePath: v.string(),
146
+ volumeSizeGb: v.number(),
147
+ }),
148
+ ),
149
+ messageConfig: v.optional(
150
+ v.object({
151
+ systemPrompt: v.optional(v.string()),
152
+ }),
153
+ ),
147
154
  updatedAt: v.number(),
148
155
  }).index("by_key", ["key"]),
149
156
 
@@ -222,6 +229,51 @@ export default defineSchema({
222
229
  .index("by_consumerUserId_and_status", ["consumerUserId", "status"])
223
230
  .index("by_expiresAt", ["expiresAt"]),
224
231
 
232
+ globalSkills: defineTable({
233
+ slug: v.string(),
234
+ displayName: v.string(),
235
+ description: v.optional(v.string()),
236
+ status: v.union(v.literal("active"), v.literal("disabled")),
237
+ createdBy: v.string(),
238
+ updatedBy: v.string(),
239
+ createdAt: v.number(),
240
+ updatedAt: v.number(),
241
+ })
242
+ .index("by_slug", ["slug"])
243
+ .index("by_status", ["status"]),
244
+
245
+ globalSkillVersions: defineTable({
246
+ skillId: v.id("globalSkills"),
247
+ version: v.string(),
248
+ moduleFormat: v.union(v.literal("esm"), v.literal("cjs")),
249
+ entryPoint: v.string(),
250
+ sourceJs: v.string(),
251
+ sha256: v.string(),
252
+ createdBy: v.string(),
253
+ createdAt: v.number(),
254
+ })
255
+ .index("by_skillId_and_version", ["skillId", "version"])
256
+ .index("by_skillId_and_createdAt", ["skillId", "createdAt"]),
257
+
258
+ globalSkillReleases: defineTable({
259
+ skillId: v.id("globalSkills"),
260
+ versionId: v.id("globalSkillVersions"),
261
+ releaseChannel: v.union(v.literal("stable"), v.literal("canary")),
262
+ isActive: v.boolean(),
263
+ activatedBy: v.string(),
264
+ activatedAt: v.number(),
265
+ })
266
+ .index("by_skillId_and_releaseChannel_and_isActive", [
267
+ "skillId",
268
+ "releaseChannel",
269
+ "isActive",
270
+ ])
271
+ .index("by_releaseChannel_and_isActive_and_activatedAt", [
272
+ "releaseChannel",
273
+ "isActive",
274
+ "activatedAt",
275
+ ]),
276
+
225
277
  conversationHydrationCache: defineTable({
226
278
  conversationId: v.string(),
227
279
  agentKey: v.string(),