@agen-ai/agent-protocol 0.3.1 → 0.4.0
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/README.md +52 -8
- package/dist/capabilities/types.d.ts +1 -1
- package/dist/events/types.d.ts +12 -4
- package/dist/events/types.js +1 -0
- package/dist/failures/index.d.ts +3 -0
- package/dist/failures/index.js +2 -0
- package/dist/failures/parsers.d.ts +5 -0
- package/dist/failures/parsers.js +12 -0
- package/dist/failures/types.d.ts +41 -0
- package/dist/failures/types.js +21 -0
- package/dist/foundation/parsers.d.ts +2 -3
- package/dist/foundation/parsers.js +1 -7
- package/dist/foundation/types.d.ts +2 -12
- package/dist/foundation/types.js +1 -1
- package/dist/jsonSchema/generated.d.ts +3634 -2283
- package/dist/jsonSchema/generated.js +2206 -1246
- package/dist/public/index.d.ts +1 -0
- package/dist/public/index.js +1 -0
- package/dist/zod/accountQuota.d.ts +8 -0
- package/dist/zod/accountQuota.js +7 -5
- package/dist/zod/capabilities.d.ts +3 -3
- package/dist/zod/collaboration.js +1 -1
- package/dist/zod/events.d.ts +42 -31
- package/dist/zod/events.js +17 -3
- package/dist/zod/failures.d.ts +23 -0
- package/dist/zod/failures.js +76 -0
- package/dist/zod/foundation.d.ts +1 -7
- package/dist/zod/foundation.js +0 -13
- package/dist/zod/index.d.ts +2 -1
- package/dist/zod/index.js +10 -2
- package/dist/zod/operations.d.ts +4 -4
- package/dist/zod/operations.js +1 -1
- package/dist/zod/resources.js +1 -1
- package/dist/zod/turns.js +1 -1
- package/dist/zod/typeEquality.generated.d.ts +16 -4
- package/package.json +2 -2
package/dist/zod/turns.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
|
+
import { AgentErrorSchema } from "./failures.js";
|
|
2
3
|
import {
|
|
3
4
|
AGENT_PROTOCOL_COLLECTION_MAX_LENGTH,
|
|
4
5
|
AGENT_PROTOCOL_SUMMARY_MAX_LENGTH,
|
|
@@ -21,7 +22,6 @@ import {
|
|
|
21
22
|
} from "../turns/types.js";
|
|
22
23
|
import {
|
|
23
24
|
AgentCanonicalIdValueSchema,
|
|
24
|
-
AgentErrorSchema,
|
|
25
25
|
AgentEnvironmentIdSchema,
|
|
26
26
|
AgentEffectiveContentIdSchema,
|
|
27
27
|
AgentIsoDateTimeSchema,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { z } from 'zod/v4';
|
|
2
|
-
import type { AgentAccountQuotaSnapshot, AgentAccountQuotaWindow } from '../accountQuota/types.js';
|
|
2
|
+
import type { AgentAccountQuotaReset, AgentAccountQuotaSnapshot, AgentAccountQuotaWindow } from '../accountQuota/types.js';
|
|
3
3
|
import type { AgentArtifactDescriptor } from '../artifacts/types.js';
|
|
4
4
|
import type { AgentCapabilities } from '../capabilities/types.js';
|
|
5
5
|
import type { AgentCollaborationControlInput, AgentCollaborationNode, AgentCollaborationSpawnInput } from '../collaboration/types.js';
|
|
@@ -9,7 +9,8 @@ import type { AgentEffectiveContentCatalog, AgentEffectiveContentDescriptor } fr
|
|
|
9
9
|
import type { AgentEnvironmentCapability, AgentEnvironmentInvalidation, AgentEnvironmentSnapshot } from '../environment/types.js';
|
|
10
10
|
import type { AgentEvent } from '../events/types.js';
|
|
11
11
|
import type { AgentExtensionCatalog, AgentExtensionDescriptor } from '../extensions/types.js';
|
|
12
|
-
import type { AgentError,
|
|
12
|
+
import type { AgentError, AgentErrorContext, AgentFailureCategory, AgentFailureQuotaReference, AgentRecoveryHint } from '../failures/types.js';
|
|
13
|
+
import type { AgentJsonValue, AgentProviderRefs } from '../foundation/types.js';
|
|
13
14
|
import type { AgentIntegrationCatalog, AgentIntegrationDescriptor, AgentMcpIntegrationDescriptor } from '../integrations/types.js';
|
|
14
15
|
import type { AgentManagedContentCatalog, AgentManagedContentDescriptor } from '../managedContent/types.js';
|
|
15
16
|
import type { AgentOperationCatalog, AgentOperationDescriptor, AgentOperationInvocation, AgentOperationResult } from '../operations/types.js';
|
|
@@ -17,7 +18,7 @@ import type { AgentRequest, AgentRequestResolution } from '../requests/types.js'
|
|
|
17
18
|
import type { AgentGeneratedResourceDescriptor } from '../resources/types.js';
|
|
18
19
|
import type { AgentSessionBinding, AgentSessionConfiguration, AgentSessionOpenInput } from '../sessions/types.js';
|
|
19
20
|
import type { AgentContentReferenceInputPart, AgentItemSnapshot, AgentTurnInputContent, AgentTurnInterruptionInput, AgentTurnRunInput } from '../turns/types.js';
|
|
20
|
-
import { AgentAccountQuotaSnapshotSchema, AgentAccountQuotaWindowSchema } from './accountQuota.js';
|
|
21
|
+
import { AgentAccountQuotaResetSchema, AgentAccountQuotaSnapshotSchema, AgentAccountQuotaWindowSchema } from './accountQuota.js';
|
|
21
22
|
import { AgentArtifactDescriptorSchema } from './artifacts.js';
|
|
22
23
|
import { AgentCapabilitiesSchema } from './capabilities.js';
|
|
23
24
|
import { AgentCollaborationControlInputSchema, AgentCollaborationNodeSchema, AgentCollaborationSpawnInputSchema } from './collaboration.js';
|
|
@@ -27,7 +28,8 @@ import { AgentEffectiveContentCatalogSchema, AgentEffectiveContentDescriptorSche
|
|
|
27
28
|
import { AgentEnvironmentCapabilitySchema, AgentEnvironmentInvalidationSchema, AgentEnvironmentSnapshotSchema } from './environment.js';
|
|
28
29
|
import { AgentEventSchema } from './events.js';
|
|
29
30
|
import { AgentExtensionCatalogSchema, AgentExtensionDescriptorSchema } from './extensions.js';
|
|
30
|
-
import { AgentErrorSchema,
|
|
31
|
+
import { AgentErrorContextSchema, AgentErrorSchema, AgentFailureCategorySchema, AgentFailureQuotaReferenceSchema, AgentRecoveryHintSchema } from './failures.js';
|
|
32
|
+
import { AgentJsonValueSchema, AgentProviderRefsSchema } from './foundation.js';
|
|
31
33
|
import { AgentIntegrationCatalogSchema, AgentIntegrationDescriptorSchema, AgentMcpIntegrationDescriptorSchema } from './integrations.js';
|
|
32
34
|
import { AgentManagedContentCatalogSchema, AgentManagedContentDescriptorSchema } from './managedContent.js';
|
|
33
35
|
import { AgentOperationCatalogSchema, AgentOperationDescriptorSchema, AgentOperationInvocationSchema, AgentOperationResultSchema } from './operations.js';
|
|
@@ -62,12 +64,22 @@ export type AgentProtocolSchemaTypeAssertions = readonly [
|
|
|
62
64
|
Assert<Extends<AgentAccountQuotaSnapshot, z.output<typeof AgentAccountQuotaSnapshotSchema>>>,
|
|
63
65
|
Assert<Extends<z.output<typeof AgentAccountQuotaWindowSchema>, AgentAccountQuotaWindow>>,
|
|
64
66
|
Assert<Extends<AgentAccountQuotaWindow, z.output<typeof AgentAccountQuotaWindowSchema>>>,
|
|
67
|
+
Assert<Extends<z.output<typeof AgentAccountQuotaResetSchema>, AgentAccountQuotaReset>>,
|
|
68
|
+
Assert<Extends<AgentAccountQuotaReset, z.output<typeof AgentAccountQuotaResetSchema>>>,
|
|
65
69
|
Assert<Extends<z.output<typeof AgentJsonValueSchema>, AgentJsonValue>>,
|
|
66
70
|
Assert<Extends<AgentJsonValue, z.output<typeof AgentJsonValueSchema>>>,
|
|
67
71
|
Assert<Extends<z.output<typeof AgentProviderRefsSchema>, AgentProviderRefs>>,
|
|
68
72
|
Assert<Extends<AgentProviderRefs, z.output<typeof AgentProviderRefsSchema>>>,
|
|
69
73
|
Assert<Extends<z.output<typeof AgentErrorSchema>, AgentError>>,
|
|
70
74
|
Assert<Extends<AgentError, z.output<typeof AgentErrorSchema>>>,
|
|
75
|
+
Assert<Extends<z.output<typeof AgentErrorContextSchema>, AgentErrorContext>>,
|
|
76
|
+
Assert<Extends<AgentErrorContext, z.output<typeof AgentErrorContextSchema>>>,
|
|
77
|
+
Assert<Extends<z.output<typeof AgentFailureCategorySchema>, AgentFailureCategory>>,
|
|
78
|
+
Assert<Extends<AgentFailureCategory, z.output<typeof AgentFailureCategorySchema>>>,
|
|
79
|
+
Assert<Extends<z.output<typeof AgentFailureQuotaReferenceSchema>, AgentFailureQuotaReference>>,
|
|
80
|
+
Assert<Extends<AgentFailureQuotaReference, z.output<typeof AgentFailureQuotaReferenceSchema>>>,
|
|
81
|
+
Assert<Extends<z.output<typeof AgentRecoveryHintSchema>, AgentRecoveryHint>>,
|
|
82
|
+
Assert<Extends<AgentRecoveryHint, z.output<typeof AgentRecoveryHintSchema>>>,
|
|
71
83
|
Assert<Extends<z.output<typeof AgentSessionBindingSchema>, AgentSessionBinding>>,
|
|
72
84
|
Assert<Extends<AgentSessionBinding, z.output<typeof AgentSessionBindingSchema>>>,
|
|
73
85
|
Assert<Extends<z.output<typeof AgentSessionConfigurationSchema>, AgentSessionConfiguration>>,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agen-ai/agent-protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Provider-neutral sessions, turns, requests, capabilities, artifacts, and events for coding-agent runtimes.",
|
|
6
6
|
"type": "module",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
},
|
|
101
101
|
"dependencies": {
|
|
102
102
|
"zod": "4.4.3",
|
|
103
|
-
"@agen-ai/validation": "^0.
|
|
103
|
+
"@agen-ai/validation": "^0.4.0"
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
106
|
"ajv": "8.17.1",
|