@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.
@@ -7171,6 +7171,11 @@ var AgentSessionCapabilitiesSchema = z5.object({
7171
7171
  steering: z5.boolean().default(false),
7172
7172
  summary: z5.boolean().default(false)
7173
7173
  }).strict();
7174
+ var AgentSessionPermissionProfileSchema = z5.enum([
7175
+ "approval-required",
7176
+ "auto-approve",
7177
+ "full-access"
7178
+ ]);
7174
7179
  var AGENT_SESSION_RUNTIME_CAPABILITIES = Object.freeze({
7175
7180
  chatbot: AgentSessionCapabilitiesSchema.parse({ text: true, tools: true, mcp: true, skills: true, approval: true, usage: true, editAndRerun: true, summary: true }),
7176
7181
  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 })
@@ -7196,12 +7201,13 @@ var AGENT_SESSION_CAPABILITY_EVIDENCE = Object.freeze({
7196
7201
  threadForking: { eventTypes: [], commandTypes: ["fork"] },
7197
7202
  editAndRerun: { eventTypes: [], commandTypes: ["edit-and-rerun"] },
7198
7203
  steering: { eventTypes: ["steer"], commandTypes: ["steer"] },
7199
- summary: { eventTypes: ["summary"], commandTypes: [] }
7204
+ summary: { eventTypes: ["summary"], commandTypes: ["retry-summary"] }
7200
7205
  });
7201
7206
  var AgentSessionSnapshotSchema = z5.object({
7202
7207
  mode: AgentModeSchema,
7203
7208
  modelId: z5.string().trim().min(1),
7204
- capabilities: AgentSessionCapabilitiesSchema
7209
+ capabilities: AgentSessionCapabilitiesSchema,
7210
+ permissionProfile: AgentSessionPermissionProfileSchema.optional()
7205
7211
  }).strict();
7206
7212
  var AgentSessionStatusSchema = z5.enum([
7207
7213
  "queued",
@@ -7330,6 +7336,7 @@ var AgentSessionCommandTypeSchema = z5.enum([
7330
7336
  "stop",
7331
7337
  "resume",
7332
7338
  "retry",
7339
+ "retry-summary",
7333
7340
  "approval",
7334
7341
  "fork",
7335
7342
  "edit-and-rerun",
@@ -7358,6 +7365,10 @@ var AgentSessionCommandSchema = z5.discriminatedUnion("commandType", [
7358
7365
  sessionCommand("retry", {
7359
7366
  sourceEventId: ContractIdentifierSchema
7360
7367
  }),
7368
+ sessionCommand("retry-summary", {
7369
+ sourceEventId: ContractIdentifierSchema,
7370
+ sourceRunId: ContractIdentifierSchema
7371
+ }),
7361
7372
  sessionCommand("approval", {
7362
7373
  approvalId: ContractIdentifierSchema,
7363
7374
  decision: z5.enum(["approved", "rejected"]),
@@ -7388,6 +7399,13 @@ var AgentSessionCommandSchema = z5.discriminatedUnion("commandType", [
7388
7399
  message: "Steering targetRunId must match the command runId."
7389
7400
  });
7390
7401
  }
7402
+ if (value.commandType === "retry-summary" && value.runId !== value.payload.sourceRunId) {
7403
+ context.addIssue({
7404
+ code: "custom",
7405
+ path: ["payload", "sourceRunId"],
7406
+ message: "Summary retry sourceRunId must match the command runId."
7407
+ });
7408
+ }
7391
7409
  });
7392
7410
  var AgentSessionTargetedCommandSchema = AgentSessionCommandSchema.and(
7393
7411
  z5.object({ runId: ContractIdentifierSchema })
@@ -7516,6 +7534,14 @@ var AGENT_SESSION_COMMAND_POLICIES = Object.freeze({
7516
7534
  idempotencyScope: "session-command",
7517
7535
  sequenceRule: "match-current"
7518
7536
  }),
7537
+ "retry-summary": sessionCommandPolicy({
7538
+ capability: "summary",
7539
+ allowedStatuses: ["stopped", "completed", "failed"],
7540
+ requiresRunId: true,
7541
+ sourceSessionEffect: "preserve",
7542
+ idempotencyScope: "session-command",
7543
+ sequenceRule: "match-current"
7544
+ }),
7519
7545
  approval: sessionCommandPolicy({
7520
7546
  capability: "approval",
7521
7547
  allowedStatuses: ["waiting_approval"],
@@ -12077,6 +12103,7 @@ export {
12077
12103
  AgentSessionContinuationResultSchema,
12078
12104
  AgentSessionEventSchema,
12079
12105
  AgentSessionLineageSchema,
12106
+ AgentSessionPermissionProfileSchema,
12080
12107
  AgentSessionRunEventSchema,
12081
12108
  AgentSessionRunSchema,
12082
12109
  AgentSessionSnapshotSchema,