omnara 1.0.39 → 1.0.40
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/bin.js +24 -5
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -1076,6 +1076,18 @@ var zCronTriggerLastRun = z.object({
|
|
|
1076
1076
|
updated_at: zTimestamp,
|
|
1077
1077
|
failure_message: z.string().nullable()
|
|
1078
1078
|
});
|
|
1079
|
+
var zAgentOpenInteractions = z.object({
|
|
1080
|
+
question_count: z.int().gte(0),
|
|
1081
|
+
permission_request_count: z.int().gte(0)
|
|
1082
|
+
});
|
|
1083
|
+
var zAgentRunningProcesses = z.object({
|
|
1084
|
+
count: z.int().gte(0),
|
|
1085
|
+
process_ids: z.array(zProcessId).max(20)
|
|
1086
|
+
});
|
|
1087
|
+
var zAgentWorkingSubagents = z.object({
|
|
1088
|
+
count: z.int().gte(0),
|
|
1089
|
+
agent_ids: z.array(zAgentId).max(20)
|
|
1090
|
+
});
|
|
1079
1091
|
var zAgentActivity = z.object({
|
|
1080
1092
|
state: z.enum([
|
|
1081
1093
|
"running",
|
|
@@ -1083,7 +1095,10 @@ var zAgentActivity = z.object({
|
|
|
1083
1095
|
"waiting_on_interaction",
|
|
1084
1096
|
"archived"
|
|
1085
1097
|
]),
|
|
1086
|
-
last_activity_at: zTimestamp
|
|
1098
|
+
last_activity_at: zTimestamp,
|
|
1099
|
+
open_interactions: zAgentOpenInteractions,
|
|
1100
|
+
running_processes: zAgentRunningProcesses,
|
|
1101
|
+
working_subagents: zAgentWorkingSubagents
|
|
1087
1102
|
});
|
|
1088
1103
|
var zAgentModel = z.object({
|
|
1089
1104
|
provider_config: zResourceName,
|
|
@@ -1924,6 +1939,7 @@ var zCreateMachinePoolRequestBase = z.object({
|
|
|
1924
1939
|
var zCreateMachinePoolRequest = zCreateMachinePoolRequestBase.and(z.union([
|
|
1925
1940
|
z.object({
|
|
1926
1941
|
provider: z.enum([
|
|
1942
|
+
"agent37",
|
|
1927
1943
|
"arker",
|
|
1928
1944
|
"freestyle",
|
|
1929
1945
|
"modal",
|
|
@@ -2266,7 +2282,8 @@ var zProcessActionReconciliationClaim = z.object({
|
|
|
2266
2282
|
action_kind: z.enum([
|
|
2267
2283
|
"write",
|
|
2268
2284
|
"interrupt",
|
|
2269
|
-
"terminate"
|
|
2285
|
+
"terminate",
|
|
2286
|
+
"watch"
|
|
2270
2287
|
]),
|
|
2271
2288
|
position: z.enum(["effect_committed", "terminal"])
|
|
2272
2289
|
});
|
|
@@ -2292,7 +2309,8 @@ var zProcessActionReconciliationDirective = z.object({
|
|
|
2292
2309
|
"write",
|
|
2293
2310
|
"read",
|
|
2294
2311
|
"interrupt",
|
|
2295
|
-
"terminate"
|
|
2312
|
+
"terminate",
|
|
2313
|
+
"watch"
|
|
2296
2314
|
]),
|
|
2297
2315
|
disposition: z.enum([
|
|
2298
2316
|
"apply",
|
|
@@ -10302,8 +10320,9 @@ function projectActorsQueryPredicate(orgID, projectID) {
|
|
|
10302
10320
|
// ../react/src/domains/agent-activity.ts
|
|
10303
10321
|
var activeAgentPollIntervalMs = 5e3;
|
|
10304
10322
|
function isAgentActive(agent) {
|
|
10305
|
-
const
|
|
10306
|
-
|
|
10323
|
+
const activity = agent.activity;
|
|
10324
|
+
if (!activity) return false;
|
|
10325
|
+
return activity.state === "running" || activity.state === "waiting_on_interaction" || activity.running_processes.count > 0 || activity.working_subagents.count > 0;
|
|
10307
10326
|
}
|
|
10308
10327
|
function activeAgentsRefetchInterval(getAgents, refetchInterval) {
|
|
10309
10328
|
return (query) => {
|