@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
|
@@ -7676,8 +7676,8 @@ var AgentSessionCapabilitiesSchema = z5.object({
|
|
|
7676
7676
|
summary: z5.boolean().default(false)
|
|
7677
7677
|
}).strict();
|
|
7678
7678
|
var AGENT_SESSION_RUNTIME_CAPABILITIES = Object.freeze({
|
|
7679
|
-
chatbot: AgentSessionCapabilitiesSchema.parse({ text: true, tools: true, mcp: true, skills: true, approval: true, usage: 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, summary: true })
|
|
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 })
|
|
7681
7681
|
});
|
|
7682
7682
|
var AGENT_SESSION_CAPABILITY_EVIDENCE = Object.freeze({
|
|
7683
7683
|
text: { eventTypes: ["message"], commandTypes: [] },
|
|
@@ -7729,6 +7729,42 @@ var AgentSessionContextInheritanceSchema = z5.object({
|
|
|
7729
7729
|
toolResults: z5.enum(["inherit", "exclude"]),
|
|
7730
7730
|
codeChanges: z5.enum(["inherit", "exclude"])
|
|
7731
7731
|
}).strict();
|
|
7732
|
+
var AgentSessionInheritedContextMessageSchema = z5.object({
|
|
7733
|
+
messageId: ContractIdentifierSchema,
|
|
7734
|
+
role: z5.enum(["user", "assistant"]),
|
|
7735
|
+
parts: z5.array(JsonValueSchema).min(1)
|
|
7736
|
+
}).strict();
|
|
7737
|
+
var AgentSessionUnavailableResourceSchema = z5.object({
|
|
7738
|
+
messageId: ContractIdentifierSchema,
|
|
7739
|
+
kind: z5.enum(["attachment", "tool-result", "code-change"]),
|
|
7740
|
+
reason: z5.enum(["excluded", "unavailable", "unsupported"])
|
|
7741
|
+
}).strict();
|
|
7742
|
+
var AgentSessionInheritedContextSchema = z5.object({
|
|
7743
|
+
sourceThreadId: ContractIdentifierSchema,
|
|
7744
|
+
sourceMessageId: ContractIdentifierSchema,
|
|
7745
|
+
sourceRunId: ContractIdentifierSchema,
|
|
7746
|
+
messages: z5.array(AgentSessionInheritedContextMessageSchema).max(24),
|
|
7747
|
+
summary: z5.string().trim().min(1).optional(),
|
|
7748
|
+
unavailableResources: z5.array(AgentSessionUnavailableResourceSchema).default([]),
|
|
7749
|
+
capturedAt: IsoDateTimeSchema
|
|
7750
|
+
}).strict();
|
|
7751
|
+
var AgentSessionContinuationRequestSchema = z5.object({
|
|
7752
|
+
contract: z5.literal("AgentSessionContinuationRequest"),
|
|
7753
|
+
idempotencyKey: ContractIdentifierSchema,
|
|
7754
|
+
sourceMessageId: ContractIdentifierSchema,
|
|
7755
|
+
sourceRunId: ContractIdentifierSchema,
|
|
7756
|
+
inheritance: AgentSessionContextInheritanceSchema
|
|
7757
|
+
}).strict();
|
|
7758
|
+
var AgentSessionContinuationResultSchema = z5.object({
|
|
7759
|
+
contract: z5.literal("AgentSessionContinuationResult"),
|
|
7760
|
+
idempotencyKey: ContractIdentifierSchema,
|
|
7761
|
+
threadId: ContractIdentifierSchema,
|
|
7762
|
+
lineage: AgentSessionLineageSchema,
|
|
7763
|
+
inheritance: AgentSessionContextInheritanceSchema,
|
|
7764
|
+
unavailableResources: z5.array(AgentSessionUnavailableResourceSchema).default([]),
|
|
7765
|
+
duplicate: z5.boolean(),
|
|
7766
|
+
createdAt: IsoDateTimeSchema
|
|
7767
|
+
}).strict();
|
|
7732
7768
|
var AgentSessionActiveBranchSchema = z5.object({
|
|
7733
7769
|
branchId: ContractIdentifierSchema,
|
|
7734
7770
|
threadId: ContractIdentifierSchema,
|