@inf-monkeys-tech/monkeys 1.0.25 → 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.
@@ -7677,7 +7677,7 @@ var AgentSessionCapabilitiesSchema = z5.object({
7677
7677
  }).strict();
7678
7678
  var AGENT_SESSION_RUNTIME_CAPABILITIES = Object.freeze({
7679
7679
  chatbot: AgentSessionCapabilitiesSchema.parse({ text: true, tools: true, mcp: true, skills: true, approval: true, usage: true, editAndRerun: true, summary: true }),
7680
- 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, summary: true })
7680
+ 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 })
7681
7681
  });
7682
7682
  var AGENT_SESSION_CAPABILITY_EVIDENCE = Object.freeze({
7683
7683
  text: { eventTypes: ["message"], commandTypes: [] },
@@ -7699,7 +7699,7 @@ var AGENT_SESSION_CAPABILITY_EVIDENCE = Object.freeze({
7699
7699
  testResults: { eventTypes: ["test-result"], commandTypes: [] },
7700
7700
  threadForking: { eventTypes: [], commandTypes: ["fork"] },
7701
7701
  editAndRerun: { eventTypes: [], commandTypes: ["edit-and-rerun"] },
7702
- steering: { eventTypes: [], commandTypes: ["steer"] },
7702
+ steering: { eventTypes: ["steer"], commandTypes: ["steer"] },
7703
7703
  summary: { eventTypes: ["summary"], commandTypes: [] }
7704
7704
  });
7705
7705
  var AgentSessionSnapshotSchema = z5.object({
@@ -7882,7 +7882,7 @@ var AgentSessionCommandSchema = z5.discriminatedUnion("commandType", [
7882
7882
  }),
7883
7883
  sessionCommand("steer", {
7884
7884
  targetRunId: ContractIdentifierSchema,
7885
- guidanceParts: z5.array(JsonValueSchema).min(1)
7885
+ text: z5.string().trim().min(1)
7886
7886
  })
7887
7887
  ]).superRefine((value, context) => {
7888
7888
  if (value.commandType === "steer" && value.runId !== value.payload.targetRunId) {
@@ -7899,6 +7899,7 @@ var AgentSessionTargetedCommandSchema = AgentSessionCommandSchema.and(
7899
7899
  var AgentSessionCommandErrorCodeSchema = z5.enum([
7900
7900
  "SESSION_NOT_FOUND",
7901
7901
  "RUN_NOT_FOUND",
7902
+ "ACTIVE_RUN_NOT_FOUND",
7902
7903
  "RUN_ALREADY_FINISHED",
7903
7904
  "STOP_TIMEOUT",
7904
7905
  "COMMAND_NOT_SUPPORTED",
@@ -8181,6 +8182,17 @@ var AgentSessionEventSchema = z5.discriminatedUnion("eventType", [
8181
8182
  durationMs: z5.number().nonnegative().optional(),
8182
8183
  output: z5.string().optional()
8183
8184
  }),
8185
+ sessionEvent("steer", {
8186
+ commandId: ContractIdentifierSchema,
8187
+ targetRunId: ContractIdentifierSchema,
8188
+ text: z5.string().trim().min(1),
8189
+ status: z5.enum(["accepted", "applied", "failed"]),
8190
+ error: z5.object({
8191
+ code: AgentSessionCommandErrorCodeSchema,
8192
+ message: z5.string(),
8193
+ retryable: z5.boolean()
8194
+ }).strict().optional()
8195
+ }),
8184
8196
  sessionEvent("summary", {
8185
8197
  summaryId: ContractIdentifierSchema,
8186
8198
  runId: ContractIdentifierSchema,
@@ -8190,6 +8202,23 @@ var AgentSessionEventSchema = z5.discriminatedUnion("eventType", [
8190
8202
  status: z5.enum(["generating", "completed", "failed"])
8191
8203
  })
8192
8204
  ]).superRefine((value, context) => {
8205
+ if (value.eventType === "steer") {
8206
+ if (value.runId !== value.payload.targetRunId) {
8207
+ context.addIssue({
8208
+ code: "custom",
8209
+ path: ["payload", "targetRunId"],
8210
+ message: "Steering payload targetRunId must match the event runId."
8211
+ });
8212
+ }
8213
+ const requiresError = value.payload.status === "failed";
8214
+ if (requiresError !== Boolean(value.payload.error)) {
8215
+ context.addIssue({
8216
+ code: "custom",
8217
+ path: ["payload", "error"],
8218
+ message: requiresError ? "Failed steering events require an error." : "Accepted and applied steering events must not contain an error."
8219
+ });
8220
+ }
8221
+ }
8193
8222
  if (value.eventType === "summary" && value.runId !== value.payload.runId) {
8194
8223
  context.addIssue({
8195
8224
  code: "custom",