@olane/o-protocol 0.7.12-alpha.9 → 0.7.13-alpha.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/CHANGELOG.md +265 -0
- package/dist/handshake/o-handshake.d.ts +2 -0
- package/dist/handshake/o-handshake.d.ts.map +1 -1
- package/dist/json-rpc/json-rpc.d.ts +7 -4
- package/dist/json-rpc/json-rpc.d.ts.map +1 -1
- package/dist/method/o-method.d.ts +37 -0
- package/dist/method/o-method.d.ts.map +1 -1
- package/dist/parameter/o-parameter.d.ts +16 -0
- package/dist/parameter/o-parameter.d.ts.map +1 -1
- package/package.json +2 -5
- package/src/handshake/o-handshake.ts +2 -0
- package/src/json-rpc/json-rpc.ts +7 -4
- package/src/method/o-method.ts +40 -0
- package/src/parameter/o-parameter.ts +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,271 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## <small>0.7.13-alpha.0 (2025-12-01)</small>
|
|
7
|
+
|
|
8
|
+
- minor change ([1188cdd](https://github.com/olane-labs/olane/commit/1188cdd))
|
|
9
|
+
|
|
10
|
+
## <small>0.7.12 (2025-11-30)</small>
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
13
|
+
|
|
14
|
+
## <small>0.7.12-alpha.76 (2025-11-21)</small>
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
17
|
+
|
|
18
|
+
## <small>0.7.12-alpha.75 (2025-11-19)</small>
|
|
19
|
+
|
|
20
|
+
- minor improvements to o-protocol ([15f26d9](https://github.com/olane-labs/olane/commit/15f26d9))
|
|
21
|
+
|
|
22
|
+
## <small>0.7.12-alpha.74 (2025-11-18)</small>
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
25
|
+
|
|
26
|
+
## <small>0.7.12-alpha.73 (2025-11-18)</small>
|
|
27
|
+
|
|
28
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
29
|
+
|
|
30
|
+
## <small>0.7.12-alpha.72 (2025-11-18)</small>
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
33
|
+
|
|
34
|
+
## <small>0.7.12-alpha.71 (2025-11-18)</small>
|
|
35
|
+
|
|
36
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
37
|
+
|
|
38
|
+
## <small>0.7.12-alpha.70 (2025-11-18)</small>
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
41
|
+
|
|
42
|
+
## <small>0.7.12-alpha.69 (2025-11-18)</small>
|
|
43
|
+
|
|
44
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
45
|
+
|
|
46
|
+
## <small>0.7.12-alpha.68 (2025-11-18)</small>
|
|
47
|
+
|
|
48
|
+
- added mixins ([e1a5a14](https://github.com/olane-labs/olane/commit/e1a5a14))
|
|
49
|
+
|
|
50
|
+
## <small>0.7.12-alpha.67 (2025-11-16)</small>
|
|
51
|
+
|
|
52
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
53
|
+
|
|
54
|
+
## <small>0.7.12-alpha.66 (2025-11-16)</small>
|
|
55
|
+
|
|
56
|
+
- fix ([e1975ce](https://github.com/olane-labs/olane/commit/e1975ce))
|
|
57
|
+
|
|
58
|
+
## <small>0.7.12-alpha.65 (2025-11-15)</small>
|
|
59
|
+
|
|
60
|
+
- minor change ([7b48124](https://github.com/olane-labs/olane/commit/7b48124))
|
|
61
|
+
|
|
62
|
+
## <small>0.7.12-alpha.64 (2025-11-15)</small>
|
|
63
|
+
|
|
64
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
65
|
+
|
|
66
|
+
## <small>0.7.12-alpha.63 (2025-11-15)</small>
|
|
67
|
+
|
|
68
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
69
|
+
|
|
70
|
+
## <small>0.7.12-alpha.59 (2025-11-14)</small>
|
|
71
|
+
|
|
72
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
73
|
+
|
|
74
|
+
## <small>0.7.12-alpha.58 (2025-11-14)</small>
|
|
75
|
+
|
|
76
|
+
- minor fixes ([71a484e](https://github.com/olane-labs/olane/commit/71a484e))
|
|
77
|
+
|
|
78
|
+
## <small>0.7.12-alpha.57 (2025-11-14)</small>
|
|
79
|
+
|
|
80
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
81
|
+
|
|
82
|
+
## <small>0.7.12-alpha.56 (2025-11-14)</small>
|
|
83
|
+
|
|
84
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
85
|
+
|
|
86
|
+
## <small>0.7.12-alpha.55 (2025-11-14)</small>
|
|
87
|
+
|
|
88
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
89
|
+
|
|
90
|
+
## <small>0.7.12-alpha.54 (2025-11-14)</small>
|
|
91
|
+
|
|
92
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
93
|
+
|
|
94
|
+
## <small>0.7.12-alpha.53 (2025-11-14)</small>
|
|
95
|
+
|
|
96
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
97
|
+
|
|
98
|
+
## <small>0.7.12-alpha.52 (2025-11-13)</small>
|
|
99
|
+
|
|
100
|
+
- stream handler isolation ([b97f419](https://github.com/olane-labs/olane/commit/b97f419))
|
|
101
|
+
- update version ([9aff117](https://github.com/olane-labs/olane/commit/9aff117))
|
|
102
|
+
|
|
103
|
+
## <small>0.7.12-alpha.51 (2025-11-13)</small>
|
|
104
|
+
|
|
105
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
106
|
+
|
|
107
|
+
## <small>0.7.12-alpha.50 (2025-11-13)</small>
|
|
108
|
+
|
|
109
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
110
|
+
|
|
111
|
+
## <small>0.7.12-alpha.49 (2025-11-13)</small>
|
|
112
|
+
|
|
113
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
114
|
+
|
|
115
|
+
## <small>0.7.12-alpha.48 (2025-11-13)</small>
|
|
116
|
+
|
|
117
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
118
|
+
|
|
119
|
+
## <small>0.7.12-alpha.47 (2025-11-13)</small>
|
|
120
|
+
|
|
121
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
122
|
+
|
|
123
|
+
## <small>0.7.12-alpha.46 (2025-11-13)</small>
|
|
124
|
+
|
|
125
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
126
|
+
|
|
127
|
+
## <small>0.7.12-alpha.45 (2025-11-13)</small>
|
|
128
|
+
|
|
129
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
130
|
+
|
|
131
|
+
## <small>0.7.12-alpha.44 (2025-11-12)</small>
|
|
132
|
+
|
|
133
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
134
|
+
|
|
135
|
+
## <small>0.7.12-alpha.43 (2025-11-12)</small>
|
|
136
|
+
|
|
137
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
138
|
+
|
|
139
|
+
## <small>0.7.12-alpha.42 (2025-11-12)</small>
|
|
140
|
+
|
|
141
|
+
- udpate ([d6dafd6](https://github.com/olane-labs/olane/commit/d6dafd6))
|
|
142
|
+
|
|
143
|
+
## <small>0.7.12-alpha.41 (2025-11-12)</small>
|
|
144
|
+
|
|
145
|
+
- update deps ([af2da46](https://github.com/olane-labs/olane/commit/af2da46))
|
|
146
|
+
|
|
147
|
+
## <small>0.7.12-alpha.40 (2025-11-12)</small>
|
|
148
|
+
|
|
149
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
150
|
+
|
|
151
|
+
## <small>0.7.12-alpha.39 (2025-11-11)</small>
|
|
152
|
+
|
|
153
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
154
|
+
|
|
155
|
+
## <small>0.7.12-alpha.38 (2025-11-10)</small>
|
|
156
|
+
|
|
157
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
158
|
+
|
|
159
|
+
## <small>0.7.12-alpha.37 (2025-11-10)</small>
|
|
160
|
+
|
|
161
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
162
|
+
|
|
163
|
+
## <small>0.7.12-alpha.36 (2025-11-09)</small>
|
|
164
|
+
|
|
165
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
166
|
+
|
|
167
|
+
## <small>0.7.12-alpha.35 (2025-11-08)</small>
|
|
168
|
+
|
|
169
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
170
|
+
|
|
171
|
+
## <small>0.7.12-alpha.34 (2025-11-07)</small>
|
|
172
|
+
|
|
173
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
174
|
+
|
|
175
|
+
## <small>0.7.12-alpha.33 (2025-11-06)</small>
|
|
176
|
+
|
|
177
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
178
|
+
|
|
179
|
+
## <small>0.7.12-alpha.32 (2025-11-06)</small>
|
|
180
|
+
|
|
181
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
182
|
+
|
|
183
|
+
## <small>0.7.12-alpha.31 (2025-11-06)</small>
|
|
184
|
+
|
|
185
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
186
|
+
|
|
187
|
+
## <small>0.7.12-alpha.30 (2025-11-05)</small>
|
|
188
|
+
|
|
189
|
+
- streaming bug fixes + improvements ([ae29515](https://github.com/olane-labs/olane/commit/ae29515))
|
|
190
|
+
|
|
191
|
+
## <small>0.7.12-alpha.29 (2025-11-05)</small>
|
|
192
|
+
|
|
193
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
194
|
+
|
|
195
|
+
## <small>0.7.12-alpha.28 (2025-11-04)</small>
|
|
196
|
+
|
|
197
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
198
|
+
|
|
199
|
+
## <small>0.7.12-alpha.27 (2025-11-04)</small>
|
|
200
|
+
|
|
201
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
202
|
+
|
|
203
|
+
## <small>0.7.12-alpha.26 (2025-11-04)</small>
|
|
204
|
+
|
|
205
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
206
|
+
|
|
207
|
+
## <small>0.7.12-alpha.25 (2025-10-31)</small>
|
|
208
|
+
|
|
209
|
+
- removed unecessary stream related functionality ([ac75e0a](https://github.com/olane-labs/olane/commit/ac75e0a))
|
|
210
|
+
|
|
211
|
+
## <small>0.7.12-alpha.24 (2025-10-31)</small>
|
|
212
|
+
|
|
213
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
214
|
+
|
|
215
|
+
## <small>0.7.12-alpha.23 (2025-10-30)</small>
|
|
216
|
+
|
|
217
|
+
- added streaming functionality ([7f310fc](https://github.com/olane-labs/olane/commit/7f310fc))
|
|
218
|
+
|
|
219
|
+
## <small>0.7.12-alpha.22 (2025-10-29)</small>
|
|
220
|
+
|
|
221
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
222
|
+
|
|
223
|
+
## <small>0.7.12-alpha.21 (2025-10-29)</small>
|
|
224
|
+
|
|
225
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
226
|
+
|
|
227
|
+
## <small>0.7.12-alpha.20 (2025-10-29)</small>
|
|
228
|
+
|
|
229
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
230
|
+
|
|
231
|
+
## <small>0.7.12-alpha.19 (2025-10-28)</small>
|
|
232
|
+
|
|
233
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
234
|
+
|
|
235
|
+
## <small>0.7.12-alpha.18 (2025-10-28)</small>
|
|
236
|
+
|
|
237
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
238
|
+
|
|
239
|
+
## <small>0.7.12-alpha.17 (2025-10-28)</small>
|
|
240
|
+
|
|
241
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
242
|
+
|
|
243
|
+
## <small>0.7.12-alpha.16 (2025-10-28)</small>
|
|
244
|
+
|
|
245
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
246
|
+
|
|
247
|
+
## <small>0.7.12-alpha.15 (2025-10-28)</small>
|
|
248
|
+
|
|
249
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
250
|
+
|
|
251
|
+
## <small>0.7.12-alpha.14 (2025-10-28)</small>
|
|
252
|
+
|
|
253
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
254
|
+
|
|
255
|
+
## <small>0.7.12-alpha.13 (2025-10-28)</small>
|
|
256
|
+
|
|
257
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
258
|
+
|
|
259
|
+
## <small>0.7.12-alpha.12 (2025-10-24)</small>
|
|
260
|
+
|
|
261
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
262
|
+
|
|
263
|
+
## <small>0.7.12-alpha.11 (2025-10-24)</small>
|
|
264
|
+
|
|
265
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
266
|
+
|
|
267
|
+
## <small>0.7.12-alpha.10 (2025-10-24)</small>
|
|
268
|
+
|
|
269
|
+
**Note:** Version bump only for package @olane/o-protocol
|
|
270
|
+
|
|
6
271
|
## <small>0.7.12-alpha.9 (2025-10-23)</small>
|
|
7
272
|
|
|
8
273
|
**Note:** Version bump only for package @olane/o-protocol
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"o-handshake.d.ts","sourceRoot":"","sources":["../../src/handshake/o-handshake.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EACL,cAAc,EACd,eAAe,EACf,aAAa,EACd,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACvD,MAAM,EAAE,gBAAgB,CAAC,SAAS,CAAC;IACnC,MAAM,EAAE,aAAa,GAAG;QACtB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AAED,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD,MAAM,EAAE;QACN,aAAa,EAAE,MAAM,CAAC;QACtB,cAAc,EAAE,gBAAgB,CAAC,SAAS,CAAC;QAC3C,YAAY,EAAE,WAAW,EAAE,CAAC;QAC5B,UAAU,EAAE,UAAU,EAAE,CAAC;KAC1B,CAAC;CACH"}
|
|
1
|
+
{"version":3,"file":"o-handshake.d.ts","sourceRoot":"","sources":["../../src/handshake/o-handshake.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EACL,cAAc,EACd,eAAe,EACf,aAAa,EACd,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACvD,MAAM,EAAE,gBAAgB,CAAC,SAAS,CAAC;IACnC,MAAM,EAAE,aAAa,GAAG;QACtB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AAED,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD,MAAM,EAAE;QACN,aAAa,EAAE,MAAM,CAAC;QACtB,cAAc,EAAE,gBAAgB,CAAC,SAAS,CAAC;QAC3C,KAAK,EAAE,OAAO,CAAC;QACf,YAAY,EAAE,OAAO,CAAC;QACtB,YAAY,EAAE,WAAW,EAAE,CAAC;QAC5B,UAAU,EAAE,UAAU,EAAE,CAAC;KAC1B,CAAC;CACH"}
|
|
@@ -7,7 +7,8 @@ export type Cursor = string;
|
|
|
7
7
|
export interface RequestParams {
|
|
8
8
|
_connectionId: ConnectionId;
|
|
9
9
|
_requestMethod: string;
|
|
10
|
-
|
|
10
|
+
_isStreaming?: boolean;
|
|
11
|
+
[key: string]: any;
|
|
11
12
|
}
|
|
12
13
|
export interface Request {
|
|
13
14
|
method: string;
|
|
@@ -17,15 +18,17 @@ export interface Notification {
|
|
|
17
18
|
method: string;
|
|
18
19
|
params?: {
|
|
19
20
|
_meta?: {
|
|
20
|
-
[key: string]:
|
|
21
|
+
[key: string]: any;
|
|
21
22
|
};
|
|
22
|
-
[key: string]:
|
|
23
|
+
[key: string]: any;
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
export interface Result {
|
|
26
27
|
_connectionId: ConnectionId;
|
|
27
28
|
_requestMethod: string;
|
|
28
|
-
|
|
29
|
+
_last: boolean;
|
|
30
|
+
_isStreaming: boolean;
|
|
31
|
+
[key: string]: any;
|
|
29
32
|
}
|
|
30
33
|
/**
|
|
31
34
|
* A uniquely identifying ID for a request in JSON-RPC.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-rpc.d.ts","sourceRoot":"","sources":["../../src/json-rpc/json-rpc.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,QAAQ,CAAC;AAErC,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC;AAE5B,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,YAAY,CAAC;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"json-rpc.d.ts","sourceRoot":"","sources":["../../src/json-rpc/json-rpc.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,QAAQ,CAAC;AAErC,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC;AAE5B,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,YAAY,CAAC;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,CA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ChC,EAAE,EAAE,SAAS,CAAC;IACd,KAAK,EAAE;QACL;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAChB;;WAEG;QACH,IAAI,CAAC,EAAE,OAAO,CAAC;KAChB,CAAC;CACH;AAGD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC,MAAM,WAAW,QAAS,SAAQ,cAAc;CAAG;AACnD,MAAM,WAAW,SAAU,SAAQ,eAAe;CAAG"}
|
|
@@ -4,6 +4,37 @@ export interface oApprovalMetadata {
|
|
|
4
4
|
riskLevel?: 'low' | 'medium' | 'high' | 'critical';
|
|
5
5
|
category?: 'read' | 'write' | 'destructive' | 'network' | 'system';
|
|
6
6
|
description?: string;
|
|
7
|
+
autoApproveConditions?: {
|
|
8
|
+
parameterConstraints?: Record<string, any>;
|
|
9
|
+
contextRequirements?: string[];
|
|
10
|
+
userRoles?: string[];
|
|
11
|
+
};
|
|
12
|
+
denialReasons?: string[];
|
|
13
|
+
alternativeMethods?: string[];
|
|
14
|
+
}
|
|
15
|
+
export interface oMethodExample {
|
|
16
|
+
description: string;
|
|
17
|
+
intent: string;
|
|
18
|
+
params: Record<string, any>;
|
|
19
|
+
expectedResult?: any;
|
|
20
|
+
notes?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface oCommonError {
|
|
23
|
+
errorCode: string;
|
|
24
|
+
message: string;
|
|
25
|
+
causes: string[];
|
|
26
|
+
remediation: string;
|
|
27
|
+
relatedMethods?: string[];
|
|
28
|
+
}
|
|
29
|
+
export interface oPerformanceMetadata {
|
|
30
|
+
estimatedDuration?: number;
|
|
31
|
+
maxDuration?: number;
|
|
32
|
+
cacheable?: boolean;
|
|
33
|
+
cacheKey?: string[];
|
|
34
|
+
idempotent?: boolean;
|
|
35
|
+
supportsBatching?: boolean;
|
|
36
|
+
batchSizeLimit?: number;
|
|
37
|
+
supportsStreaming?: boolean;
|
|
7
38
|
}
|
|
8
39
|
export interface oMethod {
|
|
9
40
|
name: string;
|
|
@@ -12,5 +43,11 @@ export interface oMethod {
|
|
|
12
43
|
dependencies: oDependency[];
|
|
13
44
|
requiresApproval?: boolean;
|
|
14
45
|
approvalMetadata?: oApprovalMetadata;
|
|
46
|
+
examples?: oMethodExample[];
|
|
47
|
+
commonErrors?: oCommonError[];
|
|
48
|
+
performance?: oPerformanceMetadata;
|
|
49
|
+
successCriteria?: string;
|
|
50
|
+
suggestedContext?: string[];
|
|
51
|
+
similarMethods?: string[];
|
|
15
52
|
}
|
|
16
53
|
//# sourceMappingURL=o-method.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"o-method.d.ts","sourceRoot":"","sources":["../../src/method/o-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;IACnD,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,aAAa,GAAG,SAAS,GAAG,QAAQ,CAAC;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"o-method.d.ts","sourceRoot":"","sources":["../../src/method/o-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;IACnD,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,aAAa,GAAG,SAAS,GAAG,QAAQ,CAAC;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAA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IAC3B,gBAAgB,CAAC,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;IAC5B,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;IAC9B,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B"}
|
|
@@ -1,8 +1,24 @@
|
|
|
1
|
+
export interface oParameterStructure {
|
|
2
|
+
objectProperties?: Record<string, oParameter>;
|
|
3
|
+
arrayItems?: oParameter;
|
|
4
|
+
enum?: any[];
|
|
5
|
+
pattern?: string;
|
|
6
|
+
minimum?: number;
|
|
7
|
+
maximum?: number;
|
|
8
|
+
minLength?: number;
|
|
9
|
+
maxLength?: number;
|
|
10
|
+
}
|
|
1
11
|
export interface oParameter {
|
|
2
12
|
name: string;
|
|
3
13
|
type: string;
|
|
4
14
|
value?: any;
|
|
5
15
|
description?: string;
|
|
6
16
|
required?: boolean;
|
|
17
|
+
options?: any[];
|
|
18
|
+
structure?: oParameterStructure;
|
|
19
|
+
schema?: any;
|
|
20
|
+
defaultValue?: any;
|
|
21
|
+
exampleValues?: any[];
|
|
22
|
+
validationRules?: string[];
|
|
7
23
|
}
|
|
8
24
|
//# sourceMappingURL=o-parameter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"o-parameter.d.ts","sourceRoot":"","sources":["../../src/parameter/o-parameter.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"o-parameter.d.ts","sourceRoot":"","sources":["../../src/parameter/o-parameter.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAC9C,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC;IAChB,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAChC,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olane/o-protocol",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.13-alpha.0",
|
|
4
4
|
"description": "oLane Protocol specification and protocol schema",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "oLane Inc. (https://olane.com)",
|
|
@@ -53,8 +53,5 @@
|
|
|
53
53
|
"typescript": "^5.6.2",
|
|
54
54
|
"typescript-json-schema": "^0.65.1"
|
|
55
55
|
},
|
|
56
|
-
"
|
|
57
|
-
"fast-json-patch": "^3.1.1"
|
|
58
|
-
},
|
|
59
|
-
"gitHead": "21427acbdc1d87ff9465bf19bda58cca89e8d3c7"
|
|
56
|
+
"gitHead": "8a956c0823d63d66cde155bd88f4aa7fcf0ca1a4"
|
|
60
57
|
}
|
package/src/json-rpc/json-rpc.ts
CHANGED
|
@@ -10,7 +10,8 @@ export type Cursor = string;
|
|
|
10
10
|
export interface RequestParams {
|
|
11
11
|
_connectionId: ConnectionId;
|
|
12
12
|
_requestMethod: string;
|
|
13
|
-
|
|
13
|
+
_isStreaming?: boolean;
|
|
14
|
+
[key: string]: any;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
export interface Request {
|
|
@@ -21,15 +22,17 @@ export interface Request {
|
|
|
21
22
|
export interface Notification {
|
|
22
23
|
method: string;
|
|
23
24
|
params?: {
|
|
24
|
-
_meta?: { [key: string]:
|
|
25
|
-
[key: string]:
|
|
25
|
+
_meta?: { [key: string]: any };
|
|
26
|
+
[key: string]: any;
|
|
26
27
|
};
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
export interface Result {
|
|
30
31
|
_connectionId: ConnectionId;
|
|
31
32
|
_requestMethod: string;
|
|
32
|
-
|
|
33
|
+
_last: boolean;
|
|
34
|
+
_isStreaming: boolean;
|
|
35
|
+
[key: string]: any;
|
|
33
36
|
}
|
|
34
37
|
|
|
35
38
|
/**
|
package/src/method/o-method.ts
CHANGED
|
@@ -5,6 +5,40 @@ export interface oApprovalMetadata {
|
|
|
5
5
|
riskLevel?: 'low' | 'medium' | 'high' | 'critical';
|
|
6
6
|
category?: 'read' | 'write' | 'destructive' | 'network' | 'system';
|
|
7
7
|
description?: string;
|
|
8
|
+
autoApproveConditions?: {
|
|
9
|
+
parameterConstraints?: Record<string, any>;
|
|
10
|
+
contextRequirements?: string[];
|
|
11
|
+
userRoles?: string[];
|
|
12
|
+
};
|
|
13
|
+
denialReasons?: string[];
|
|
14
|
+
alternativeMethods?: string[];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface oMethodExample {
|
|
18
|
+
description: string;
|
|
19
|
+
intent: string;
|
|
20
|
+
params: Record<string, any>;
|
|
21
|
+
expectedResult?: any;
|
|
22
|
+
notes?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface oCommonError {
|
|
26
|
+
errorCode: string;
|
|
27
|
+
message: string;
|
|
28
|
+
causes: string[];
|
|
29
|
+
remediation: string;
|
|
30
|
+
relatedMethods?: string[];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface oPerformanceMetadata {
|
|
34
|
+
estimatedDuration?: number;
|
|
35
|
+
maxDuration?: number;
|
|
36
|
+
cacheable?: boolean;
|
|
37
|
+
cacheKey?: string[];
|
|
38
|
+
idempotent?: boolean;
|
|
39
|
+
supportsBatching?: boolean;
|
|
40
|
+
batchSizeLimit?: number;
|
|
41
|
+
supportsStreaming?: boolean;
|
|
8
42
|
}
|
|
9
43
|
|
|
10
44
|
export interface oMethod {
|
|
@@ -14,4 +48,10 @@ export interface oMethod {
|
|
|
14
48
|
dependencies: oDependency[];
|
|
15
49
|
requiresApproval?: boolean;
|
|
16
50
|
approvalMetadata?: oApprovalMetadata;
|
|
51
|
+
examples?: oMethodExample[];
|
|
52
|
+
commonErrors?: oCommonError[];
|
|
53
|
+
performance?: oPerformanceMetadata;
|
|
54
|
+
successCriteria?: string;
|
|
55
|
+
suggestedContext?: string[];
|
|
56
|
+
similarMethods?: string[];
|
|
17
57
|
}
|
|
@@ -1,7 +1,24 @@
|
|
|
1
|
+
export interface oParameterStructure {
|
|
2
|
+
objectProperties?: Record<string, oParameter>;
|
|
3
|
+
arrayItems?: oParameter;
|
|
4
|
+
enum?: any[];
|
|
5
|
+
pattern?: string;
|
|
6
|
+
minimum?: number;
|
|
7
|
+
maximum?: number;
|
|
8
|
+
minLength?: number;
|
|
9
|
+
maxLength?: number;
|
|
10
|
+
}
|
|
11
|
+
|
|
1
12
|
export interface oParameter {
|
|
2
13
|
name: string;
|
|
3
14
|
type: string;
|
|
4
15
|
value?: any;
|
|
5
16
|
description?: string;
|
|
6
17
|
required?: boolean;
|
|
18
|
+
options?: any[];
|
|
19
|
+
structure?: oParameterStructure;
|
|
20
|
+
schema?: any;
|
|
21
|
+
defaultValue?: any;
|
|
22
|
+
exampleValues?: any[];
|
|
23
|
+
validationRules?: string[];
|
|
7
24
|
}
|