ankka 0.12.0 → 0.14.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/dist/_proto/ankka/protocol/v1/client_pb.d.ts +594 -0
- package/dist/_proto/ankka/protocol/v1/client_pb.js +172 -30
- package/dist/_proto/ankka/protocol/v1/consumer_pb.js +1 -1
- package/dist/_proto/ankka/protocol/v1/discovery_pb.d.ts +134 -0
- package/dist/_proto/ankka/protocol/v1/discovery_pb.js +51 -36
- package/dist/_proto/ankka/protocol/v1/event_sourced_pb.d.ts +24 -0
- package/dist/_proto/ankka/protocol/v1/event_sourced_pb.js +1 -1
- package/dist/_proto/ankka/protocol/v1/mcp_pb.d.ts +120 -0
- package/dist/_proto/ankka/protocol/v1/mcp_pb.js +29 -0
- package/dist/_proto/ankka/protocol/v1/timed_action_pb.js +1 -1
- package/dist/_proto/ankka/protocol/v1/view_pb.js +1 -1
- package/dist/_proto/ankka/protocol/v1/wasm_pb.d.ts +12 -0
- package/dist/_proto/ankka/protocol/v1/wasm_pb.js +1 -1
- package/dist/agent.d.ts +10 -0
- package/dist/agent.js +20 -0
- package/dist/autonomous.d.ts +5 -0
- package/dist/autonomous.js +10 -0
- package/dist/client-keys.d.ts +89 -0
- package/dist/client-keys.js +182 -0
- package/dist/consumer.d.ts +5 -0
- package/dist/consumer.js +10 -0
- package/dist/context.d.ts +11 -3
- package/dist/context.js +20 -4
- package/dist/endpoint.d.ts +10 -0
- package/dist/endpoint.js +20 -0
- package/dist/graph.d.ts +5 -0
- package/dist/graph.js +10 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.js +5 -0
- package/dist/mcp-endpoint.d.ts +144 -0
- package/dist/mcp-endpoint.js +256 -0
- package/dist/routes.d.ts +25 -2
- package/dist/routes.js +29 -2
- package/dist/server/discovery.d.ts +7 -0
- package/dist/server/discovery.js +26 -2
- package/dist/server/eventSourced.js +3 -3
- package/dist/server/http.d.ts +8 -0
- package/dist/server/http.js +10 -4
- package/dist/server/mcp.d.ts +17 -0
- package/dist/server/mcp.js +157 -0
- package/dist/server/server.d.ts +11 -1
- package/dist/server/server.js +19 -0
- package/dist/server/storageEndpoint.d.ts +14 -0
- package/dist/server/storageEndpoint.js +82 -0
- package/dist/service.d.ts +6 -1
- package/dist/service.js +47 -4
- package/dist/sigv4.d.ts +47 -0
- package/dist/sigv4.js +149 -0
- package/dist/spec.d.ts +8 -2
- package/dist/spec.js +53 -3
- package/dist/storage.d.ts +288 -0
- package/dist/storage.js +1081 -0
- package/dist/testkit/integration.d.ts +9 -0
- package/dist/testkit/integration.js +5 -1
- package/dist/testkit/kinds.d.ts +16 -4
- package/dist/testkit/kinds.js +36 -14
- package/dist/testkit/unit.d.ts +4 -1
- package/dist/testkit/unit.js +8 -4
- package/dist/timedAction.d.ts +10 -0
- package/dist/timedAction.js +20 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/workflow.d.ts +8 -0
- package/dist/workflow.js +15 -0
- package/package.json +2 -2
|
@@ -5,7 +5,7 @@ import { file_ankka_protocol_v1_payload } from "./payload_pb.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* Describes the file ankka/protocol/v1/discovery.proto.
|
|
7
7
|
*/
|
|
8
|
-
export const file_ankka_protocol_v1_discovery = /*@__PURE__*/ fileDesc("
|
|
8
|
+
export const file_ankka_protocol_v1_discovery = /*@__PURE__*/ fileDesc("CiFhbmtrYS9wcm90b2NvbC92MS9kaXNjb3ZlcnkucHJvdG8SEWFua2thLnByb3RvY29sLnYxIkAKC1NpZGVjYXJJbmZvEhgKEHByb3RvY29sX3ZlcnNpb24YASABKAkSFwoPcnVudGltZV92ZXJzaW9uGAIgASgJIuIBCgRTcGVjEhgKEHByb3RvY29sX3ZlcnNpb24YASABKAkSJwoDc2RrGAIgASgLMhouYW5ra2EucHJvdG9jb2wudjEuU2RrSW5mbxIwCgpjb21wb25lbnRzGAMgAygLMhwuYW5ra2EucHJvdG9jb2wudjEuQ29tc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iAuYW5ra2EucHJvdG9jb2wudjEuQ2FsbGVyTWF0Y2hlchIOCgZzb2NrZXQYCCABKAhCBgoEX2FjbCIaCgdQcm9ibGVtEg8KB21lc3NhZ2UYASABKAkqjwEKBEtpbmQSGAoURVZFTlRfU09VUkNFRF9FTlRJVFkQABIUChBLRVlfVkFMVUVfRU5USVRZEAESDAoIV09SS0ZMT1cQAhIICgRWSUVXEAMSDAoIQ09OU1VNRVIQBBIQCgxUSU1FRF9BQ1RJT04QBRIJCgVBR0VOVBAGEhQKEEFVVE9OT01PVVNfQUdFTlQQBzKVAQoJRGlzY292ZXJ5EkMKCERpc2NvdmVyEh4uYW5ra2EucHJvdG9jb2wudjEuU2lkZWNhckluZm8aFy5hbmtrYS5wcm90b2NvbC52MS5TcGVjEkMKC1JlcG9ydEVycm9yEhouYW5ra2EucHJvdG9jb2wudjEuUHJvYmxlbRoYLmFua2thLnByb3RvY29sLnYxLkVtcHR5YgZwcm90bzM", [file_ankka_protocol_v1_payload]);
|
|
9
9
|
/**
|
|
10
10
|
* Describes the message ankka.protocol.v1.SidecarInfo.
|
|
11
11
|
* Use `create(SidecarInfoSchema)` to create a new message.
|
|
@@ -16,76 +16,91 @@ export const SidecarInfoSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v
|
|
|
16
16
|
* Use `create(SpecSchema)` to create a new message.
|
|
17
17
|
*/
|
|
18
18
|
export const SpecSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 1);
|
|
19
|
+
/**
|
|
20
|
+
* Describes the message ankka.protocol.v1.McpEndpoint.
|
|
21
|
+
* Use `create(McpEndpointSchema)` to create a new message.
|
|
22
|
+
*/
|
|
23
|
+
export const McpEndpointSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 2);
|
|
24
|
+
/**
|
|
25
|
+
* Describes the message ankka.protocol.v1.McpTool.
|
|
26
|
+
* Use `create(McpToolSchema)` to create a new message.
|
|
27
|
+
*/
|
|
28
|
+
export const McpToolSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 3);
|
|
29
|
+
/**
|
|
30
|
+
* Describes the message ankka.protocol.v1.McpAcl.
|
|
31
|
+
* Use `create(McpAclSchema)` to create a new message.
|
|
32
|
+
*/
|
|
33
|
+
export const McpAclSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 4);
|
|
19
34
|
/**
|
|
20
35
|
* Describes the message ankka.protocol.v1.SdkInfo.
|
|
21
36
|
* Use `create(SdkInfoSchema)` to create a new message.
|
|
22
37
|
*/
|
|
23
|
-
export const SdkInfoSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
38
|
+
export const SdkInfoSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 5);
|
|
24
39
|
/**
|
|
25
40
|
* Describes the message ankka.protocol.v1.Component.
|
|
26
41
|
* Use `create(ComponentSchema)` to create a new message.
|
|
27
42
|
*/
|
|
28
|
-
export const ComponentSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
43
|
+
export const ComponentSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 6);
|
|
29
44
|
/**
|
|
30
45
|
* Describes the message ankka.protocol.v1.Handler.
|
|
31
46
|
* Use `create(HandlerSchema)` to create a new message.
|
|
32
47
|
*/
|
|
33
|
-
export const HandlerSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
48
|
+
export const HandlerSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 7);
|
|
34
49
|
/**
|
|
35
50
|
* Describes the message ankka.protocol.v1.EventSourcedDetail.
|
|
36
51
|
* Use `create(EventSourcedDetailSchema)` to create a new message.
|
|
37
52
|
*/
|
|
38
|
-
export const EventSourcedDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
53
|
+
export const EventSourcedDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 8);
|
|
39
54
|
/**
|
|
40
55
|
* Describes the message ankka.protocol.v1.KeyValueDetail.
|
|
41
56
|
* Use `create(KeyValueDetailSchema)` to create a new message.
|
|
42
57
|
*/
|
|
43
|
-
export const KeyValueDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
58
|
+
export const KeyValueDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 9);
|
|
44
59
|
/**
|
|
45
60
|
* Describes the message ankka.protocol.v1.WorkflowDetail.
|
|
46
61
|
* Use `create(WorkflowDetailSchema)` to create a new message.
|
|
47
62
|
*/
|
|
48
|
-
export const WorkflowDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
63
|
+
export const WorkflowDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 10);
|
|
49
64
|
/**
|
|
50
65
|
* Describes the message ankka.protocol.v1.WorkflowDetail.Settings.
|
|
51
66
|
* Use `create(WorkflowDetail_SettingsSchema)` to create a new message.
|
|
52
67
|
*/
|
|
53
|
-
export const WorkflowDetail_SettingsSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
68
|
+
export const WorkflowDetail_SettingsSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 10, 0);
|
|
54
69
|
/**
|
|
55
70
|
* Describes the message ankka.protocol.v1.WorkflowDetail.StepSettings.
|
|
56
71
|
* Use `create(WorkflowDetail_StepSettingsSchema)` to create a new message.
|
|
57
72
|
*/
|
|
58
|
-
export const WorkflowDetail_StepSettingsSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
73
|
+
export const WorkflowDetail_StepSettingsSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 10, 1);
|
|
59
74
|
/**
|
|
60
75
|
* Describes the message ankka.protocol.v1.WorkflowDetail.Recovery.
|
|
61
76
|
* Use `create(WorkflowDetail_RecoverySchema)` to create a new message.
|
|
62
77
|
*/
|
|
63
|
-
export const WorkflowDetail_RecoverySchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
78
|
+
export const WorkflowDetail_RecoverySchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 10, 2);
|
|
64
79
|
/**
|
|
65
80
|
* Describes the message ankka.protocol.v1.Source.
|
|
66
81
|
* Use `create(SourceSchema)` to create a new message.
|
|
67
82
|
*/
|
|
68
|
-
export const SourceSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
83
|
+
export const SourceSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 11);
|
|
69
84
|
/**
|
|
70
85
|
* Describes the message ankka.protocol.v1.Source.ComponentRef.
|
|
71
86
|
* Use `create(Source_ComponentRefSchema)` to create a new message.
|
|
72
87
|
*/
|
|
73
|
-
export const Source_ComponentRefSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
88
|
+
export const Source_ComponentRefSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 11, 0);
|
|
74
89
|
/**
|
|
75
90
|
* Describes the message ankka.protocol.v1.Contract.
|
|
76
91
|
* Use `create(ContractSchema)` to create a new message.
|
|
77
92
|
*/
|
|
78
|
-
export const ContractSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
93
|
+
export const ContractSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 12);
|
|
79
94
|
/**
|
|
80
95
|
* Describes the message ankka.protocol.v1.Publication.
|
|
81
96
|
* Use `create(PublicationSchema)` to create a new message.
|
|
82
97
|
*/
|
|
83
|
-
export const PublicationSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
98
|
+
export const PublicationSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 13);
|
|
84
99
|
/**
|
|
85
100
|
* Describes the message ankka.protocol.v1.StartFrom.
|
|
86
101
|
* Use `create(StartFromSchema)` to create a new message.
|
|
87
102
|
*/
|
|
88
|
-
export const StartFromSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
103
|
+
export const StartFromSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 14);
|
|
89
104
|
/**
|
|
90
105
|
* @generated from enum ankka.protocol.v1.StartFrom.Named
|
|
91
106
|
*/
|
|
@@ -110,82 +125,82 @@ export const StartFrom_Named = {
|
|
|
110
125
|
/**
|
|
111
126
|
* Describes the enum ankka.protocol.v1.StartFrom.Named.
|
|
112
127
|
*/
|
|
113
|
-
export const StartFrom_NamedSchema = /*@__PURE__*/ enumDesc(file_ankka_protocol_v1_discovery,
|
|
128
|
+
export const StartFrom_NamedSchema = /*@__PURE__*/ enumDesc(file_ankka_protocol_v1_discovery, 14, 0);
|
|
114
129
|
/**
|
|
115
130
|
* Describes the message ankka.protocol.v1.ViewDetail.
|
|
116
131
|
* Use `create(ViewDetailSchema)` to create a new message.
|
|
117
132
|
*/
|
|
118
|
-
export const ViewDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
133
|
+
export const ViewDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 15);
|
|
119
134
|
/**
|
|
120
135
|
* Describes the message ankka.protocol.v1.DeclaredQuery.
|
|
121
136
|
* Use `create(DeclaredQuerySchema)` to create a new message.
|
|
122
137
|
*/
|
|
123
|
-
export const DeclaredQuerySchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
138
|
+
export const DeclaredQuerySchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 16);
|
|
124
139
|
/**
|
|
125
140
|
* Describes the message ankka.protocol.v1.ConsumerDetail.
|
|
126
141
|
* Use `create(ConsumerDetailSchema)` to create a new message.
|
|
127
142
|
*/
|
|
128
|
-
export const ConsumerDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
143
|
+
export const ConsumerDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 17);
|
|
129
144
|
/**
|
|
130
145
|
* Describes the message ankka.protocol.v1.TimedActionDetail.
|
|
131
146
|
* Use `create(TimedActionDetailSchema)` to create a new message.
|
|
132
147
|
*/
|
|
133
|
-
export const TimedActionDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
148
|
+
export const TimedActionDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 18);
|
|
134
149
|
/**
|
|
135
150
|
* Describes the message ankka.protocol.v1.AgentDetail.
|
|
136
151
|
* Use `create(AgentDetailSchema)` to create a new message.
|
|
137
152
|
*/
|
|
138
|
-
export const AgentDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
153
|
+
export const AgentDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 19);
|
|
139
154
|
/**
|
|
140
155
|
* Describes the message ankka.protocol.v1.Tool.
|
|
141
156
|
* Use `create(ToolSchema)` to create a new message.
|
|
142
157
|
*/
|
|
143
|
-
export const ToolSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
158
|
+
export const ToolSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 20);
|
|
144
159
|
/**
|
|
145
160
|
* Describes the message ankka.protocol.v1.Approval.
|
|
146
161
|
* Use `create(ApprovalSchema)` to create a new message.
|
|
147
162
|
*/
|
|
148
|
-
export const ApprovalSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
163
|
+
export const ApprovalSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 21);
|
|
149
164
|
/**
|
|
150
165
|
* Describes the message ankka.protocol.v1.McpServer.
|
|
151
166
|
* Use `create(McpServerSchema)` to create a new message.
|
|
152
167
|
*/
|
|
153
|
-
export const McpServerSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
168
|
+
export const McpServerSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 22);
|
|
154
169
|
/**
|
|
155
170
|
* Describes the message ankka.protocol.v1.McpServer.Service.
|
|
156
171
|
* Use `create(McpServer_ServiceSchema)` to create a new message.
|
|
157
172
|
*/
|
|
158
|
-
export const McpServer_ServiceSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
173
|
+
export const McpServer_ServiceSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 22, 0);
|
|
159
174
|
/**
|
|
160
175
|
* Describes the message ankka.protocol.v1.McpServer.Header.
|
|
161
176
|
* Use `create(McpServer_HeaderSchema)` to create a new message.
|
|
162
177
|
*/
|
|
163
|
-
export const McpServer_HeaderSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
178
|
+
export const McpServer_HeaderSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 22, 1);
|
|
164
179
|
/**
|
|
165
180
|
* Describes the message ankka.protocol.v1.AutonomousAgentDetail.
|
|
166
181
|
* Use `create(AutonomousAgentDetailSchema)` to create a new message.
|
|
167
182
|
*/
|
|
168
|
-
export const AutonomousAgentDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
183
|
+
export const AutonomousAgentDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 23);
|
|
169
184
|
/**
|
|
170
185
|
* Describes the message ankka.protocol.v1.AutonomousAgentDetail.TaskType.
|
|
171
186
|
* Use `create(AutonomousAgentDetail_TaskTypeSchema)` to create a new message.
|
|
172
187
|
*/
|
|
173
|
-
export const AutonomousAgentDetail_TaskTypeSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
188
|
+
export const AutonomousAgentDetail_TaskTypeSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 23, 0);
|
|
174
189
|
/**
|
|
175
190
|
* Describes the message ankka.protocol.v1.AutonomousAgentDetail.TaskAcceptance.
|
|
176
191
|
* Use `create(AutonomousAgentDetail_TaskAcceptanceSchema)` to create a new message.
|
|
177
192
|
*/
|
|
178
|
-
export const AutonomousAgentDetail_TaskAcceptanceSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
193
|
+
export const AutonomousAgentDetail_TaskAcceptanceSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 23, 1);
|
|
179
194
|
/**
|
|
180
195
|
* Describes the message ankka.protocol.v1.AutonomousAgentDetail.AutonomousSettings.
|
|
181
196
|
* Use `create(AutonomousAgentDetail_AutonomousSettingsSchema)` to create a new message.
|
|
182
197
|
*/
|
|
183
|
-
export const AutonomousAgentDetail_AutonomousSettingsSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
198
|
+
export const AutonomousAgentDetail_AutonomousSettingsSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 23, 2);
|
|
184
199
|
/**
|
|
185
200
|
* Describes the message ankka.protocol.v1.Endpoint.
|
|
186
201
|
* Use `create(EndpointSchema)` to create a new message.
|
|
187
202
|
*/
|
|
188
|
-
export const EndpointSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
203
|
+
export const EndpointSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 24);
|
|
189
204
|
/**
|
|
190
205
|
* @generated from enum ankka.protocol.v1.Endpoint.Acl
|
|
191
206
|
*/
|
|
@@ -210,27 +225,27 @@ export const Endpoint_Acl = {
|
|
|
210
225
|
/**
|
|
211
226
|
* Describes the enum ankka.protocol.v1.Endpoint.Acl.
|
|
212
227
|
*/
|
|
213
|
-
export const Endpoint_AclSchema = /*@__PURE__*/ enumDesc(file_ankka_protocol_v1_discovery,
|
|
228
|
+
export const Endpoint_AclSchema = /*@__PURE__*/ enumDesc(file_ankka_protocol_v1_discovery, 24, 0);
|
|
214
229
|
/**
|
|
215
230
|
* Describes the message ankka.protocol.v1.CallerMatcher.
|
|
216
231
|
* Use `create(CallerMatcherSchema)` to create a new message.
|
|
217
232
|
*/
|
|
218
|
-
export const CallerMatcherSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
233
|
+
export const CallerMatcherSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 25);
|
|
219
234
|
/**
|
|
220
235
|
* Describes the message ankka.protocol.v1.NamedService.
|
|
221
236
|
* Use `create(NamedServiceSchema)` to create a new message.
|
|
222
237
|
*/
|
|
223
|
-
export const NamedServiceSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
238
|
+
export const NamedServiceSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 26);
|
|
224
239
|
/**
|
|
225
240
|
* Describes the message ankka.protocol.v1.Route.
|
|
226
241
|
* Use `create(RouteSchema)` to create a new message.
|
|
227
242
|
*/
|
|
228
|
-
export const RouteSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
243
|
+
export const RouteSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 27);
|
|
229
244
|
/**
|
|
230
245
|
* Describes the message ankka.protocol.v1.Problem.
|
|
231
246
|
* Use `create(ProblemSchema)` to create a new message.
|
|
232
247
|
*/
|
|
233
|
-
export const ProblemSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
248
|
+
export const ProblemSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 28);
|
|
234
249
|
/**
|
|
235
250
|
* @generated from enum ankka.protocol.v1.Kind
|
|
236
251
|
*/
|
|
@@ -107,6 +107,18 @@ export type EventSourcedIn_Event = Message<"ankka.protocol.v1.EventSourcedIn.Eve
|
|
|
107
107
|
* @generated from field: string installation = 3;
|
|
108
108
|
*/
|
|
109
109
|
installation: string;
|
|
110
|
+
/**
|
|
111
|
+
* 1.22: who acted, as recorded; empty when none
|
|
112
|
+
*
|
|
113
|
+
* @generated from field: string attribution = 4;
|
|
114
|
+
*/
|
|
115
|
+
attribution: string;
|
|
116
|
+
/**
|
|
117
|
+
* 1.22: where it was forwarded from, as recorded
|
|
118
|
+
*
|
|
119
|
+
* @generated from field: string forwarded_from = 5;
|
|
120
|
+
*/
|
|
121
|
+
forwardedFrom: string;
|
|
110
122
|
};
|
|
111
123
|
/**
|
|
112
124
|
* Describes the message ankka.protocol.v1.EventSourcedIn.Event.
|
|
@@ -156,6 +168,18 @@ export type EventSourcedIn_Command = Message<"ankka.protocol.v1.EventSourcedIn.C
|
|
|
156
168
|
* @generated from field: bool at_home = 7;
|
|
157
169
|
*/
|
|
158
170
|
atHome: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* 1.22: the subject of the principal who made the original call; empty when none named one.
|
|
173
|
+
*
|
|
174
|
+
* @generated from field: string attribution = 8;
|
|
175
|
+
*/
|
|
176
|
+
attribution: string;
|
|
177
|
+
/**
|
|
178
|
+
* 1.22: the installation this command was forwarded from to its home; empty when it was not.
|
|
179
|
+
*
|
|
180
|
+
* @generated from field: string forwarded_from = 9;
|
|
181
|
+
*/
|
|
182
|
+
forwardedFrom: string;
|
|
159
183
|
};
|
|
160
184
|
/**
|
|
161
185
|
* Describes the message ankka.protocol.v1.EventSourcedIn.Command.
|
|
@@ -5,7 +5,7 @@ import { file_ankka_protocol_v1_payload } from "./payload_pb.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* Describes the file ankka/protocol/v1/event_sourced.proto.
|
|
7
7
|
*/
|
|
8
|
-
export const file_ankka_protocol_v1_event_sourced = /*@__PURE__*/ fileDesc("
|
|
8
|
+
export const file_ankka_protocol_v1_event_sourced = /*@__PURE__*/ fileDesc("CiVhbmtrYS9wcm90b2NvbC92MS9ldmVudF9zb3VyY2VkLnByb3RvEhFhbmtrYS5wcm90b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XJjZWRPdXQSOQoFcmVwbHkYASABKAsyKC5hbmtrYS5wcm90b2NvbC52MS5FdmVudFNvdXJjZWRPdXQuUmVwbHlIABItCgdmYWlsdXJlGAIgASgLMhouYW5ra2EucHJvdG9jb2wudjEuRmFpbHVyZUgAGsgCCgVSZXBseRISCgpjb21tYW5kX2lkGAEgASgDEioKBmV2ZW50cxgCIAMoCzIaLmFua2thLnByb3RvY29sLnYxLlBheWxvYWQSNAoJcmV0ZW50aW9uGAMgASgLMhwuYW5ra2EucHJvdG9jb2wudjEuUmV0ZW50aW9uSACIAQESKwoHb3V0Y29tZRgEIAEoCzIaLmFua2thLnByb3RvY29sLnYxLk91dGNvbWUSMQoIc25hcHNob3QYBSABKAsyGi5hbmtrYS5wcm90b2NvbC52MS5QYXlsb2FkSAGIAQESPgoLcmVwbGljYXRpb24YBiABKAsyJC5hbmtrYS5wcm90b2NvbC52MS5SZXBsaWNhdGlvbkNoYW5nZUgCiAEBQgwKCl9yZXRlbnRpb25CCwoJX3NuYXBzaG90Qg4KDF9yZXBsaWNhdGlvbkIJCgdtZXNzYWdlIp4BChFSZXBsaWNhdGlvbkNoYW5nZRIWCgxoYW5kX292ZXJfdG8YASABKAlIABI9CgNzZXQYAiABKAsyLi5hbmtrYS5wcm90b2NvbC52MS5SZXBsaWNhdGlvbkNoYW5nZS5TZXRDaGFuZ2VIABooCglTZXRDaGFuZ2USCwoDYWRkGAEgAygJEg4KBnJlbW92ZRgCIAMoCUIICgZjaGFuZ2UyYwoMRXZlbnRTb3VyY2VkElMKBkhhbmRsZRIhLmFua2thLnByb3RvY29sLnYxLkV2ZW50U291cmNlZEluGiIuYW5ra2EucHJvdG9jb2wudjEuRXZlbnRTb3VyY2VkT3V0KAEwAWIGcHJvdG8z", [file_ankka_protocol_v1_payload]);
|
|
9
9
|
/**
|
|
10
10
|
* Describes the message ankka.protocol.v1.EventSourcedIn.
|
|
11
11
|
* Use `create(EventSourcedInSchema)` to create a new message.
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Failure, Metadata } from "./payload_pb.ts";
|
|
3
|
+
import type { Caller, Principal } from "./endpoint_pb.ts";
|
|
4
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file ankka/protocol/v1/mcp.proto.
|
|
7
|
+
*/
|
|
8
|
+
export declare const file_ankka_protocol_v1_mcp: GenFile;
|
|
9
|
+
/**
|
|
10
|
+
* @generated from message ankka.protocol.v1.McpToolRequest
|
|
11
|
+
*/
|
|
12
|
+
export type McpToolRequest = Message<"ankka.protocol.v1.McpToolRequest"> & {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from field: string endpoint_id = 1;
|
|
15
|
+
*/
|
|
16
|
+
endpointId: string;
|
|
17
|
+
/**
|
|
18
|
+
* @generated from field: string tool = 2;
|
|
19
|
+
*/
|
|
20
|
+
tool: string;
|
|
21
|
+
/**
|
|
22
|
+
* a JSON object, already checked against the tool's schema's types
|
|
23
|
+
*
|
|
24
|
+
* @generated from field: string arguments_json = 3;
|
|
25
|
+
*/
|
|
26
|
+
argumentsJson: string;
|
|
27
|
+
/**
|
|
28
|
+
* when the ACL authenticated: a token's or a client key's, never the credential
|
|
29
|
+
*
|
|
30
|
+
* @generated from field: optional ankka.protocol.v1.Principal principal = 4;
|
|
31
|
+
*/
|
|
32
|
+
principal?: Principal | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* @generated from field: optional ankka.protocol.v1.Caller caller = 5;
|
|
35
|
+
*/
|
|
36
|
+
caller?: Caller | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* the trace, and the tool as the caller of what it calls
|
|
39
|
+
*
|
|
40
|
+
* @generated from field: ankka.protocol.v1.Metadata metadata = 6;
|
|
41
|
+
*/
|
|
42
|
+
metadata?: Metadata | undefined;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Describes the message ankka.protocol.v1.McpToolRequest.
|
|
46
|
+
* Use `create(McpToolRequestSchema)` to create a new message.
|
|
47
|
+
*/
|
|
48
|
+
export declare const McpToolRequestSchema: GenMessage<McpToolRequest>;
|
|
49
|
+
/**
|
|
50
|
+
* @generated from message ankka.protocol.v1.McpToolReply
|
|
51
|
+
*/
|
|
52
|
+
export type McpToolReply = Message<"ankka.protocol.v1.McpToolReply"> & {
|
|
53
|
+
/**
|
|
54
|
+
* @generated from oneof ankka.protocol.v1.McpToolReply.reply
|
|
55
|
+
*/
|
|
56
|
+
reply: {
|
|
57
|
+
/**
|
|
58
|
+
* @generated from field: ankka.protocol.v1.McpToolAnswer ok = 1;
|
|
59
|
+
*/
|
|
60
|
+
value: McpToolAnswer;
|
|
61
|
+
case: "ok";
|
|
62
|
+
} | {
|
|
63
|
+
/**
|
|
64
|
+
* a tool error: the message the model reads
|
|
65
|
+
*
|
|
66
|
+
* @generated from field: string error = 2;
|
|
67
|
+
*/
|
|
68
|
+
value: string;
|
|
69
|
+
case: "error";
|
|
70
|
+
} | {
|
|
71
|
+
/**
|
|
72
|
+
* the process could not run it
|
|
73
|
+
*
|
|
74
|
+
* @generated from field: ankka.protocol.v1.Failure failure = 3;
|
|
75
|
+
*/
|
|
76
|
+
value: Failure;
|
|
77
|
+
case: "failure";
|
|
78
|
+
} | {
|
|
79
|
+
case: undefined;
|
|
80
|
+
value?: undefined;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Describes the message ankka.protocol.v1.McpToolReply.
|
|
85
|
+
* Use `create(McpToolReplySchema)` to create a new message.
|
|
86
|
+
*/
|
|
87
|
+
export declare const McpToolReplySchema: GenMessage<McpToolReply>;
|
|
88
|
+
/**
|
|
89
|
+
* @generated from message ankka.protocol.v1.McpToolAnswer
|
|
90
|
+
*/
|
|
91
|
+
export type McpToolAnswer = Message<"ankka.protocol.v1.McpToolAnswer"> & {
|
|
92
|
+
/**
|
|
93
|
+
* @generated from field: string text = 1;
|
|
94
|
+
*/
|
|
95
|
+
text: string;
|
|
96
|
+
/**
|
|
97
|
+
* when the result is a record or a map
|
|
98
|
+
*
|
|
99
|
+
* @generated from field: optional string structured_json = 2;
|
|
100
|
+
*/
|
|
101
|
+
structuredJson?: string | undefined;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Describes the message ankka.protocol.v1.McpToolAnswer.
|
|
105
|
+
* Use `create(McpToolAnswerSchema)` to create a new message.
|
|
106
|
+
*/
|
|
107
|
+
export declare const McpToolAnswerSchema: GenMessage<McpToolAnswer>;
|
|
108
|
+
/**
|
|
109
|
+
* @generated from service ankka.protocol.v1.Mcp
|
|
110
|
+
*/
|
|
111
|
+
export declare const Mcp: GenService<{
|
|
112
|
+
/**
|
|
113
|
+
* @generated from rpc ankka.protocol.v1.Mcp.InvokeTool
|
|
114
|
+
*/
|
|
115
|
+
invokeTool: {
|
|
116
|
+
methodKind: "unary";
|
|
117
|
+
input: typeof McpToolRequestSchema;
|
|
118
|
+
output: typeof McpToolReplySchema;
|
|
119
|
+
};
|
|
120
|
+
}>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// A tool of an MCP endpoint the process declared in discovery (protocol 1.20). The sidecar serves
|
|
2
|
+
// the endpoint: it answers the MCP protocol, applies the ACL and checks the arguments against the
|
|
3
|
+
// tool's schema, then asks the process to run the tool. The process never sees the credential.
|
|
4
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_ankka_protocol_v1_payload } from "./payload_pb.js";
|
|
6
|
+
import { file_ankka_protocol_v1_endpoint } from "./endpoint_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file ankka/protocol/v1/mcp.proto.
|
|
9
|
+
*/
|
|
10
|
+
export const file_ankka_protocol_v1_mcp = /*@__PURE__*/ fileDesc("ChthbmtrYS9wcm90b2NvbC92MS9tY3AucHJvdG8SEWFua2thLnByb3RvY29sLnYxIvkBCg5NY3BUb29sUmVxdWVzdBITCgtlbmRwb2ludF9pZBgBIAEoCRIMCgR0b29sGAIgASgJEhYKDmFyZ3VtZW50c19qc29uGAMgASgJEjQKCXByaW5jaXBhbBgEIAEoCzIcLmFua2thLnByb3RvY29sLnYxLlByaW5jaXBhbEgAiAEBEi4KBmNhbGxlchgFIAEoCzIZLmFua2thLnByb3RvY29sLnYxLkNhbGxlckgBiAEBEi0KCG1ldGFkYXRhGAYgASgLMhsuYW5ra2EucHJvdG9jb2wudjEuTWV0YWRhdGFCDAoKX3ByaW5jaXBhbEIJCgdfY2FsbGVyIocBCgxNY3BUb29sUmVwbHkSLgoCb2sYASABKAsyIC5hbmtrYS5wcm90b2NvbC52MS5NY3BUb29sQW5zd2VySAASDwoFZXJyb3IYAiABKAlIABItCgdmYWlsdXJlGAMgASgLMhouYW5ra2EucHJvdG9jb2wudjEuRmFpbHVyZUgAQgcKBXJlcGx5Ik8KDU1jcFRvb2xBbnN3ZXISDAoEdGV4dBgBIAEoCRIcCg9zdHJ1Y3R1cmVkX2pzb24YAiABKAlIAIgBAUISChBfc3RydWN0dXJlZF9qc29uMlcKA01jcBJQCgpJbnZva2VUb29sEiEuYW5ra2EucHJvdG9jb2wudjEuTWNwVG9vbFJlcXVlc3QaHy5hbmtrYS5wcm90b2NvbC52MS5NY3BUb29sUmVwbHliBnByb3RvMw", [file_ankka_protocol_v1_payload, file_ankka_protocol_v1_endpoint]);
|
|
11
|
+
/**
|
|
12
|
+
* Describes the message ankka.protocol.v1.McpToolRequest.
|
|
13
|
+
* Use `create(McpToolRequestSchema)` to create a new message.
|
|
14
|
+
*/
|
|
15
|
+
export const McpToolRequestSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_mcp, 0);
|
|
16
|
+
/**
|
|
17
|
+
* Describes the message ankka.protocol.v1.McpToolReply.
|
|
18
|
+
* Use `create(McpToolReplySchema)` to create a new message.
|
|
19
|
+
*/
|
|
20
|
+
export const McpToolReplySchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_mcp, 1);
|
|
21
|
+
/**
|
|
22
|
+
* Describes the message ankka.protocol.v1.McpToolAnswer.
|
|
23
|
+
* Use `create(McpToolAnswerSchema)` to create a new message.
|
|
24
|
+
*/
|
|
25
|
+
export const McpToolAnswerSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_mcp, 2);
|
|
26
|
+
/**
|
|
27
|
+
* @generated from service ankka.protocol.v1.Mcp
|
|
28
|
+
*/
|
|
29
|
+
export const Mcp = /*@__PURE__*/ serviceDesc(file_ankka_protocol_v1_mcp, 0);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.
|
|
1
|
+
// @generated by protoc-gen-es v2.16.0 with parameter "target=ts,import_extension=ts,erasable_syntax=true"
|
|
2
2
|
// @generated from file ankka/protocol/v1/timed_action.proto (package ankka.protocol.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.
|
|
1
|
+
// @generated by protoc-gen-es v2.16.0 with parameter "target=ts,import_extension=ts,erasable_syntax=true"
|
|
2
2
|
// @generated from file ankka/protocol/v1/view.proto (package ankka.protocol.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
@@ -179,6 +179,18 @@ export type FoldRequest = Message<"ankka.protocol.v1.FoldRequest"> & {
|
|
|
179
179
|
* @generated from field: bool mirrored = 7;
|
|
180
180
|
*/
|
|
181
181
|
mirrored: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* 1.22: who acted on the command that wrote the event; empty when none
|
|
184
|
+
*
|
|
185
|
+
* @generated from field: string attribution = 8;
|
|
186
|
+
*/
|
|
187
|
+
attribution: string;
|
|
188
|
+
/**
|
|
189
|
+
* 1.22: where that command was forwarded from; empty when it was not
|
|
190
|
+
*
|
|
191
|
+
* @generated from field: string forwarded_from = 9;
|
|
192
|
+
*/
|
|
193
|
+
forwardedFrom: string;
|
|
182
194
|
};
|
|
183
195
|
/**
|
|
184
196
|
* Describes the message ankka.protocol.v1.FoldRequest.
|
|
@@ -14,7 +14,7 @@ import { file_ankka_protocol_v1_client } from "./client_pb.js";
|
|
|
14
14
|
/**
|
|
15
15
|
* Describes the file ankka/protocol/v1/wasm.proto.
|
|
16
16
|
*/
|
|
17
|
-
export const file_ankka_protocol_v1_wasm = /*@__PURE__*/ fileDesc("
|
|
17
|
+
export const file_ankka_protocol_v1_wasm = /*@__PURE__*/ fileDesc("ChxhbmtrYS9wcm90b2NvbC92MS93YXNtLnByb3RvEhFhbmtrYS5wcm90b2NvbC52MSJYCghXYXNtU3BlYxIlCgRzcGVjGAEgASgLMhcuYW5ra2EucHJvdG9jb2wudjEuU3BlYxIQCghzdGF0ZWZ1bBgCIAMoCRITCgthYmlfdmVyc2lvbhgDIAEoCSLfAgoNSGFuZGxlUmVxdWVzdBIlCgRraW5kGAEgASgOMhcuYW5ra2EucHJvdG9jb2wudjEuS2luZBIUCgxjb21wb25lbnRfaWQYAiABKAkSEQoJZW50aXR5X2lkGAMgASgJEi4KBXN0YXRlGAQgASgLMhouYW5ra2EucHJvdG9jb2wudjEuUGF5bG9hZEgBiAEBEkIKDWV2ZW50X3NvdXJjZWQYCiABKAsyKS5hbmtrYS5wcm90b2NvbC52MS5FdmVudFNvdXJjZWRJbi5Db21tYW5kSAASOgoJa2V5X3ZhbHVlGAsgASgLMiUuYW5ra2EucHJvdG9jb2wudjEuS2V5VmFsdWVJbi5Db21tYW5kSAASOQoId29ya2Zsb3cYDCABKAsyJS5hbmtrYS5wcm90b2NvbC52MS5Xb3JrZmxvd0luLkNvbW1hbmRIAEIJCgdjb21tYW5kQggKBl9zdGF0ZSLGAgoLSGFuZGxlUmVwbHkSQQoNZXZlbnRfc291cmNlZBgKIAEoCzI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cEIICgZfc3RhdGUivAEKCVN0ZXBSZXBseRI3CgVyZXBseRgBIAEoCzIoLmFua2thLnByb3RvY29sLnYxLldvcmtmbG93T3V0LlN0ZXBSZXBseRIuCgVzdGF0ZRgCIAEoCzIaLmFua2thLnByb3RvY29sLnYxLlBheWxvYWRIAIgBARIwCgdmYWlsdXJlGAMgASgLMhouYW5ra2EucHJvdG9jb2wudjEuRmFpbHVyZUgBiAEBQggKBl9zdGF0ZUIKCghfZmFpbHVyZSI0CglQYXNzaXZhdGUSFAoMY29tcG9uZW50X2lkGAEgASgJEhEKCWVudGl0eV9pZBgCIAEoCSIdCg1Db25maWdSZXF1ZXN0EgwKBG5hbWUYASABKAkiKwoLQ29uZmlnUmVwbHkSEgoFdmFsdWUYASABKAlIAIgBAUIICgZfdmFsdWUiPgoMU3RyZWFtVG9rZW5zEi4KBnRva2VucxgBIAMoCzIeLmFua2thLnByb3RvY29sLnYxLlN0cmVhbVRva2VuYgZwcm90bzM", [file_ankka_protocol_v1_payload, file_ankka_protocol_v1_discovery, file_ankka_protocol_v1_event_sourced, file_ankka_protocol_v1_key_value, file_ankka_protocol_v1_workflow, file_ankka_protocol_v1_client]);
|
|
18
18
|
/**
|
|
19
19
|
* Describes the message ankka.protocol.v1.WasmSpec.
|
|
20
20
|
* Use `create(WasmSpecSchema)` to create a new message.
|
package/dist/agent.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { Metadata } from "./effects/common.ts";
|
|
2
|
+
import { type ClientKeys } from "./client-keys.ts";
|
|
2
3
|
import { type ComponentClient, type Secrets } from "./client.ts";
|
|
4
|
+
import { type Buckets } from "./storage.ts";
|
|
3
5
|
import type { GuardrailRef, HandlerTable, ToolRef } from "./handlers.ts";
|
|
4
6
|
import { AgentEffects } from "./effects/agent.ts";
|
|
5
7
|
import { type Services } from "./services.ts";
|
|
@@ -15,6 +17,14 @@ export declare abstract class Agent {
|
|
|
15
17
|
get secrets(): Secrets;
|
|
16
18
|
/** A unit test's store in place of the runtime's: `component.secrets = new InMemorySecrets()`. */
|
|
17
19
|
set secrets(store: Secrets);
|
|
20
|
+
/** The service's client keys (1.20): issued for its MCP endpoint, kept by the runtime, each shown once. */
|
|
21
|
+
get clientKeys(): ClientKeys;
|
|
22
|
+
/** A unit test's in place of the runtime's: `component.clientKeys = new InMemoryClientKeys()`. */
|
|
23
|
+
set clientKeys(keys: ClientKeys);
|
|
24
|
+
/** The service's buckets: `this.storage.default`, or `this.storage.bucket("photos")`. */
|
|
25
|
+
get storage(): Buckets;
|
|
26
|
+
/** A unit test's store in place of the runtime's: `component.storage = new InMemoryBuckets()`. */
|
|
27
|
+
set storage(buckets: Buckets);
|
|
18
28
|
/** Other services, called as this one, through the runtime: `this.services.service("orders")`. */
|
|
19
29
|
get services(): Services;
|
|
20
30
|
/** A unit test's in place of the runtime's: `component.services = new ScriptedServices()`. */
|
package/dist/agent.js
CHANGED
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
// static readonly tools = { lookup: tool("lookup", "Looks up a cart by id.", CartLookup, (a: Assistant, input) => a.lookup(input.cartId)) }
|
|
6
6
|
// static readonly guardrails = { noSecrets: guardrail("no-secrets", (stage, text) => text.includes("sk-") ? "a key leaked" : null) }
|
|
7
7
|
// static readonly handlers = { ask: command("ask", s.string, s.string, (a: Assistant, q) => a.ask(q)), chat: stream("chat", s.string, (a: Assistant, q) => a.ask(q)) }
|
|
8
|
+
import { clientKeysFor } from "./client-keys.js";
|
|
8
9
|
import { secretsFor } from "./client.js";
|
|
10
|
+
import { processStorage } from "./storage.js";
|
|
9
11
|
import { AgentEffects } from "./effects/agent.js";
|
|
10
12
|
import { servicesFor } from "./services.js";
|
|
11
13
|
export class Agent {
|
|
@@ -34,6 +36,24 @@ export class Agent {
|
|
|
34
36
|
set secrets(store) {
|
|
35
37
|
this.#secrets = store;
|
|
36
38
|
}
|
|
39
|
+
#clientKeys;
|
|
40
|
+
/** The service's client keys (1.20): issued for its MCP endpoint, kept by the runtime, each shown once. */
|
|
41
|
+
get clientKeys() {
|
|
42
|
+
return this.#clientKeys ?? clientKeysFor(this.client);
|
|
43
|
+
}
|
|
44
|
+
/** A unit test's in place of the runtime's: `component.clientKeys = new InMemoryClientKeys()`. */
|
|
45
|
+
set clientKeys(keys) {
|
|
46
|
+
this.#clientKeys = keys;
|
|
47
|
+
}
|
|
48
|
+
#storage;
|
|
49
|
+
/** The service's buckets: `this.storage.default`, or `this.storage.bucket("photos")`. */
|
|
50
|
+
get storage() {
|
|
51
|
+
return this.#storage ?? processStorage();
|
|
52
|
+
}
|
|
53
|
+
/** A unit test's store in place of the runtime's: `component.storage = new InMemoryBuckets()`. */
|
|
54
|
+
set storage(buckets) {
|
|
55
|
+
this.#storage = buckets;
|
|
56
|
+
}
|
|
37
57
|
#services;
|
|
38
58
|
/** Other services, called as this one, through the runtime: `this.services.service("orders")`. */
|
|
39
59
|
get services() {
|
package/dist/autonomous.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ApprovalRequest, type DecisionInput } from "./approvals.ts";
|
|
2
2
|
import type { McpServerRef, ResultGuardrailRef } from "./mcp.ts";
|
|
3
3
|
import { type ComponentClient, type Secrets } from "./client.ts";
|
|
4
|
+
import { type Buckets } from "./storage.ts";
|
|
4
5
|
import type { GuardrailRef, ToolRef } from "./handlers.ts";
|
|
5
6
|
import type { Schema } from "./schema.ts";
|
|
6
7
|
import { type Services } from "./services.ts";
|
|
@@ -58,6 +59,10 @@ export declare abstract class AutonomousAgent {
|
|
|
58
59
|
get secrets(): Secrets;
|
|
59
60
|
/** A unit test's store in place of the runtime's: `component.secrets = new InMemorySecrets()`. */
|
|
60
61
|
set secrets(store: Secrets);
|
|
62
|
+
/** The service's buckets: `this.storage.default`, or `this.storage.bucket("photos")`. */
|
|
63
|
+
get storage(): Buckets;
|
|
64
|
+
/** A unit test's store in place of the runtime's: `component.storage = new InMemoryBuckets()`. */
|
|
65
|
+
set storage(buckets: Buckets);
|
|
61
66
|
/** Other services, called as this one, through the runtime: `this.services.service("orders")`. */
|
|
62
67
|
get services(): Services;
|
|
63
68
|
/** A unit test's in place of the runtime's: `component.services = new ScriptedServices()`. */
|