@okrlinkhub/agent-factory 3.0.2 → 3.1.0
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/README.md +235 -31
- package/dist/client/bridge.d.ts +1 -0
- package/dist/client/bridge.d.ts.map +1 -1
- package/dist/client/bridge.js.map +1 -1
- package/dist/client/index.d.ts +29 -3
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +59 -3
- package/dist/client/index.js.map +1 -1
- package/dist/component/_generated/api.d.ts +2 -0
- package/dist/component/_generated/api.d.ts.map +1 -1
- package/dist/component/_generated/api.js.map +1 -1
- package/dist/component/_generated/component.d.ts +140 -2
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/flyCleanup.d.ts +32 -0
- package/dist/component/flyCleanup.d.ts.map +1 -0
- package/dist/component/flyCleanup.js +272 -0
- package/dist/component/flyCleanup.js.map +1 -0
- package/dist/component/identity.d.ts +60 -2
- package/dist/component/identity.d.ts.map +1 -1
- package/dist/component/identity.js +372 -32
- package/dist/component/identity.js.map +1 -1
- package/dist/component/lib.d.ts +2 -1
- package/dist/component/lib.d.ts.map +1 -1
- package/dist/component/lib.js +2 -1
- package/dist/component/lib.js.map +1 -1
- package/dist/component/providers/fly.d.ts +23 -2
- package/dist/component/providers/fly.d.ts.map +1 -1
- package/dist/component/providers/fly.js +15 -3
- package/dist/component/providers/fly.js.map +1 -1
- package/dist/component/pushing.d.ts +4 -4
- package/dist/component/queue.d.ts +12 -7
- package/dist/component/queue.d.ts.map +1 -1
- package/dist/component/queue.js +9 -0
- package/dist/component/queue.js.map +1 -1
- package/dist/component/scheduler.d.ts +8 -8
- package/dist/component/scheduler.d.ts.map +1 -1
- package/dist/component/scheduler.js +22 -2
- package/dist/component/scheduler.js.map +1 -1
- package/dist/component/schema.d.ts +16 -4
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/component/schema.js +16 -0
- package/dist/component/schema.js.map +1 -1
- package/package.json +1 -1
- package/src/client/bridge.ts +1 -0
- package/src/client/index.ts +68 -3
- package/src/component/_generated/api.ts +2 -0
- package/src/component/_generated/component.ts +188 -8
- package/src/component/flyCleanup.ts +386 -0
- package/src/component/identity.ts +425 -31
- package/src/component/lib.test.ts +197 -3
- package/src/component/lib.ts +3 -0
- package/src/component/providers/fly.ts +39 -5
- package/src/component/queue.ts +11 -0
- package/src/component/scheduler.ts +23 -2
- package/src/component/schema.ts +16 -0
|
@@ -11,7 +11,6 @@ type PreparedTelegramAttachment = {
|
|
|
11
11
|
downloadUrl?: string;
|
|
12
12
|
};
|
|
13
13
|
export declare const enqueueMessage: import("convex/server").RegisteredMutation<"public", {
|
|
14
|
-
nowMs?: number | undefined;
|
|
15
14
|
providerConfig?: {
|
|
16
15
|
appName: string;
|
|
17
16
|
kind: "fly" | "runpod" | "ecs";
|
|
@@ -22,6 +21,7 @@ export declare const enqueueMessage: import("convex/server").RegisteredMutation<
|
|
|
22
21
|
volumePath: string;
|
|
23
22
|
volumeSizeGb: number;
|
|
24
23
|
} | undefined;
|
|
24
|
+
nowMs?: number | undefined;
|
|
25
25
|
maxAttempts?: number | undefined;
|
|
26
26
|
priority?: number | undefined;
|
|
27
27
|
scheduledFor?: number | undefined;
|
|
@@ -61,6 +61,7 @@ export declare const appendConversationMessages: import("convex/server").Registe
|
|
|
61
61
|
messageCount: number;
|
|
62
62
|
}>>;
|
|
63
63
|
export declare const upsertAgentProfile: import("convex/server").RegisteredMutation<"public", {
|
|
64
|
+
botIdentity?: string | undefined;
|
|
64
65
|
bridgeConfig?: {
|
|
65
66
|
baseUrl?: string | undefined;
|
|
66
67
|
serviceId?: string | undefined;
|
|
@@ -324,7 +325,6 @@ export declare const heartbeatJob: import("convex/server").RegisteredMutation<"p
|
|
|
324
325
|
leaseId: string;
|
|
325
326
|
}, Promise<boolean>>;
|
|
326
327
|
export declare const completeJob: import("convex/server").RegisteredMutation<"public", {
|
|
327
|
-
nowMs?: number | undefined;
|
|
328
328
|
providerConfig?: {
|
|
329
329
|
appName: string;
|
|
330
330
|
kind: "fly" | "runpod" | "ecs";
|
|
@@ -335,12 +335,12 @@ export declare const completeJob: import("convex/server").RegisteredMutation<"pu
|
|
|
335
335
|
volumePath: string;
|
|
336
336
|
volumeSizeGb: number;
|
|
337
337
|
} | undefined;
|
|
338
|
+
nowMs?: number | undefined;
|
|
338
339
|
messageId: import("convex/values").GenericId<"messageQueue">;
|
|
339
340
|
workerId: string;
|
|
340
341
|
leaseId: string;
|
|
341
342
|
}, Promise<boolean>>;
|
|
342
343
|
export declare const failJob: import("convex/server").RegisteredMutation<"public", {
|
|
343
|
-
nowMs?: number | undefined;
|
|
344
344
|
providerConfig?: {
|
|
345
345
|
appName: string;
|
|
346
346
|
kind: "fly" | "runpod" | "ecs";
|
|
@@ -351,6 +351,7 @@ export declare const failJob: import("convex/server").RegisteredMutation<"public
|
|
|
351
351
|
volumePath: string;
|
|
352
352
|
volumeSizeGb: number;
|
|
353
353
|
} | undefined;
|
|
354
|
+
nowMs?: number | undefined;
|
|
354
355
|
messageId: import("convex/values").GenericId<"messageQueue">;
|
|
355
356
|
workerId: string;
|
|
356
357
|
leaseId: string;
|
|
@@ -420,6 +421,7 @@ export declare const getHydrationBundleForClaimedJob: import("convex/server").Re
|
|
|
420
421
|
appKey: string | null;
|
|
421
422
|
serviceKey: string | null;
|
|
422
423
|
serviceKeySecretRef: string | null;
|
|
424
|
+
botIdentity: string | null;
|
|
423
425
|
} | null;
|
|
424
426
|
} | null>>;
|
|
425
427
|
export declare const getQueueStats: import("convex/server").RegisteredQuery<"public", {
|
|
@@ -555,8 +557,6 @@ export declare const getConversationViewForUserAgent: import("convex/server").Re
|
|
|
555
557
|
lastAssistantMessageAt: number | null;
|
|
556
558
|
}>>;
|
|
557
559
|
export declare const sendMessageToUserAgent: import("convex/server").RegisteredMutation<"public", {
|
|
558
|
-
metadata?: Record<string, string> | undefined;
|
|
559
|
-
nowMs?: number | undefined;
|
|
560
560
|
providerConfig?: {
|
|
561
561
|
appName: string;
|
|
562
562
|
kind: "fly" | "runpod" | "ecs";
|
|
@@ -567,13 +567,13 @@ export declare const sendMessageToUserAgent: import("convex/server").RegisteredM
|
|
|
567
567
|
volumePath: string;
|
|
568
568
|
volumeSizeGb: number;
|
|
569
569
|
} | undefined;
|
|
570
|
+
metadata?: Record<string, string> | undefined;
|
|
571
|
+
nowMs?: number | undefined;
|
|
570
572
|
agentKey: string;
|
|
571
573
|
consumerUserId: string;
|
|
572
574
|
content: string;
|
|
573
575
|
}, Promise<import("convex/values").GenericId<"messageQueue">>>;
|
|
574
576
|
export declare const sendMessageTemplateToUserAgent: import("convex/server").RegisteredMutation<"public", {
|
|
575
|
-
metadata?: Record<string, string> | undefined;
|
|
576
|
-
nowMs?: number | undefined;
|
|
577
577
|
providerConfig?: {
|
|
578
578
|
appName: string;
|
|
579
579
|
kind: "fly" | "runpod" | "ecs";
|
|
@@ -584,6 +584,8 @@ export declare const sendMessageTemplateToUserAgent: import("convex/server").Reg
|
|
|
584
584
|
volumePath: string;
|
|
585
585
|
volumeSizeGb: number;
|
|
586
586
|
} | undefined;
|
|
587
|
+
metadata?: Record<string, string> | undefined;
|
|
588
|
+
nowMs?: number | undefined;
|
|
587
589
|
agentKey: string;
|
|
588
590
|
consumerUserId: string;
|
|
589
591
|
templateId: import("convex/values").GenericId<"messageTemplates">;
|
|
@@ -661,6 +663,7 @@ export declare const listJobsByStatus: import("convex/server").RegisteredQuery<"
|
|
|
661
663
|
export declare const upsertWorkerState: import("convex/server").RegisteredMutation<"internal", {
|
|
662
664
|
nowMs?: number | undefined;
|
|
663
665
|
appName?: string | undefined;
|
|
666
|
+
volumeId?: string | undefined;
|
|
664
667
|
region?: string | undefined;
|
|
665
668
|
machineId?: string | undefined;
|
|
666
669
|
scheduledShutdownAt?: number | undefined;
|
|
@@ -673,6 +676,7 @@ export declare const upsertWorkerState: import("convex/server").RegisteredMutati
|
|
|
673
676
|
} | null | undefined;
|
|
674
677
|
clearLastSnapshotId?: boolean | undefined;
|
|
675
678
|
clearMachineRef?: boolean | undefined;
|
|
679
|
+
clearVolumeId?: boolean | undefined;
|
|
676
680
|
status: "active" | "draining" | "stopping" | "stopped";
|
|
677
681
|
workerId: string;
|
|
678
682
|
provider: string;
|
|
@@ -739,6 +743,7 @@ export declare const listWorkersForScheduler: import("convex/server").Registered
|
|
|
739
743
|
machineId: string | null;
|
|
740
744
|
appName: string | null;
|
|
741
745
|
region: string | null;
|
|
746
|
+
volumeId: string | null;
|
|
742
747
|
}[]>>;
|
|
743
748
|
export declare const expireOldDataSnapshots: import("convex/server").RegisteredMutation<"internal", {
|
|
744
749
|
nowMs?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../src/component/queue.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../src/component/queue.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,2BAA2B,CAAC;AA2OpD,KAAK,0BAA0B,GAAG;IAChC,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC;IACzD,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8DAezB,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;GAiErC,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,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;KAsC3B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;iBAmF5B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;GA6ChC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;GA+BpC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;oBAmCrC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;oBAmBjC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;UA+C1C,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;KAqClC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;mBAoBjC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;mBAyCvC,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;GAsCzB,CAAC"}
|
package/dist/component/queue.js
CHANGED
|
@@ -115,6 +115,7 @@ const bridgeRuntimeConfigValidator = v.object({
|
|
|
115
115
|
appKey: v.union(v.null(), v.string()),
|
|
116
116
|
serviceKey: v.union(v.null(), v.string()),
|
|
117
117
|
serviceKeySecretRef: v.union(v.null(), v.string()),
|
|
118
|
+
botIdentity: v.union(v.null(), v.string()),
|
|
118
119
|
});
|
|
119
120
|
const workerSpawnOpenClawEnvValidator = v.object({
|
|
120
121
|
OPENCLAW_SERVICE_ID: v.optional(v.string()),
|
|
@@ -240,6 +241,7 @@ export const upsertAgentProfile = mutation({
|
|
|
240
241
|
agentKey: v.string(),
|
|
241
242
|
version: v.string(),
|
|
242
243
|
secretsRef: v.array(v.string()),
|
|
244
|
+
botIdentity: v.optional(v.string()),
|
|
243
245
|
bridgeConfig: v.optional(bridgeProfileConfigValidator),
|
|
244
246
|
enabled: v.boolean(),
|
|
245
247
|
},
|
|
@@ -1902,9 +1904,11 @@ export const upsertWorkerState = internalMutation({
|
|
|
1902
1904
|
machineId: v.optional(v.string()),
|
|
1903
1905
|
appName: v.optional(v.string()),
|
|
1904
1906
|
region: v.optional(v.string()),
|
|
1907
|
+
volumeId: v.optional(v.string()),
|
|
1905
1908
|
assignment: v.optional(v.union(v.null(), workerAssignmentValidator)),
|
|
1906
1909
|
clearLastSnapshotId: v.optional(v.boolean()),
|
|
1907
1910
|
clearMachineRef: v.optional(v.boolean()),
|
|
1911
|
+
clearVolumeId: v.optional(v.boolean()),
|
|
1908
1912
|
},
|
|
1909
1913
|
returns: v.null(),
|
|
1910
1914
|
handler: async (ctx, args) => {
|
|
@@ -1924,6 +1928,7 @@ export const upsertWorkerState = internalMutation({
|
|
|
1924
1928
|
stoppedAt: args.status === "stopped" || args.status === "stopping"
|
|
1925
1929
|
? (args.stoppedAt ?? nowMs)
|
|
1926
1930
|
: undefined,
|
|
1931
|
+
volumeId: args.volumeId,
|
|
1927
1932
|
assignment: args.assignment ?? undefined,
|
|
1928
1933
|
machineRef: args.machineId && args.appName
|
|
1929
1934
|
? {
|
|
@@ -1948,6 +1953,7 @@ export const upsertWorkerState = internalMutation({
|
|
|
1948
1953
|
? (args.stoppedAt ?? worker.stoppedAt ?? nowMs)
|
|
1949
1954
|
: undefined,
|
|
1950
1955
|
lastSnapshotId: args.clearLastSnapshotId ? undefined : worker.lastSnapshotId,
|
|
1956
|
+
volumeId: args.clearVolumeId ? undefined : (args.volumeId ?? worker.volumeId),
|
|
1951
1957
|
assignment: args.assignment === undefined ? worker.assignment : (args.assignment ?? undefined),
|
|
1952
1958
|
machineRef: args.clearMachineRef
|
|
1953
1959
|
? undefined
|
|
@@ -2151,6 +2157,7 @@ export const listWorkersForScheduler = internalQuery({
|
|
|
2151
2157
|
machineId: v.union(v.null(), v.string()),
|
|
2152
2158
|
appName: v.union(v.null(), v.string()),
|
|
2153
2159
|
region: v.union(v.null(), v.string()),
|
|
2160
|
+
volumeId: v.union(v.null(), v.string()),
|
|
2154
2161
|
})),
|
|
2155
2162
|
handler: async (ctx) => {
|
|
2156
2163
|
const rows = await ctx.db.query("workers").collect();
|
|
@@ -2167,6 +2174,7 @@ export const listWorkersForScheduler = internalQuery({
|
|
|
2167
2174
|
machineId: worker.machineRef?.machineId ?? null,
|
|
2168
2175
|
appName: worker.machineRef?.appName ?? null,
|
|
2169
2176
|
region: worker.machineRef?.region ?? null,
|
|
2177
|
+
volumeId: worker.volumeId ?? null,
|
|
2170
2178
|
}));
|
|
2171
2179
|
},
|
|
2172
2180
|
});
|
|
@@ -2278,6 +2286,7 @@ async function resolveBridgeRuntimeConfig(ctx, profile) {
|
|
|
2278
2286
|
appKey: profile.bridgeConfig.appKey ?? appKeyFromSecret,
|
|
2279
2287
|
serviceKey,
|
|
2280
2288
|
serviceKeySecretRef,
|
|
2289
|
+
botIdentity: profile.botIdentity ?? null,
|
|
2281
2290
|
};
|
|
2282
2291
|
}
|
|
2283
2292
|
async function resolveUnambiguousBridgeProfileServiceId(ctx, profiles) {
|