@inf-monkeys-tech/monkeys 1.0.24 → 1.0.26

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.
@@ -7172,8 +7172,8 @@ var AgentSessionCapabilitiesSchema = z5.object({
7172
7172
  summary: z5.boolean().default(false)
7173
7173
  }).strict();
7174
7174
  var AGENT_SESSION_RUNTIME_CAPABILITIES = Object.freeze({
7175
- chatbot: AgentSessionCapabilitiesSchema.parse({ text: true, tools: true, mcp: true, skills: true, approval: true, usage: true, summary: true }),
7176
- agent: AgentSessionCapabilitiesSchema.parse({ text: true, tools: true, mcp: true, shell: true, fileChange: true, skills: true, approval: true, artifacts: true, usage: true, resume: true, summary: true })
7175
+ chatbot: AgentSessionCapabilitiesSchema.parse({ text: true, tools: true, mcp: true, skills: true, approval: true, usage: true, editAndRerun: true, summary: true }),
7176
+ 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 })
7177
7177
  });
7178
7178
  var AGENT_SESSION_CAPABILITY_EVIDENCE = Object.freeze({
7179
7179
  text: { eventTypes: ["message"], commandTypes: [] },
@@ -7195,7 +7195,7 @@ var AGENT_SESSION_CAPABILITY_EVIDENCE = Object.freeze({
7195
7195
  testResults: { eventTypes: ["test-result"], commandTypes: [] },
7196
7196
  threadForking: { eventTypes: [], commandTypes: ["fork"] },
7197
7197
  editAndRerun: { eventTypes: [], commandTypes: ["edit-and-rerun"] },
7198
- steering: { eventTypes: [], commandTypes: ["steer"] },
7198
+ steering: { eventTypes: ["steer"], commandTypes: ["steer"] },
7199
7199
  summary: { eventTypes: ["summary"], commandTypes: [] }
7200
7200
  });
7201
7201
  var AgentSessionSnapshotSchema = z5.object({
@@ -7378,7 +7378,7 @@ var AgentSessionCommandSchema = z5.discriminatedUnion("commandType", [
7378
7378
  }),
7379
7379
  sessionCommand("steer", {
7380
7380
  targetRunId: ContractIdentifierSchema,
7381
- guidanceParts: z5.array(JsonValueSchema).min(1)
7381
+ text: z5.string().trim().min(1)
7382
7382
  })
7383
7383
  ]).superRefine((value, context) => {
7384
7384
  if (value.commandType === "steer" && value.runId !== value.payload.targetRunId) {
@@ -7395,6 +7395,7 @@ var AgentSessionTargetedCommandSchema = AgentSessionCommandSchema.and(
7395
7395
  var AgentSessionCommandErrorCodeSchema = z5.enum([
7396
7396
  "SESSION_NOT_FOUND",
7397
7397
  "RUN_NOT_FOUND",
7398
+ "ACTIVE_RUN_NOT_FOUND",
7398
7399
  "RUN_ALREADY_FINISHED",
7399
7400
  "STOP_TIMEOUT",
7400
7401
  "COMMAND_NOT_SUPPORTED",
@@ -7677,6 +7678,17 @@ var AgentSessionEventSchema = z5.discriminatedUnion("eventType", [
7677
7678
  durationMs: z5.number().nonnegative().optional(),
7678
7679
  output: z5.string().optional()
7679
7680
  }),
7681
+ sessionEvent("steer", {
7682
+ commandId: ContractIdentifierSchema,
7683
+ targetRunId: ContractIdentifierSchema,
7684
+ text: z5.string().trim().min(1),
7685
+ status: z5.enum(["accepted", "applied", "failed"]),
7686
+ error: z5.object({
7687
+ code: AgentSessionCommandErrorCodeSchema,
7688
+ message: z5.string(),
7689
+ retryable: z5.boolean()
7690
+ }).strict().optional()
7691
+ }),
7680
7692
  sessionEvent("summary", {
7681
7693
  summaryId: ContractIdentifierSchema,
7682
7694
  runId: ContractIdentifierSchema,
@@ -7686,6 +7698,23 @@ var AgentSessionEventSchema = z5.discriminatedUnion("eventType", [
7686
7698
  status: z5.enum(["generating", "completed", "failed"])
7687
7699
  })
7688
7700
  ]).superRefine((value, context) => {
7701
+ if (value.eventType === "steer") {
7702
+ if (value.runId !== value.payload.targetRunId) {
7703
+ context.addIssue({
7704
+ code: "custom",
7705
+ path: ["payload", "targetRunId"],
7706
+ message: "Steering payload targetRunId must match the event runId."
7707
+ });
7708
+ }
7709
+ const requiresError = value.payload.status === "failed";
7710
+ if (requiresError !== Boolean(value.payload.error)) {
7711
+ context.addIssue({
7712
+ code: "custom",
7713
+ path: ["payload", "error"],
7714
+ message: requiresError ? "Failed steering events require an error." : "Accepted and applied steering events must not contain an error."
7715
+ });
7716
+ }
7717
+ }
7689
7718
  if (value.eventType === "summary" && value.runId !== value.payload.runId) {
7690
7719
  context.addIssue({
7691
7720
  code: "custom",