omnara 1.0.15 → 1.0.16

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 (2) hide show
  1. package/dist/bin.js +174 -6
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -681,18 +681,148 @@ var zAgentConfigModel = z.object({
681
681
  input_modalities: z.array(z.string()),
682
682
  output_modalities: z.array(z.string())
683
683
  });
684
- var zAgentConfig = z.object({
684
+ var zCompiledEventWebhook = z.object({
685
+ url: z.string(),
686
+ events: z.array(z.enum([
687
+ "agent_input",
688
+ "model_output",
689
+ "tool_result",
690
+ "context_checkpoint",
691
+ "tool_call_update"
692
+ ])).min(1),
693
+ signing_secret_id: zSecretId.optional()
694
+ });
695
+ var zCompiledModelReasoning = z.object({
696
+ effort: z.string()
697
+ });
698
+ var zCompiledAgentModel = z.object({
699
+ configured_model_id: zConfiguredModelId,
700
+ context_window_tokens: z.int().optional(),
701
+ default_max_output_tokens: z.int().optional(),
702
+ cache_retention: zModelCacheRetention.optional(),
703
+ reasoning: zCompiledModelReasoning.optional()
704
+ });
705
+ var zCompiledMachineSource = z.object({
706
+ machine_id: zMachineId.optional(),
707
+ machine_pool_id: zMachinePoolId.optional(),
708
+ max_machines: z.int().optional(),
709
+ initial_num_machines: z.int().optional(),
710
+ delete_after_idle_minutes: z.int().optional(),
711
+ cwd: z.string().optional(),
712
+ machine_cpu: z.int().optional(),
713
+ machine_memory_mb: z.int().optional(),
714
+ env_overlay: z.record(z.string(), z.string().nullable()).optional(),
715
+ secret_env_overlay: z.record(z.string(), zSecretId.nullable()).optional(),
716
+ machine_provider_options_overlay: z.record(z.string(), z.unknown()).optional(),
717
+ description: z.string().optional()
718
+ });
719
+ var zCompiledTool = z.object({
720
+ enabled: z.boolean(),
721
+ type: z.enum(["built_in", "custom"]).optional(),
722
+ permission: zToolPermissionSelection,
723
+ deferred: z.boolean().optional(),
724
+ description: z.string().optional(),
725
+ input_schema: z.record(z.string(), z.unknown()).optional()
726
+ });
727
+ var zCompiledMcpAuthBearer = z.object({
728
+ type: z.enum(["bearer"]),
729
+ secret_id: zSecretId
730
+ });
731
+ var zCompiledMcpAuthOAuth = z.object({
732
+ type: z.enum(["oauth"]),
733
+ secret_id: zSecretId
734
+ });
735
+ var zCompiledMcpAuthSigV4 = z.object({
736
+ type: z.enum(["sigv4"]),
737
+ secret_id: zSecretId,
738
+ service: z.string().min(1),
739
+ region: z.string().min(1)
740
+ });
741
+ var zCompiledMcpAuth = z.discriminatedUnion("type", [
742
+ zCompiledMcpAuthBearer.extend({ type: z.literal("bearer") }),
743
+ zCompiledMcpAuthOAuth.extend({ type: z.literal("oauth") }),
744
+ zCompiledMcpAuthSigV4.extend({ type: z.literal("sigv4") })
745
+ ]);
746
+ var zCompiledMcpTool = z.object({
747
+ enabled: z.boolean().optional(),
748
+ permission: zToolPermissionSelection.optional(),
749
+ deferred: z.boolean().optional()
750
+ });
751
+ var zCompiledMcpServer = z.object({
752
+ url: z.string(),
753
+ auth: zCompiledMcpAuth.optional(),
754
+ default_enabled: z.boolean(),
755
+ permission: zToolPermissionSelection,
756
+ deferred: z.boolean().optional(),
757
+ tools: z.record(z.string(), zCompiledMcpTool).optional()
758
+ });
759
+ var zCompiledSkill = z.object({
760
+ id: zSkillId
761
+ });
762
+ var zCompiledSubagentModel = z.object({
763
+ configured_model_id: zConfiguredModelId.optional(),
764
+ context_window_tokens: z.int().optional(),
765
+ default_max_output_tokens: z.int().optional(),
766
+ cache_retention: zModelCacheRetention.optional(),
767
+ reasoning: zCompiledModelReasoning.optional()
768
+ });
769
+ var zCompiledSelfSubagent = z.object({
770
+ type: z.enum(["self"]),
771
+ description: z.string().optional(),
772
+ model: zCompiledSubagentModel.optional(),
773
+ instruction_append: z.string().optional(),
774
+ max_instances: z.int().optional(),
775
+ archive_after_idle_minutes: z.int().optional()
776
+ });
777
+ var zCompiledProfileSubagent = z.object({
778
+ type: z.enum(["profile"]),
779
+ profile_id: zAgentProfileId,
780
+ description: z.string().optional(),
781
+ model: zCompiledSubagentModel.optional(),
782
+ instruction_append: z.string().optional(),
783
+ max_instances: z.int().optional(),
784
+ archive_after_idle_minutes: z.int().optional()
785
+ });
786
+ var zCompiledSubagent = z.discriminatedUnion("type", [
787
+ zCompiledSelfSubagent.extend({ type: z.literal("self") }),
788
+ zCompiledProfileSubagent.extend({ type: z.literal("profile") })
789
+ ]);
790
+ var zCompiledAgentConfig = z.object({
791
+ version: z.string().optional(),
792
+ instruction: z.string(),
793
+ model: zCompiledAgentModel,
794
+ machine_sources: z.array(zCompiledMachineSource).optional(),
795
+ tools: z.record(z.string(), zCompiledTool).optional(),
796
+ mcp: z.record(z.string(), zCompiledMcpServer).optional(),
797
+ event_webhook: zCompiledEventWebhook.optional(),
798
+ skills: z.array(zCompiledSkill).optional(),
799
+ subagents: z.record(z.string(), zCompiledSubagent).optional(),
800
+ max_subagents: z.int().optional(),
801
+ max_depth: z.int().optional()
802
+ });
803
+ var zAgentConfigSummary = z.object({
685
804
  id: zAgentConfigId,
686
805
  org_id: zOrganizationId,
687
806
  project_id: zProjectId,
688
807
  source: z.string().optional(),
689
808
  source_format: z.enum(["yaml", "json"]).optional(),
690
- compiler_version: z.string().optional(),
691
809
  effective_definition_hash: z.string(),
692
810
  model: zAgentConfigModel,
693
811
  instruction_hash: z.string().optional(),
694
812
  created_at: zTimestamp
695
813
  });
814
+ var zAgentConfig = z.object({
815
+ id: zAgentConfigId,
816
+ org_id: zOrganizationId,
817
+ project_id: zProjectId,
818
+ source: z.string().optional(),
819
+ source_format: z.enum(["yaml", "json"]).optional(),
820
+ effective_definition_hash: z.string(),
821
+ model: zAgentConfigModel,
822
+ instruction_hash: z.string().optional(),
823
+ created_at: zTimestamp,
824
+ compiled_definition: zCompiledAgentConfig
825
+ });
696
826
  var zCreateAgentProfileRequest = z.object({
697
827
  name: zResourceName,
698
828
  config: zAgentConfigId
@@ -704,6 +834,17 @@ var zUpdateAgentProfileRequest = z.object({
704
834
  var zRenameAgentProfileRequest = z.object({
705
835
  name: zResourceName
706
836
  });
837
+ var zAgentProfileSummary = z.object({
838
+ id: zAgentProfileId,
839
+ org_id: zOrganizationId,
840
+ project_id: zProjectId,
841
+ name: zResourceName,
842
+ current_config_id: zAgentConfigId,
843
+ current_generation: z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
844
+ created_at: zTimestamp,
845
+ updated_at: zTimestamp,
846
+ current_config: zAgentConfigSummary
847
+ });
707
848
  var zAgentProfile = z.object({
708
849
  id: zAgentProfileId,
709
850
  org_id: zOrganizationId,
@@ -711,12 +852,12 @@ var zAgentProfile = z.object({
711
852
  name: zResourceName,
712
853
  current_config_id: zAgentConfigId,
713
854
  current_generation: z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
714
- current_config: zAgentConfig,
715
855
  created_at: zTimestamp,
716
- updated_at: zTimestamp
856
+ updated_at: zTimestamp,
857
+ current_config: zAgentConfig
717
858
  });
718
859
  var zListAgentProfilesResponse = z.object({
719
- data: z.array(zAgentProfile),
860
+ data: z.array(zAgentProfileSummary),
720
861
  next_cursor: z.string().nullable()
721
862
  });
722
863
  var zAgentProfileCronTriggerTarget = z.object({
@@ -1137,6 +1278,22 @@ var zContextCheckpointEvent = z.object({
1137
1278
  summary: z.string(),
1138
1279
  created_at: zTimestamp
1139
1280
  });
1281
+ var zEventWebhookAgentInputEvent = z.object({
1282
+ event: z.enum(["agent_input"]),
1283
+ data: zAgentInputEvent
1284
+ });
1285
+ var zEventWebhookToolResultEvent = z.object({
1286
+ event: z.enum(["tool_result"]),
1287
+ data: zToolResultEvent
1288
+ });
1289
+ var zEventWebhookContextCheckpointEvent = z.object({
1290
+ event: z.enum(["context_checkpoint"]),
1291
+ data: zContextCheckpointEvent
1292
+ });
1293
+ var zEventWebhookToolCallUpdate = z.object({
1294
+ event: z.enum(["tool_call_update"]),
1295
+ data: zToolCallUpdate
1296
+ });
1140
1297
  var zModelOutputTextStreamBlock = z.object({
1141
1298
  kind: z.enum(["text"])
1142
1299
  });
@@ -1202,6 +1359,17 @@ var zModelOutputEvent = z.object({
1202
1359
  provider_metadata: z.record(z.string(), z.unknown()).optional(),
1203
1360
  created_at: zTimestamp
1204
1361
  });
1362
+ var zEventWebhookModelOutputEvent = z.object({
1363
+ event: z.enum(["model_output"]),
1364
+ data: zModelOutputEvent
1365
+ });
1366
+ var zEventWebhookPayload = z.discriminatedUnion("event", [
1367
+ zEventWebhookAgentInputEvent.extend({ event: z.literal("agent_input") }),
1368
+ zEventWebhookModelOutputEvent.extend({ event: z.literal("model_output") }),
1369
+ zEventWebhookToolResultEvent.extend({ event: z.literal("tool_result") }),
1370
+ zEventWebhookContextCheckpointEvent.extend({ event: z.literal("context_checkpoint") }),
1371
+ zEventWebhookToolCallUpdate.extend({ event: z.literal("tool_call_update") })
1372
+ ]);
1205
1373
  var zAgentEvent = z.discriminatedUnion("event_kind", [
1206
1374
  zAgentInputEvent.extend({ event_kind: z.literal("agent_input") }),
1207
1375
  zModelOutputEvent.extend({ event_kind: z.literal("model_output") }),
@@ -2105,7 +2273,7 @@ var zListProjectsResponse = z.object({
2105
2273
  var zOrgOverviewResponse = z.object({
2106
2274
  projects: z.array(zVisibleProject),
2107
2275
  recent_agents: z.array(zAgent),
2108
- recent_agent_profiles: z.array(zAgentProfile)
2276
+ recent_agent_profiles: z.array(zAgentProfileSummary)
2109
2277
  });
2110
2278
  var zUsageTokenTotals = z.object({
2111
2279
  input_tokens_total: z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnara",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "Command-line interface for Omnara: launch and manage agents, organizations, integrations, and MCP servers",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://omnara.com",