@inf-monkeys-tech/monkeys 1.0.23 → 1.0.25
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 +130 -1
- package/lib/contracts/agent.d.ts.map +1 -1
- package/lib/contracts/agent.js +49 -3
- package/lib/contracts/agent.js.map +1 -1
- package/lib/esm/contracts/index.mjs +43 -2
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +45 -2
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +38 -2
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +42 -2
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/agent-session-continuation-request.schema.json +83 -0
- package/lib/json-schema/agent-session-continuation-result.schema.json +151 -0
- package/lib/json-schema/index.json +2 -0
- package/lib/schemas/index.d.ts +77 -2
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +7 -3
- package/lib/schemas/index.js.map +1 -1
- package/package.json +1 -1
- package/test/fixtures/agent-session-agent.json +1 -1
- package/test/fixtures/agent-session-chatbot.json +1 -1
- package/test/fixtures/agent-session-commands.json +22 -0
|
@@ -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, summary: true })
|
|
7177
7177
|
});
|
|
7178
7178
|
var AGENT_SESSION_CAPABILITY_EVIDENCE = Object.freeze({
|
|
7179
7179
|
text: { eventTypes: ["message"], commandTypes: [] },
|
|
@@ -7225,6 +7225,42 @@ var AgentSessionContextInheritanceSchema = z5.object({
|
|
|
7225
7225
|
toolResults: z5.enum(["inherit", "exclude"]),
|
|
7226
7226
|
codeChanges: z5.enum(["inherit", "exclude"])
|
|
7227
7227
|
}).strict();
|
|
7228
|
+
var AgentSessionInheritedContextMessageSchema = z5.object({
|
|
7229
|
+
messageId: ContractIdentifierSchema,
|
|
7230
|
+
role: z5.enum(["user", "assistant"]),
|
|
7231
|
+
parts: z5.array(JsonValueSchema).min(1)
|
|
7232
|
+
}).strict();
|
|
7233
|
+
var AgentSessionUnavailableResourceSchema = z5.object({
|
|
7234
|
+
messageId: ContractIdentifierSchema,
|
|
7235
|
+
kind: z5.enum(["attachment", "tool-result", "code-change"]),
|
|
7236
|
+
reason: z5.enum(["excluded", "unavailable", "unsupported"])
|
|
7237
|
+
}).strict();
|
|
7238
|
+
var AgentSessionInheritedContextSchema = z5.object({
|
|
7239
|
+
sourceThreadId: ContractIdentifierSchema,
|
|
7240
|
+
sourceMessageId: ContractIdentifierSchema,
|
|
7241
|
+
sourceRunId: ContractIdentifierSchema,
|
|
7242
|
+
messages: z5.array(AgentSessionInheritedContextMessageSchema).max(24),
|
|
7243
|
+
summary: z5.string().trim().min(1).optional(),
|
|
7244
|
+
unavailableResources: z5.array(AgentSessionUnavailableResourceSchema).default([]),
|
|
7245
|
+
capturedAt: IsoDateTimeSchema
|
|
7246
|
+
}).strict();
|
|
7247
|
+
var AgentSessionContinuationRequestSchema = z5.object({
|
|
7248
|
+
contract: z5.literal("AgentSessionContinuationRequest"),
|
|
7249
|
+
idempotencyKey: ContractIdentifierSchema,
|
|
7250
|
+
sourceMessageId: ContractIdentifierSchema,
|
|
7251
|
+
sourceRunId: ContractIdentifierSchema,
|
|
7252
|
+
inheritance: AgentSessionContextInheritanceSchema
|
|
7253
|
+
}).strict();
|
|
7254
|
+
var AgentSessionContinuationResultSchema = z5.object({
|
|
7255
|
+
contract: z5.literal("AgentSessionContinuationResult"),
|
|
7256
|
+
idempotencyKey: ContractIdentifierSchema,
|
|
7257
|
+
threadId: ContractIdentifierSchema,
|
|
7258
|
+
lineage: AgentSessionLineageSchema,
|
|
7259
|
+
inheritance: AgentSessionContextInheritanceSchema,
|
|
7260
|
+
unavailableResources: z5.array(AgentSessionUnavailableResourceSchema).default([]),
|
|
7261
|
+
duplicate: z5.boolean(),
|
|
7262
|
+
createdAt: IsoDateTimeSchema
|
|
7263
|
+
}).strict();
|
|
7228
7264
|
var AgentSessionActiveBranchSchema = z5.object({
|
|
7229
7265
|
branchId: ContractIdentifierSchema,
|
|
7230
7266
|
threadId: ContractIdentifierSchema,
|
|
@@ -11928,6 +11964,8 @@ var canonicalContractSchemas = {
|
|
|
11928
11964
|
"agent-session-command": AgentSessionCommandSchema,
|
|
11929
11965
|
"agent-session-targeted-command": AgentSessionTargetedCommandSchema,
|
|
11930
11966
|
"agent-session-command-result": AgentSessionCommandResultSchema,
|
|
11967
|
+
"agent-session-continuation-request": AgentSessionContinuationRequestSchema,
|
|
11968
|
+
"agent-session-continuation-result": AgentSessionContinuationResultSchema,
|
|
11931
11969
|
"agent-session-event": AgentSessionEventSchema,
|
|
11932
11970
|
"agent-session-run-event": AgentSessionRunEventSchema,
|
|
11933
11971
|
"agent-session-run": AgentSessionRunSchema,
|
|
@@ -12006,6 +12044,8 @@ export {
|
|
|
12006
12044
|
AgentSessionCommandSchema,
|
|
12007
12045
|
AgentSessionCommandTypeSchema,
|
|
12008
12046
|
AgentSessionContextInheritanceSchema,
|
|
12047
|
+
AgentSessionContinuationRequestSchema,
|
|
12048
|
+
AgentSessionContinuationResultSchema,
|
|
12009
12049
|
AgentSessionEventSchema,
|
|
12010
12050
|
AgentSessionLineageSchema,
|
|
12011
12051
|
AgentSessionRunEventSchema,
|