@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.
- package/lib/contracts/agent.d.ts +56 -1
- package/lib/contracts/agent.d.ts.map +1 -1
- package/lib/contracts/agent.js +33 -2
- package/lib/contracts/agent.js.map +1 -1
- package/lib/esm/contracts/index.mjs +30 -2
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +30 -2
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +28 -2
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +29 -2
- 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/json-schema/agent-session-view-model.schema.json +8 -0
- package/lib/schemas/index.d.ts +32 -1
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +4 -3
- package/lib/schemas/index.js.map +1 -1
- package/package.json +1 -1
package/lib/esm/index.mjs
CHANGED
|
@@ -6778,6 +6778,11 @@ var AgentSessionCapabilitiesSchema = z3.object({
|
|
|
6778
6778
|
steering: z3.boolean().default(false),
|
|
6779
6779
|
summary: z3.boolean().default(false)
|
|
6780
6780
|
}).strict();
|
|
6781
|
+
var AgentSessionPermissionProfileSchema = z3.enum([
|
|
6782
|
+
"approval-required",
|
|
6783
|
+
"auto-approve",
|
|
6784
|
+
"full-access"
|
|
6785
|
+
]);
|
|
6781
6786
|
var AGENT_SESSION_RUNTIME_CAPABILITIES = Object.freeze({
|
|
6782
6787
|
chatbot: AgentSessionCapabilitiesSchema.parse({ text: true, tools: true, mcp: true, skills: true, approval: true, usage: true, editAndRerun: true, summary: true }),
|
|
6783
6788
|
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 })
|
|
@@ -6806,7 +6811,7 @@ var AGENT_SESSION_CAPABILITY_EVIDENCE = Object.freeze({
|
|
|
6806
6811
|
threadForking: { eventTypes: [], commandTypes: ["fork"] },
|
|
6807
6812
|
editAndRerun: { eventTypes: [], commandTypes: ["edit-and-rerun"] },
|
|
6808
6813
|
steering: { eventTypes: ["steer"], commandTypes: ["steer"] },
|
|
6809
|
-
summary: { eventTypes: ["summary"], commandTypes: [] }
|
|
6814
|
+
summary: { eventTypes: ["summary"], commandTypes: ["retry-summary"] }
|
|
6810
6815
|
});
|
|
6811
6816
|
function findUnsupportedAgentSessionCapabilities(capabilities, evidence) {
|
|
6812
6817
|
const eventTypes = new Set(evidence.eventTypes || []);
|
|
@@ -6820,7 +6825,8 @@ function findUnsupportedAgentSessionCapabilities(capabilities, evidence) {
|
|
|
6820
6825
|
var AgentSessionSnapshotSchema = z3.object({
|
|
6821
6826
|
mode: AgentModeSchema,
|
|
6822
6827
|
modelId: z3.string().trim().min(1),
|
|
6823
|
-
capabilities: AgentSessionCapabilitiesSchema
|
|
6828
|
+
capabilities: AgentSessionCapabilitiesSchema,
|
|
6829
|
+
permissionProfile: AgentSessionPermissionProfileSchema.optional()
|
|
6824
6830
|
}).strict();
|
|
6825
6831
|
var AgentSessionStatusSchema = z3.enum([
|
|
6826
6832
|
"queued",
|
|
@@ -6949,6 +6955,7 @@ var AgentSessionCommandTypeSchema = z3.enum([
|
|
|
6949
6955
|
"stop",
|
|
6950
6956
|
"resume",
|
|
6951
6957
|
"retry",
|
|
6958
|
+
"retry-summary",
|
|
6952
6959
|
"approval",
|
|
6953
6960
|
"fork",
|
|
6954
6961
|
"edit-and-rerun",
|
|
@@ -6977,6 +6984,10 @@ var AgentSessionCommandSchema = z3.discriminatedUnion("commandType", [
|
|
|
6977
6984
|
sessionCommand("retry", {
|
|
6978
6985
|
sourceEventId: ContractIdentifierSchema
|
|
6979
6986
|
}),
|
|
6987
|
+
sessionCommand("retry-summary", {
|
|
6988
|
+
sourceEventId: ContractIdentifierSchema,
|
|
6989
|
+
sourceRunId: ContractIdentifierSchema
|
|
6990
|
+
}),
|
|
6980
6991
|
sessionCommand("approval", {
|
|
6981
6992
|
approvalId: ContractIdentifierSchema,
|
|
6982
6993
|
decision: z3.enum(["approved", "rejected"]),
|
|
@@ -7007,6 +7018,13 @@ var AgentSessionCommandSchema = z3.discriminatedUnion("commandType", [
|
|
|
7007
7018
|
message: "Steering targetRunId must match the command runId."
|
|
7008
7019
|
});
|
|
7009
7020
|
}
|
|
7021
|
+
if (value.commandType === "retry-summary" && value.runId !== value.payload.sourceRunId) {
|
|
7022
|
+
context.addIssue({
|
|
7023
|
+
code: "custom",
|
|
7024
|
+
path: ["payload", "sourceRunId"],
|
|
7025
|
+
message: "Summary retry sourceRunId must match the command runId."
|
|
7026
|
+
});
|
|
7027
|
+
}
|
|
7010
7028
|
});
|
|
7011
7029
|
var AgentSessionTargetedCommandSchema = AgentSessionCommandSchema.and(
|
|
7012
7030
|
z3.object({ runId: ContractIdentifierSchema })
|
|
@@ -7107,6 +7125,7 @@ var AGENT_SESSION_COMMAND_TRANSITIONS = {
|
|
|
7107
7125
|
stop: { queued: "stopping", running: "stopping", waiting_approval: "stopping" },
|
|
7108
7126
|
resume: { stopped: "queued", completed: "queued", failed: "queued" },
|
|
7109
7127
|
retry: { failed: "queued" },
|
|
7128
|
+
"retry-summary": {},
|
|
7110
7129
|
approval: { waiting_approval: "running" },
|
|
7111
7130
|
fork: {},
|
|
7112
7131
|
"edit-and-rerun": {},
|
|
@@ -7144,6 +7163,14 @@ var AGENT_SESSION_COMMAND_POLICIES = Object.freeze({
|
|
|
7144
7163
|
idempotencyScope: "session-command",
|
|
7145
7164
|
sequenceRule: "match-current"
|
|
7146
7165
|
}),
|
|
7166
|
+
"retry-summary": sessionCommandPolicy({
|
|
7167
|
+
capability: "summary",
|
|
7168
|
+
allowedStatuses: ["stopped", "completed", "failed"],
|
|
7169
|
+
requiresRunId: true,
|
|
7170
|
+
sourceSessionEffect: "preserve",
|
|
7171
|
+
idempotencyScope: "session-command",
|
|
7172
|
+
sequenceRule: "match-current"
|
|
7173
|
+
}),
|
|
7147
7174
|
approval: sessionCommandPolicy({
|
|
7148
7175
|
capability: "approval",
|
|
7149
7176
|
allowedStatuses: ["waiting_approval"],
|
|
@@ -13444,6 +13471,7 @@ export {
|
|
|
13444
13471
|
AgentSessionInheritedContextMessageSchema,
|
|
13445
13472
|
AgentSessionInheritedContextSchema,
|
|
13446
13473
|
AgentSessionLineageSchema,
|
|
13474
|
+
AgentSessionPermissionProfileSchema,
|
|
13447
13475
|
AgentSessionRunEventSchema,
|
|
13448
13476
|
AgentSessionRunSchema,
|
|
13449
13477
|
AgentSessionSnapshotSchema,
|