@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
package/lib/esm/index.mjs
CHANGED
|
@@ -6779,8 +6779,8 @@ var AgentSessionCapabilitiesSchema = z3.object({
|
|
|
6779
6779
|
summary: z3.boolean().default(false)
|
|
6780
6780
|
}).strict();
|
|
6781
6781
|
var AGENT_SESSION_RUNTIME_CAPABILITIES = Object.freeze({
|
|
6782
|
-
chatbot: AgentSessionCapabilitiesSchema.parse({ text: true, tools: true, mcp: true, skills: true, approval: true, usage: true, summary: true }),
|
|
6783
|
-
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 })
|
|
6782
|
+
chatbot: AgentSessionCapabilitiesSchema.parse({ text: true, tools: true, mcp: true, skills: true, approval: true, usage: true, editAndRerun: true, summary: true }),
|
|
6783
|
+
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 })
|
|
6784
6784
|
});
|
|
6785
6785
|
function getAgentSessionRuntimeCapabilities(mode) {
|
|
6786
6786
|
return AGENT_SESSION_RUNTIME_CAPABILITIES[mode];
|
|
@@ -6844,6 +6844,42 @@ var AgentSessionContextInheritanceSchema = z3.object({
|
|
|
6844
6844
|
toolResults: z3.enum(["inherit", "exclude"]),
|
|
6845
6845
|
codeChanges: z3.enum(["inherit", "exclude"])
|
|
6846
6846
|
}).strict();
|
|
6847
|
+
var AgentSessionInheritedContextMessageSchema = z3.object({
|
|
6848
|
+
messageId: ContractIdentifierSchema,
|
|
6849
|
+
role: z3.enum(["user", "assistant"]),
|
|
6850
|
+
parts: z3.array(JsonValueSchema).min(1)
|
|
6851
|
+
}).strict();
|
|
6852
|
+
var AgentSessionUnavailableResourceSchema = z3.object({
|
|
6853
|
+
messageId: ContractIdentifierSchema,
|
|
6854
|
+
kind: z3.enum(["attachment", "tool-result", "code-change"]),
|
|
6855
|
+
reason: z3.enum(["excluded", "unavailable", "unsupported"])
|
|
6856
|
+
}).strict();
|
|
6857
|
+
var AgentSessionInheritedContextSchema = z3.object({
|
|
6858
|
+
sourceThreadId: ContractIdentifierSchema,
|
|
6859
|
+
sourceMessageId: ContractIdentifierSchema,
|
|
6860
|
+
sourceRunId: ContractIdentifierSchema,
|
|
6861
|
+
messages: z3.array(AgentSessionInheritedContextMessageSchema).max(24),
|
|
6862
|
+
summary: z3.string().trim().min(1).optional(),
|
|
6863
|
+
unavailableResources: z3.array(AgentSessionUnavailableResourceSchema).default([]),
|
|
6864
|
+
capturedAt: IsoDateTimeSchema
|
|
6865
|
+
}).strict();
|
|
6866
|
+
var AgentSessionContinuationRequestSchema = z3.object({
|
|
6867
|
+
contract: z3.literal("AgentSessionContinuationRequest"),
|
|
6868
|
+
idempotencyKey: ContractIdentifierSchema,
|
|
6869
|
+
sourceMessageId: ContractIdentifierSchema,
|
|
6870
|
+
sourceRunId: ContractIdentifierSchema,
|
|
6871
|
+
inheritance: AgentSessionContextInheritanceSchema
|
|
6872
|
+
}).strict();
|
|
6873
|
+
var AgentSessionContinuationResultSchema = z3.object({
|
|
6874
|
+
contract: z3.literal("AgentSessionContinuationResult"),
|
|
6875
|
+
idempotencyKey: ContractIdentifierSchema,
|
|
6876
|
+
threadId: ContractIdentifierSchema,
|
|
6877
|
+
lineage: AgentSessionLineageSchema,
|
|
6878
|
+
inheritance: AgentSessionContextInheritanceSchema,
|
|
6879
|
+
unavailableResources: z3.array(AgentSessionUnavailableResourceSchema).default([]),
|
|
6880
|
+
duplicate: z3.boolean(),
|
|
6881
|
+
createdAt: IsoDateTimeSchema
|
|
6882
|
+
}).strict();
|
|
6847
6883
|
var AgentSessionActiveBranchSchema = z3.object({
|
|
6848
6884
|
branchId: ContractIdentifierSchema,
|
|
6849
6885
|
threadId: ContractIdentifierSchema,
|
|
@@ -12059,6 +12095,8 @@ var canonicalContractSchemas = {
|
|
|
12059
12095
|
"agent-session-command": AgentSessionCommandSchema,
|
|
12060
12096
|
"agent-session-targeted-command": AgentSessionTargetedCommandSchema,
|
|
12061
12097
|
"agent-session-command-result": AgentSessionCommandResultSchema,
|
|
12098
|
+
"agent-session-continuation-request": AgentSessionContinuationRequestSchema,
|
|
12099
|
+
"agent-session-continuation-result": AgentSessionContinuationResultSchema,
|
|
12062
12100
|
"agent-session-event": AgentSessionEventSchema,
|
|
12063
12101
|
"agent-session-run-event": AgentSessionRunEventSchema,
|
|
12064
12102
|
"agent-session-run": AgentSessionRunSchema,
|
|
@@ -13371,7 +13409,11 @@ export {
|
|
|
13371
13409
|
AgentSessionCommandSchema,
|
|
13372
13410
|
AgentSessionCommandTypeSchema,
|
|
13373
13411
|
AgentSessionContextInheritanceSchema,
|
|
13412
|
+
AgentSessionContinuationRequestSchema,
|
|
13413
|
+
AgentSessionContinuationResultSchema,
|
|
13374
13414
|
AgentSessionEventSchema,
|
|
13415
|
+
AgentSessionInheritedContextMessageSchema,
|
|
13416
|
+
AgentSessionInheritedContextSchema,
|
|
13375
13417
|
AgentSessionLineageSchema,
|
|
13376
13418
|
AgentSessionRunEventSchema,
|
|
13377
13419
|
AgentSessionRunSchema,
|
|
@@ -13379,6 +13421,7 @@ export {
|
|
|
13379
13421
|
AgentSessionStatusSchema,
|
|
13380
13422
|
AgentSessionTargetedCommandSchema,
|
|
13381
13423
|
AgentSessionTerminalStatusSchema,
|
|
13424
|
+
AgentSessionUnavailableResourceSchema,
|
|
13382
13425
|
AgentSessionViewModelSchema,
|
|
13383
13426
|
ApplicationHandoffEndpointSchema,
|
|
13384
13427
|
ApplicationHandoffSchema,
|