@inf-monkeys-tech/monkeys 1.0.26 → 1.0.27

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.
@@ -7196,7 +7196,7 @@ var AGENT_SESSION_CAPABILITY_EVIDENCE = Object.freeze({
7196
7196
  threadForking: { eventTypes: [], commandTypes: ["fork"] },
7197
7197
  editAndRerun: { eventTypes: [], commandTypes: ["edit-and-rerun"] },
7198
7198
  steering: { eventTypes: ["steer"], commandTypes: ["steer"] },
7199
- summary: { eventTypes: ["summary"], commandTypes: [] }
7199
+ summary: { eventTypes: ["summary"], commandTypes: ["retry-summary"] }
7200
7200
  });
7201
7201
  var AgentSessionSnapshotSchema = z5.object({
7202
7202
  mode: AgentModeSchema,
@@ -7330,6 +7330,7 @@ var AgentSessionCommandTypeSchema = z5.enum([
7330
7330
  "stop",
7331
7331
  "resume",
7332
7332
  "retry",
7333
+ "retry-summary",
7333
7334
  "approval",
7334
7335
  "fork",
7335
7336
  "edit-and-rerun",
@@ -7358,6 +7359,10 @@ var AgentSessionCommandSchema = z5.discriminatedUnion("commandType", [
7358
7359
  sessionCommand("retry", {
7359
7360
  sourceEventId: ContractIdentifierSchema
7360
7361
  }),
7362
+ sessionCommand("retry-summary", {
7363
+ sourceEventId: ContractIdentifierSchema,
7364
+ sourceRunId: ContractIdentifierSchema
7365
+ }),
7361
7366
  sessionCommand("approval", {
7362
7367
  approvalId: ContractIdentifierSchema,
7363
7368
  decision: z5.enum(["approved", "rejected"]),
@@ -7388,6 +7393,13 @@ var AgentSessionCommandSchema = z5.discriminatedUnion("commandType", [
7388
7393
  message: "Steering targetRunId must match the command runId."
7389
7394
  });
7390
7395
  }
7396
+ if (value.commandType === "retry-summary" && value.runId !== value.payload.sourceRunId) {
7397
+ context.addIssue({
7398
+ code: "custom",
7399
+ path: ["payload", "sourceRunId"],
7400
+ message: "Summary retry sourceRunId must match the command runId."
7401
+ });
7402
+ }
7391
7403
  });
7392
7404
  var AgentSessionTargetedCommandSchema = AgentSessionCommandSchema.and(
7393
7405
  z5.object({ runId: ContractIdentifierSchema })
@@ -7516,6 +7528,14 @@ var AGENT_SESSION_COMMAND_POLICIES = Object.freeze({
7516
7528
  idempotencyScope: "session-command",
7517
7529
  sequenceRule: "match-current"
7518
7530
  }),
7531
+ "retry-summary": sessionCommandPolicy({
7532
+ capability: "summary",
7533
+ allowedStatuses: ["stopped", "completed", "failed"],
7534
+ requiresRunId: true,
7535
+ sourceSessionEffect: "preserve",
7536
+ idempotencyScope: "session-command",
7537
+ sequenceRule: "match-current"
7538
+ }),
7519
7539
  approval: sessionCommandPolicy({
7520
7540
  capability: "approval",
7521
7541
  allowedStatuses: ["waiting_approval"],