@inf-monkeys-tech/monkeys 1.0.26 → 1.0.28

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.
@@ -7675,6 +7675,11 @@ var AgentSessionCapabilitiesSchema = z5.object({
7675
7675
  steering: z5.boolean().default(false),
7676
7676
  summary: z5.boolean().default(false)
7677
7677
  }).strict();
7678
+ var AgentSessionPermissionProfileSchema = z5.enum([
7679
+ "approval-required",
7680
+ "auto-approve",
7681
+ "full-access"
7682
+ ]);
7678
7683
  var AGENT_SESSION_RUNTIME_CAPABILITIES = Object.freeze({
7679
7684
  chatbot: AgentSessionCapabilitiesSchema.parse({ text: true, tools: true, mcp: true, skills: true, approval: true, usage: true, editAndRerun: true, summary: true }),
7680
7685
  agent: AgentSessionCapabilitiesSchema.parse({ text: true, tools: true, mcp: true, shell: true, fileChange: true, skills: true, approval: true, artifacts: true, usage: true, resume: true, editAndRerun: true, steering: true, summary: true })
@@ -7700,12 +7705,13 @@ var AGENT_SESSION_CAPABILITY_EVIDENCE = Object.freeze({
7700
7705
  threadForking: { eventTypes: [], commandTypes: ["fork"] },
7701
7706
  editAndRerun: { eventTypes: [], commandTypes: ["edit-and-rerun"] },
7702
7707
  steering: { eventTypes: ["steer"], commandTypes: ["steer"] },
7703
- summary: { eventTypes: ["summary"], commandTypes: [] }
7708
+ summary: { eventTypes: ["summary"], commandTypes: ["retry-summary"] }
7704
7709
  });
7705
7710
  var AgentSessionSnapshotSchema = z5.object({
7706
7711
  mode: AgentModeSchema,
7707
7712
  modelId: z5.string().trim().min(1),
7708
- capabilities: AgentSessionCapabilitiesSchema
7713
+ capabilities: AgentSessionCapabilitiesSchema,
7714
+ permissionProfile: AgentSessionPermissionProfileSchema.optional()
7709
7715
  }).strict();
7710
7716
  var AgentSessionStatusSchema = z5.enum([
7711
7717
  "queued",
@@ -7834,6 +7840,7 @@ var AgentSessionCommandTypeSchema = z5.enum([
7834
7840
  "stop",
7835
7841
  "resume",
7836
7842
  "retry",
7843
+ "retry-summary",
7837
7844
  "approval",
7838
7845
  "fork",
7839
7846
  "edit-and-rerun",
@@ -7862,6 +7869,10 @@ var AgentSessionCommandSchema = z5.discriminatedUnion("commandType", [
7862
7869
  sessionCommand("retry", {
7863
7870
  sourceEventId: ContractIdentifierSchema
7864
7871
  }),
7872
+ sessionCommand("retry-summary", {
7873
+ sourceEventId: ContractIdentifierSchema,
7874
+ sourceRunId: ContractIdentifierSchema
7875
+ }),
7865
7876
  sessionCommand("approval", {
7866
7877
  approvalId: ContractIdentifierSchema,
7867
7878
  decision: z5.enum(["approved", "rejected"]),
@@ -7892,6 +7903,13 @@ var AgentSessionCommandSchema = z5.discriminatedUnion("commandType", [
7892
7903
  message: "Steering targetRunId must match the command runId."
7893
7904
  });
7894
7905
  }
7906
+ if (value.commandType === "retry-summary" && value.runId !== value.payload.sourceRunId) {
7907
+ context.addIssue({
7908
+ code: "custom",
7909
+ path: ["payload", "sourceRunId"],
7910
+ message: "Summary retry sourceRunId must match the command runId."
7911
+ });
7912
+ }
7895
7913
  });
7896
7914
  var AgentSessionTargetedCommandSchema = AgentSessionCommandSchema.and(
7897
7915
  z5.object({ runId: ContractIdentifierSchema })
@@ -8020,6 +8038,14 @@ var AGENT_SESSION_COMMAND_POLICIES = Object.freeze({
8020
8038
  idempotencyScope: "session-command",
8021
8039
  sequenceRule: "match-current"
8022
8040
  }),
8041
+ "retry-summary": sessionCommandPolicy({
8042
+ capability: "summary",
8043
+ allowedStatuses: ["stopped", "completed", "failed"],
8044
+ requiresRunId: true,
8045
+ sourceSessionEffect: "preserve",
8046
+ idempotencyScope: "session-command",
8047
+ sequenceRule: "match-current"
8048
+ }),
8023
8049
  approval: sessionCommandPolicy({
8024
8050
  capability: "approval",
8025
8051
  allowedStatuses: ["waiting_approval"],