@digipair/skill-sse 0.119.8 → 0.119.9

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/index.cjs.js CHANGED
@@ -36,15 +36,13 @@ let SSEService = class SSEService {
36
36
  return channel;
37
37
  }
38
38
  async push(params, _pinsSettingsList, context) {
39
- const { id, message, reasoning = context.request.reasoning, digipair = context.request.digipair } = params;
40
- const start = context.privates.SSE_SESSION_START || '';
39
+ const { id, message, reasoning = context.request.reasoning, digipair = context.request.digipair, start = context.privates.SSE_SESSION_START || '' } = params;
41
40
  const name = `${start}__${digipair}_${reasoning}__${id}`;
42
41
  const session = this.sessions.get(name);
43
42
  return session?.push(message);
44
43
  }
45
44
  async broadcast(params, _pinsSettingsList, context) {
46
- const { message, reasoning = context.request.reasoning, id = '', digipair = context.request.digipair, event = 'message' } = params;
47
- const start = context.privates.SSE_SESSION_START || '';
45
+ const { message, reasoning = context.request.reasoning, id = '', digipair = context.request.digipair, event = 'message', start = context.privates.SSE_SESSION_START || '' } = params;
48
46
  const name = `${start}__${digipair}_${reasoning}__${id}`;
49
47
  let channel = this.channels.get(name);
50
48
  return channel?.broadcast(message, event);
package/dist/index.esm.js CHANGED
@@ -24333,14 +24333,14 @@ function indent(str, spaces) {
24333
24333
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
24334
24334
  // match is required
24335
24335
  if (!match) {
24336
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
24336
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
24337
24337
  v: nextMatch1
24338
24338
  };
24339
24339
  }
24340
24340
  var token = match.token, offset = match.offset;
24341
24341
  i1 += offset;
24342
24342
  if (token === ' ') {
24343
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
24343
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
24344
24344
  }
24345
24345
  tokens1 = _to_consumable_array$4(tokens1).concat([
24346
24346
  token
@@ -24359,7 +24359,7 @@ function indent(str, spaces) {
24359
24359
  if (contextKeys.some(function(el) {
24360
24360
  return el.startsWith(name);
24361
24361
  })) {
24362
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
24362
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
24363
24363
  }
24364
24364
  if (dateTimeIdentifiers.some(function(el) {
24365
24365
  return el === name;
@@ -24378,9 +24378,9 @@ function indent(str, spaces) {
24378
24378
  if (dateTimeIdentifiers.some(function(el) {
24379
24379
  return el.startsWith(name);
24380
24380
  })) {
24381
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
24381
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
24382
24382
  }
24383
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
24383
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
24384
24384
  v: nextMatch1
24385
24385
  };
24386
24386
  };
@@ -46098,15 +46098,13 @@ let SSEService = class SSEService {
46098
46098
  return channel;
46099
46099
  }
46100
46100
  async push(params, _pinsSettingsList, context) {
46101
- const { id, message, reasoning = context.request.reasoning, digipair = context.request.digipair } = params;
46102
- const start = context.privates.SSE_SESSION_START || '';
46101
+ const { id, message, reasoning = context.request.reasoning, digipair = context.request.digipair, start = context.privates.SSE_SESSION_START || '' } = params;
46103
46102
  const name = `${start}__${digipair}_${reasoning}__${id}`;
46104
46103
  const session = this.sessions.get(name);
46105
46104
  return session?.push(message);
46106
46105
  }
46107
46106
  async broadcast(params, _pinsSettingsList, context) {
46108
- const { message, reasoning = context.request.reasoning, id = '', digipair = context.request.digipair, event = 'message' } = params;
46109
- const start = context.privates.SSE_SESSION_START || '';
46107
+ const { message, reasoning = context.request.reasoning, id = '', digipair = context.request.digipair, event = 'message', start = context.privates.SSE_SESSION_START || '' } = params;
46110
46108
  const name = `${start}__${digipair}_${reasoning}__${id}`;
46111
46109
  let channel = this.channels.get(name);
46112
46110
  return channel?.broadcast(message, event);
@@ -165,6 +165,15 @@
165
165
  "schema": {
166
166
  "type": "string"
167
167
  }
168
+ },
169
+ {
170
+ "name": "start",
171
+ "summary": "Start",
172
+ "required": false,
173
+ "description": "Start",
174
+ "schema": {
175
+ "type": "string"
176
+ }
168
177
  }
169
178
  ],
170
179
  "x-events": [],
@@ -241,6 +250,15 @@
241
250
  "schema": {
242
251
  "type": "string"
243
252
  }
253
+ },
254
+ {
255
+ "name": "start",
256
+ "summary": "Start",
257
+ "required": false,
258
+ "description": "Start",
259
+ "schema": {
260
+ "type": "string"
261
+ }
244
262
  }
245
263
  ],
246
264
  "x-events": [],
package/dist/schema.json CHANGED
@@ -10,7 +10,9 @@
10
10
  "paths": {
11
11
  "/registerSession": {
12
12
  "post": {
13
- "tags": ["service"],
13
+ "tags": [
14
+ "service"
15
+ ],
14
16
  "summary": "Initialize an SSE session",
15
17
  "parameters": [
16
18
  {
@@ -66,7 +68,9 @@
66
68
  },
67
69
  "/registerChannel": {
68
70
  "post": {
69
- "tags": ["service"],
71
+ "tags": [
72
+ "service"
73
+ ],
70
74
  "summary": "Initialize an SSE channel",
71
75
  "parameters": [
72
76
  {
@@ -127,7 +131,9 @@
127
131
  },
128
132
  "/push": {
129
133
  "post": {
130
- "tags": ["service"],
134
+ "tags": [
135
+ "service"
136
+ ],
131
137
  "summary": "Send SSE data",
132
138
  "parameters": [
133
139
  {
@@ -165,6 +171,15 @@
165
171
  "schema": {
166
172
  "type": "string"
167
173
  }
174
+ },
175
+ {
176
+ "name": "start",
177
+ "summary": "Start",
178
+ "required": false,
179
+ "description": "Start",
180
+ "schema": {
181
+ "type": "string"
182
+ }
168
183
  }
169
184
  ],
170
185
  "x-events": [],
@@ -194,7 +209,9 @@
194
209
  },
195
210
  "/broadcast": {
196
211
  "post": {
197
- "tags": ["service"],
212
+ "tags": [
213
+ "service"
214
+ ],
198
215
  "summary": "Broadcast SSE data",
199
216
  "parameters": [
200
217
  {
@@ -241,6 +258,15 @@
241
258
  "schema": {
242
259
  "type": "string"
243
260
  }
261
+ },
262
+ {
263
+ "name": "start",
264
+ "summary": "Start",
265
+ "required": false,
266
+ "description": "Start",
267
+ "schema": {
268
+ "type": "string"
269
+ }
244
270
  }
245
271
  ],
246
272
  "x-events": [],
@@ -277,4 +303,4 @@
277
303
  "schemas": {}
278
304
  },
279
305
  "x-scene-blocks": {}
280
- }
306
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"skill-sse.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-sse.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAqEjE,eAAO,MAAM,eAAe,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBAC/B,CAAC;AAE7D,eAAO,MAAM,eAAe,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBAC/B,CAAC;AAE7D,eAAO,MAAM,IAAI,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBAC/B,CAAC;AAElD,eAAO,MAAM,SAAS,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBAC/B,CAAC"}
1
+ {"version":3,"file":"skill-sse.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-sse.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAgFjE,eAAO,MAAM,eAAe,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBAC/B,CAAC;AAE7D,eAAO,MAAM,eAAe,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBAC/B,CAAC;AAE7D,eAAO,MAAM,IAAI,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBAC/B,CAAC;AAElD,eAAO,MAAM,SAAS,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBAC/B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-sse",
3
- "version": "0.119.8",
3
+ "version": "0.119.9",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",