@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.
- package/lib/contracts/agent.d.ts +36 -1
- package/lib/contracts/agent.d.ts.map +1 -1
- package/lib/contracts/agent.js +22 -1
- package/lib/contracts/agent.js.map +1 -1
- package/lib/esm/contracts/index.mjs +22 -1
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +22 -1
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +21 -1
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +21 -1
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/agent-session-command.schema.json +74 -0
- package/lib/json-schema/agent-session-targeted-command.schema.json +74 -0
- package/lib/schemas/index.d.ts +26 -0
- package/lib/schemas/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -7700,7 +7700,7 @@ var AGENT_SESSION_CAPABILITY_EVIDENCE = Object.freeze({
|
|
|
7700
7700
|
threadForking: { eventTypes: [], commandTypes: ["fork"] },
|
|
7701
7701
|
editAndRerun: { eventTypes: [], commandTypes: ["edit-and-rerun"] },
|
|
7702
7702
|
steering: { eventTypes: ["steer"], commandTypes: ["steer"] },
|
|
7703
|
-
summary: { eventTypes: ["summary"], commandTypes: [] }
|
|
7703
|
+
summary: { eventTypes: ["summary"], commandTypes: ["retry-summary"] }
|
|
7704
7704
|
});
|
|
7705
7705
|
var AgentSessionSnapshotSchema = z5.object({
|
|
7706
7706
|
mode: AgentModeSchema,
|
|
@@ -7834,6 +7834,7 @@ var AgentSessionCommandTypeSchema = z5.enum([
|
|
|
7834
7834
|
"stop",
|
|
7835
7835
|
"resume",
|
|
7836
7836
|
"retry",
|
|
7837
|
+
"retry-summary",
|
|
7837
7838
|
"approval",
|
|
7838
7839
|
"fork",
|
|
7839
7840
|
"edit-and-rerun",
|
|
@@ -7862,6 +7863,10 @@ var AgentSessionCommandSchema = z5.discriminatedUnion("commandType", [
|
|
|
7862
7863
|
sessionCommand("retry", {
|
|
7863
7864
|
sourceEventId: ContractIdentifierSchema
|
|
7864
7865
|
}),
|
|
7866
|
+
sessionCommand("retry-summary", {
|
|
7867
|
+
sourceEventId: ContractIdentifierSchema,
|
|
7868
|
+
sourceRunId: ContractIdentifierSchema
|
|
7869
|
+
}),
|
|
7865
7870
|
sessionCommand("approval", {
|
|
7866
7871
|
approvalId: ContractIdentifierSchema,
|
|
7867
7872
|
decision: z5.enum(["approved", "rejected"]),
|
|
@@ -7892,6 +7897,13 @@ var AgentSessionCommandSchema = z5.discriminatedUnion("commandType", [
|
|
|
7892
7897
|
message: "Steering targetRunId must match the command runId."
|
|
7893
7898
|
});
|
|
7894
7899
|
}
|
|
7900
|
+
if (value.commandType === "retry-summary" && value.runId !== value.payload.sourceRunId) {
|
|
7901
|
+
context.addIssue({
|
|
7902
|
+
code: "custom",
|
|
7903
|
+
path: ["payload", "sourceRunId"],
|
|
7904
|
+
message: "Summary retry sourceRunId must match the command runId."
|
|
7905
|
+
});
|
|
7906
|
+
}
|
|
7895
7907
|
});
|
|
7896
7908
|
var AgentSessionTargetedCommandSchema = AgentSessionCommandSchema.and(
|
|
7897
7909
|
z5.object({ runId: ContractIdentifierSchema })
|
|
@@ -8020,6 +8032,14 @@ var AGENT_SESSION_COMMAND_POLICIES = Object.freeze({
|
|
|
8020
8032
|
idempotencyScope: "session-command",
|
|
8021
8033
|
sequenceRule: "match-current"
|
|
8022
8034
|
}),
|
|
8035
|
+
"retry-summary": sessionCommandPolicy({
|
|
8036
|
+
capability: "summary",
|
|
8037
|
+
allowedStatuses: ["stopped", "completed", "failed"],
|
|
8038
|
+
requiresRunId: true,
|
|
8039
|
+
sourceSessionEffect: "preserve",
|
|
8040
|
+
idempotencyScope: "session-command",
|
|
8041
|
+
sequenceRule: "match-current"
|
|
8042
|
+
}),
|
|
8023
8043
|
approval: sessionCommandPolicy({
|
|
8024
8044
|
capability: "approval",
|
|
8025
8045
|
allowedStatuses: ["waiting_approval"],
|